Skip to main content
Glama

pinecone_upsert_vectors

Insert or update records with dense and sparse vectors plus metadata in one request, enabling hybrid queries later.

Instructions

Upsert through the legacy Vectors API - raw values plus metadata.

Use this for single-vector indexes where you want a dense and a sparse vector on the same record, which is what makes the one-request hybrid query in pinecone_query_vectors possible.

Args: vectors: [{"id": "v1", "values": [...], "sparse_values": {"indices": [...], "values": [...]}, "metadata": {"category": "tech"}}]. ttl_seconds: Stamps _expires_at into each record's metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexYes
vectorsYes
namespaceYes
batch_sizeNo
ttl_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the TTL side effect ('_expires_at' stamped into metadata) and the legacy-API nature, but omits upsert semantics (overwrite vs merge), auth/permission needs, batching behavior tied to batch_size, and failure modes for a mutation tool.

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 the core purpose, then rationale, then arg notes; each part largely earns its place. Slightly loose in the 'Args' block, but no real filler.

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

Completeness3/5

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

An output schema exists so return values need not be explained. Coverage of the key input is partial: the vectors format and ttl_seconds are covered, but index, namespace, and batch_size are undocumented, leaving gaps for a 5-parameter mutation 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?

Schema description coverage is 0%, so the description must compensate. It usefully documents the vectors payload shape (id/values/sparse_values/metadata example) and the ttl_seconds side effect, but leaves index, namespace, and especially batch_size (with its default of 100) entirely unexplained.

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?

States a specific verb (upsert) and resource (vectors) and pins down the mechanism: 'legacy Vectors API - raw values plus metadata'. This implicitly distinguishes it from pinecone_upsert_documents by framing it as raw-vector based, though it never names that sibling explicitly.

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 a concrete condition for use: single-vector indexes where you need a dense and sparse vector on the same record to enable the one-request hybrid query. Clear context, but no explicit exclusions or named alternatives (e.g., when to prefer pinecone_upsert_documents or pinecone_update_vector).

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