Skip to main content
Glama
yeison-liscano

Simple HTTP MCP Server

Get Called Tools

get_called_tools
Idempotent

Retrieve a list of Python functions executed on the Simple HTTP MCP Server via its JSON-RPC interface to monitor activity and manage tool usage.

Instructions

Get the list of called tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
called_toolsYesThe list of called tools

Implementation Reference

  • The async handler function that executes the get_called_tools tool logic, retrieving called tools from context.
    async def get_called_tools(
        args: Arguments[GetCalledToolsInput],
    ) -> GetCalledToolsOutput:
        """Get the list of called tools."""
        context = args.get_state_key("context", Context)
        return GetCalledToolsOutput(called_tools=context.get_called_tools())
  • Pydantic models defining input (empty) and output schema for get_called_tools tool.
    class GetCalledToolsInput(BaseModel):
        pass
    
    
    class GetCalledToolsOutput(BaseModel):
        called_tools: list[str] = Field(description="The list of called tools")
  • Registration of the get_called_tools tool in the TOOLS tuple.
    Tool(
        func=get_called_tools,
        inputs=GetCalledToolsInput,
        output=GetCalledToolsOutput,
    ),
  • Helper method on Context class that returns the list of called tools.
    def get_called_tools(self) -> list[str]:
        return self.called_tools

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yeison-liscano/http_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server