search_tools_respond
Answers clarification questions returned by search_tools to complete a search. Runs stages 2–4 of the pipeline (contextual filters → graph reranking → final selection) using the provided answers as additional context.
When to use
Call search_tools_respond only after search_tools has returned a response with "type": "clarification". This tool is never called on its own — it always follows a prior search.
Input schema
- The unique query identifier returned in the clarification response from search_tools.
- Key-value map answering the clarification questions. Keys must match the "key" field from each question.
query_idstringrequiredanswersRecord<string, string>requiredExamples
Answering clarification questions
json
{
"query_id": "q_abc123def456",
"answers": {
"language": "Python",
"deployment": "cloud"
}
}text
// After search_tools returns clarification questions,
// Claude automatically calls search_tools_respond:
// {
// "query_id": "q_abc123def456",
// "answers": {
// "language": "Python",
// "deployment": "cloud"
// }
// }text
// Cursor handles the clarification flow automatically.
// When search_tools asks for clarification, Cursor
// prompts the user and calls search_tools_respond
// with the collected answers.Response format
This tool always returns a result response — no further clarification is requested. The response structure is identical to the result format from search_tools.
Result response
json
{
"type": "result",
"recommendation": {
"name": "Pinecone",
"description": "Managed vector database for ML embeddings at scale",
"category": "database",
"language": "Python",
"license": "proprietary",
"health_tier": "healthy",
"confidence": 0.91,
"reasons": [
"Cloud-native managed service — no infrastructure to manage",
"First-class Python SDK with async support",
"Optimized for high-dimensional embedding vectors"
]
},
"alternatives": [
{
"name": "Weaviate",
"confidence": 0.85,
"description": "Open-source vector database with built-in vectorization"
},
{
"name": "Chroma",
"confidence": 0.82,
"description": "Embedded vector DB with first-class developer ergonomics"
}
]
}Error codes
- Invalid query_id or malformed answers object. Ensure the query_id matches a prior clarification response.
- The query_id has expired or does not exist. Start a new search with search_tools.
- Pipeline processing error. An unexpected failure occurred while completing the search.
400Bad Requestoptional404Not Foundoptional500Internal ErroroptionalRelated tools
search_tools— Start a new tool search (prerequisite for this tool)report_outcome— Report usage feedback after using a recommended tool