Skip to main content
Glama

x402_vectorstore_post_v1_doc

Store a document in a namespace and make it full-text searchable via BM25 indexing. Use it to add text records to a durable document store with deduplicated retries.

Instructions

vectorstore — Document store + full-text search (D1 FTS5 BM25); embeddings planned [POST /v1/doc] $0.01 USDC on eip155:8453. Example: {"ns":"mine","id":"d1","text":"..."}

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "x402_vectorstore_post_v1_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden; it does disclose the paid cost ($0.01 USDC on eip155:8453) and that embeddings are only planned, which are genuinely useful behavioral facts. It omits key write semantics: whether re-posting an existing ns/id overwrites or errors, whether namespaces are auto-created, and what the response contains.

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

Conciseness5/5

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

Two dense clauses plus a one-line example, front-loaded with the resource and endpoint, then cost, then shape. Nothing is padding; the trade-off is terseness over readability, but no sentence is wasted.

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?

For a paid mutation with no annotations, no output schema, and an untyped body, the definition covers price, storage engine, body example, and retry parameters via the schema. It still leaves overwrite semantics, response shape, and namespace behavior unexplained, which is a meaningful gap for a write tool.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the body property is a free-form object with additionalProperties {} and only a generic 'JSON body' note — the description's example {ns, id, text} is the only place the actual document shape is conveyed. That is a real value-add over the schema, though keys like ns/id are not explained.

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 the verb+resource concretely: POST /v1/doc into a document store backed by D1 FTS5 BM25, with an example body of ns/id/text. The lead phrase 'Document store + full-text search' slightly blurs write vs. read since a sibling (x402_vectorstore_get_v1_search) handles searching, but the endpoint path and example make the write intent recoverable.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no mention of the nearby alternatives (x402_vectorstore_get_v1_search for search, x402_statevault_put_v1_doc for other document persistence). The agent must infer selection from the tool name alone.

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

Deploy Server

Other Tools