Retrieve Tools Endpoint
POST/v1/retrieve_tools
Find available tools using natural language query.
Request Body
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | - | Natural language query (max 500 chars) |
top_k | integer | No | 5 | Number of tools to return (1-50) |
filter | object | No | - | Filter results |
filter.server | string | No | - | Filter by MCP server name |
filter.category | string | No | - | Filter by tool category |
filter.min_score | number | No | 0.0 | Minimum relevance score |
Response
Examples
Simple Query
With Filters
Using SDK
Error Responses
Bad Request (400)
Unauthorized (401)
Rate Limited (429)
Performance Tips
- Be specific - “Deploy to AWS Lambda” returns better results than “deploy”
- Use filters - Reduce search space with server/category filters
- Set appropriate top_k - Usually 3-5 is sufficient
- Cache results - Same queries within 1 hour use cache
Next Steps
Execute Tool Endpoint
Run tools with the execution API.
Get Tool Endpoint
Get details about specific tools.
API Overview
Complete API reference.
See Dynamic Retrieval for details on how tools are ranked. 🚀