Skip to main content
Glama
Pinecone Read-Only MCP

Pinecone Read-Only MCP

by cppalliance

query_documents

Run semantic search to retrieve complete documents reassembled from chunks for full-document context, content analysis, or summarization; configure reranking for document-level relevance.

Instructions

Run a semantic query and return whole documents (reassembled from chunks). Reranks for document-level relevance when a rerank model is configured (higher latency/cost than chunk-only query). Use for content analysis, summarization, or when you need full-document context. Chunks are grouped by document_number/doc_id/url, ordered by chunk_index when present (e.g. from RecursiveCharacterTextSplitter), and merged into one content per document. Requires suggest_query_params to be called first for the target namespace. Use list_namespaces to discover namespaces.

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": {
      "query_text": "<query_text>",
      "namespace": "<namespace>"
    },
    "name": "query_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
top_kNoNumber of documents to return (1-20). Each document is reassembled from its chunks. Default: 5.
sourceNoPinecone source name (from list_sources). Omit on discovery tools to search all sources. On query tools, omit only when namespace uniquely identifies one source.
namespaceYesNamespace to search. Use list_namespaces/namespace_router first, then suggest_query_params.
query_textYesSearch query text. Be specific for better results.
metadata_filterNoOptional metadata filter to narrow search.
max_chunks_per_documentNoMax chunks to merge per document (default 200). Lower for shorter merged_content.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it discloses reranking behavior when a rerank model is configured, the higher latency/cost, and the grouping/ordering logic used to merge chunks (by document_number/doc_id/url, ordered by chunk_index). It does not mention error handling or how many documents are typically returned when top_k is hit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and behavior, then prerequisites. Dense but every sentence is informative. Minor redundancy between 'Requires suggest_query_params to be called first' and the namespace parameter's schema note.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema, and the description compensates by explaining the return shape ('merged into one content per document'). Prerequisite ordering is covered. For a 6-parameter query tool with no annotations, this is close to complete; only failure behavior is unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so top_k, max_chunks_per_document, namespace, and source are already documented in the schema. The description adds only the conceptual model (top_k documents, each merged from chunks), which is marginally beyond the schema's own wording. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Run a semantic query and return whole documents') plus the key differentiator: output is documents reassembled from chunks, not chunks. This contrasts directly with chunk-only querying and with keyword_search.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete use cases ('content analysis, summarization, or when you need full-document context') and notes the cost/latency tradeoff versus a chunk-only query. Prerequisites are spelled out (suggest_query_params first, list_namespaces to discover namespaces). It stops short of naming the sibling tool to use when full-document context is not needed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.