Labsco
pinecone-io logo

pinecone-query

✓ Official14

by pinecone-io · part of pinecone-io/skills

Query integrated indexes using text with Pinecone MCP. IMPORTANT - This skill ONLY works with integrated indexes (indexes with built-in Pinecone embedding…

🔥🔥🔥✓ VerifiedAccount requiredNeeds API keys
🧩 One of 7 skills in the pinecone-io/skills package — works on its own, and pairs well with its siblings.

Query integrated indexes using text with Pinecone MCP. IMPORTANT - This skill ONLY works with integrated indexes (indexes with built-in Pinecone embedding…

Inspect the full instructions your agent will receiveExpand

This is the exact playbook injected into your agent when the skill activates — shown here so you can audit it before installing. You don't need to read it to use the skill.

by pinecone-io

Query integrated indexes using text with Pinecone MCP. IMPORTANT - This skill ONLY works with integrated indexes (indexes with built-in Pinecone embedding… npx skills add https://github.com/pinecone-io/skills --skill pinecone-query Download ZIPGitHub14

Pinecone Query Skill

Search for records in Pinecone integrated indexes using natural language text queries via the Pinecone MCP server.

What is this skill for?

This skill provides a simple way to query integrated indexes (indexes with built-in Pinecone embedding models) using text queries. The MCP server automatically converts your text into embeddings and searches the index.

Prerequisites

Required:

  • Pinecone MCP server must be configured - Check if MCP tools are available

  • PINECONE_API_KEY environment variable must be set - Get a free API key at https://app.pinecone.io/?sessionType=signup

  • Index must be an integrated index - Uses Pinecone embedding models (e.g., multilingual-e5-large, llama-text-embed-v2, pinecone-sparse-english-v0)

When NOT to use this skill

Use the CLI skill instead if:

  • ❌ Your index is a standard index (no integrated embedding model)

  • ❌ You need to query with custom vector values (not text)

  • ❌ You need advanced vector operations (fetch by ID, list vectors, bulk operations)

  • ❌ Your index uses third-party embedding models (OpenAI, HuggingFace, Cohere)

MCP Limitation: The Pinecone MCP currently only supports integrated indexes. For all other use cases, use the Pinecone CLI skill.

How it works

Utilize Pinecone MCP's search-records tool to search for records within a specified Pinecone integrated index using a text query.

Workflow

IMPORTANT: Before proceeding, verify the Pinecone MCP tools are available. If MCP tools are not accessible:

  • Inform the user that the Pinecone MCP server needs to be configured

  • Check if PINECONE_API_KEY environment variable is set

  • Direct them to the MCP setup documentation or the pinecone-help skill

Parse the user's input for:

  • query (required): The text to search for.

  • index (required): The name of the Pinecone index to search.

  • namespace (optional): The namespace within the index.

  • reranker (optional): The reranking model to use for improved relevance.

If the user omits required arguments:

  • If only the index name is provided, use the describe-index tool to retrieve available namespaces and ask the user to choose.

  • If only a query is provided, use list-indexes to get available indexes, ask the user to pick one, then use describe-index for namespaces if needed.

Call the search-records tool with the gathered arguments to perform the search.

Format and display the returned results in a clear, readable table including field highlights (such as ID, score, and relevant metadata).

Tools Reference

  • search-records: Search records in a given index with optional metadata filtering and reranking.

  • list-indexes: List all available Pinecone indexes.

  • describe-index: Get index configuration and namespaces.

  • describe-index-stats: Get stats including record counts and namespaces.

  • rerank-documents: Rerank returned documents using a specified reranking model.

  • Ask the user interactively to clarify missing information when needed.