get_service_tools

View as MarkdownOpen in Claude

Start a temporary MCP client, retrieve the list of available tools, then stop the client. Useful for discovering a service’s capabilities without maintaining a persistent session.

Parameters

service_name
strRequired

Name of the service to query.

Returns

list[dict[str, Any]] — List of tool definition dictionaries from the MCP server.

Example

1from signalwire.mcp_gateway import MCPManager
2
3config = {
4 "services": {
5 "todo": {"command": ["python3", "todo_mcp.py"], "description": "Todo list", "enabled": True}
6 }
7}
8
9manager = MCPManager(config)
10tools = manager.get_service_tools("todo")
11for tool in tools:
12 print(f" {tool['name']}: {tool.get('description', '')}")