Skip to main content
Glama
pinecone-io

Pinecone Developer MCP

Official
by pinecone-io

search-docs

Submit a text query to search Pinecone documentation and retrieve relevant information. Use this tool to find answers for your development questions.

Instructions

Search Pinecone documentation for relevant information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesThe text to search for.

Implementation Reference

  • The addSearchDocsTool function registers the 'search-docs' tool on the server. The handler connects to a Pinecone documentation MCP client, calls the 'get_context' tool with the query, and returns the result.
    export function addSearchDocsTool(server: McpServer) {
      server.registerTool(
        'search-docs',
        {description: INSTRUCTIONS, inputSchema: SCHEMA},
        async ({query}) => {
          const client = await getDocsClient();
    
          return (await client.callTool({
            name: 'get_context',
            arguments: {query},
          })) as SearchDocsResult;
        },
      );
  • Input schema for the 'search-docs' tool: a single required 'query' string parameter.
    const SCHEMA = {
      query: z.string().describe('The text to search for.'),
    };
  • The tool is registered via server.registerTool() with the name 'search-docs'.
    export function addSearchDocsTool(server: McpServer) {
      server.registerTool(
        'search-docs',
        {description: INSTRUCTIONS, inputSchema: SCHEMA},
        async ({query}) => {
          const client = await getDocsClient();
    
          return (await client.callTool({
            name: 'get_context',
            arguments: {query},
          })) as SearchDocsResult;
        },
      );
    }
  • getDocsClient() lazily initializes and caches the docs MCP client (singleton pattern with retry on failure).
    function getDocsClient(): Promise<Client> {
      if (!clientPromise) {
        clientPromise = initializeClient().catch((error) => {
          // Reset on failure so next call can retry
          clientPromise = null;
          throw error;
        });
      }
      return clientPromise;
    }
  • initializeClient() creates a StreamableHTTPClientTransport connected to DOCS_MCP_URL and a Client named 'pinecone-docs'.
    async function initializeClient(): Promise<Client> {
      const httpTransport = new StreamableHTTPClientTransport(new URL(DOCS_MCP_URL));
      const client = new Client({
        name: 'pinecone-docs',
        version: PINECONE_MCP_VERSION,
      });
      await client.connect(httpTransport);
      return client;
    }
Behavior2/5

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

No annotations are provided, so the description bears full responsibility. It states 'search' which implies a read-only operation, but does not disclose any behavioral traits such as result format, pagination, rate limits, or scope of documentation. This is insufficient for an agent to understand side effects or constraints.

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?

The description is a single clear sentence with no unnecessary words. It is front-loaded and efficient, though it could be slightly expanded to include more context without becoming verbose.

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

Completeness2/5

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

Given the absence of an output schema, the description should explain what the search returns (e.g., relevant document snippets, titles, links). It does not, leaving the agent uncertain about the result format or how to interpret responses. This is a notable gap for a search tool.

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?

The input schema has 100% description coverage for the single 'query' parameter, meaning the schema already explains the parameter. The description adds no additional meaning beyond the schema, earning the baseline score of 3.

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

Purpose4/5

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

The description clearly identifies the tool as a search function for Pinecone documentation, specifying both the verb (search) and the resource (Pinecone docs). Since there are no sibling tools to distinguish from, the clarity is sufficient but not exceptional.

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

Usage Guidelines3/5

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

The description implies usage when searching Pinecone docs but provides no explicit guidance on when to use this tool, when not to, or any alternatives. Without siblings, explicit exclusions are less critical, but the lack of context still limits utility.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pinecone-io/pinecone-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server