suggest_query_params
Suggests which fields to request and whether to use the count tool based on namespace schema and the user query, returning a recommended tool and explanation to reduce payload and cost.
Instructions
Suggest which fields to request and whether to use the count tool, based on the namespace schema (from list_namespaces) and the user's natural language query. Call list_namespaces first to get available namespaces and metadata fields. Then call this tool with the target namespace and the user query; it returns suggested_fields (only fields that exist in that namespace), use_count_tool (true if the query is a count question), recommended_tool (count | fast | detailed | full — same vocabulary as the query tool preset), and an explanation. When the suggest-flow gate is enabled (the Alliance default) this call is required before the query/count tools; when the gate is off (the core default) it is optional. Either way, use the returned suggested_fields in query tools to reduce payload and cost.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"namespace": "<namespace>",
"user_query": "<user_query>"
},
"name": "suggest_query_params"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Pinecone source name (from list_sources). Omit on discovery tools to search all sources. On query tools, omit only when namespace uniquely identifies one source. | |
| namespace | Yes | Namespace to query. Must match a name from list_namespaces so the tool can look up available metadata fields. | |
| user_query | Yes | The user's natural language question or intent (e.g. "list documents by author X with titles and links", "how many records match Y?", "what do the docs say about Z?"). |