pinecone-query
Original:🇺🇸 English
Translated
Query integrated indexes using text with Pinecone MCP. IMPORTANT - This skill ONLY works with integrated indexes (indexes with built-in Pinecone embedding models like multilingual-e5-large). For standard indexes or advanced vector operations, use the CLI skill instead. Requires PINECONE_API_KEY environment variable and Pinecone MCP server to be configured.
5installs
Sourcepinecone-io/skills
Added on
NPX Install
npx skill4agent add pinecone-io/skills pinecone-queryTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →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 tool to search for records within a specified Pinecone integrated index using a text query.
search-recordsWorkflow
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 environment variable is set
PINECONE_API_KEY - Direct them to the MCP setup documentation or the skill
pinecone-help
-
Parse the user's input for:
- (required): The text to search for.
query - (required): The name of the Pinecone index to search.
index - (optional): The namespace within the index.
namespace - (optional): The reranking model to use for improved relevance.
reranker
-
If the user omits required arguments:
- If only the index name is provided, use the tool to retrieve available namespaces and ask the user to choose.
describe-index - If only a query is provided, use to get available indexes, ask the user to pick one, then use
list-indexesfor namespaces if needed.describe-index
- If only the index name is provided, use the
-
Call thetool with the gathered arguments to perform the search.
search-records -
Format and display the returned results in a clear, readable table including field highlights (such as ID, score, and relevant metadata).
Troubleshooting
PINECONE_API_KEYIf you get an access error, the key is likely missing. Ask the user to set it and restart their IDE or agent session:
- Terminal:
export PINECONE_API_KEY="your-key" - IDE without shell inheritance: add to a
PINECONE_API_KEY=your-keyfile.env
IMPORTANT At the moment, the /query command can only be used with integrated indexes, which use hosted Pinecone embedding models to embed and search for data.
If a user attempts to query an index that uses a third party API model such as OpenAI, or HuggingFace embedding models, remind them that this capability is not available yet
with the Pinecone MCP server.
- If required arguments are missing, prompt the user to supply them, using Pinecone MCP tools as needed (e.g., ,
list-indexes).describe-index - Guide the user interactively through argument selection until the search can be completed.
- If an invalid value is provided for any argument (e.g., nonexistent index or namespace), surface the error and suggest valid options.
Tools Reference
- : Search records in a given index with optional metadata filtering and reranking.
search-records - : List all available Pinecone indexes.
list-indexes - : Get index configuration and namespaces.
describe-index - : Get stats including record counts and namespaces.
describe-index-stats - : Rerank returned documents using a specified reranking model.
rerank-documents - Ask the user interactively to clarify missing information when needed.