May 9, 2025
MCP dynamic tools

David Ackerman
Software Engineer
Large APIs with many endpoints can be difficult for LLMs to work with effectively when all endpoints are exposed as individual tools. The generated MCP server now provides a "dynamic tools" mode to address this issue.
When you specify --tools=dynamic
to the MCP server, instead of exposing one tool per API endpoint, it exposes just three powerful meta-tools:
list_api_endpoints
- Discovers available endpoints, with optional filtering by search queryget_api_endpoint_schema
- Gets detailed schema information for a specific endpointinvoke_api_endpoint
- Executes any endpoint with the appropriate parameters
This approach allows the LLM to dynamically discover, learn about, and invoke endpoints as needed, without requiring the entire API schema to be loaded into its context window at once. The LLM will use these tools together to search for, look up, and call endpoints on demand.