MCPcopy Create free account
hub / github.com/IBM/mcp-cli / format_tool_response

Method format_tool_response

tests/tools/test_dynamic_tools.py:28–33  ·  view source on GitHub ↗
(self, response)

Source from the content-addressed store, hash-verified

26 return self.tools
27
28 def format_tool_response(self, response):
29 if isinstance(response, dict):
30 import json
31
32 return json.dumps(response)
33 return str(response)
34
35
36# ----------------------------------------------------------------------------

Calls

no outgoing calls

Tested by

no test coverage detected