Skip to main content
Glama

x402_statevault_put_v1_doc

Write or update a versioned JSON document by ID, automatically bumping its revision and retaining the last 20 revisions for recovery.

Instructions

statevault — Versioned JSON document store — every write bumps rev, last 20 revisions kept [PUT /v1/doc] $0.005 USDC on eip155:8453. Example: /v1/doc?id=my/doc (JSON body)

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_statevault_put_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

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and delivers real behavior: every write bumps a revision, only the last 20 revisions are retained, and each call costs $0.005 USDC on eip155:8453. It does not disclose the response shape, whether the paid call is charged on failure, or auth/wallet prerequisites, which keeps it short of a 5.

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 definition is a single dense line with the core behavior, retention limit, path, and price front-loaded ahead of the example, and no filler sentences. The em-dash chaining is terse to the point of being slightly telegraphic, but nothing 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 tool with four params, no annotations, and no output schema, the description covers versioning, retention, and cost but omits the critical create-vs-replace semantics, the response body, and what happens on failure or restart. An agent can call it, but cannot fully predict the outcome.

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 the baseline would be 3, but the description adds meaning the schema cannot: the example '/v1/doc?id=my/doc' reveals that the document identifier is passed through the generic free-form query object, which the schema only describes with an unrelated base/quote example. It says nothing about restart or operationId beyond what the schema already documents.

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 names the service (statevault), the resource (versioned JSON document store), and the HTTP verb PUT with the concrete path /v1/doc, so an agent can identify the write operation. It implicitly separates itself from get/delete/history siblings by describing revision-bumping write semantics, though it never explicitly says whether the write creates a new document or replaces an existing one at the given id.

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?

Usage context is only implied: the PUT verb and the 'id=my/doc' example signal that this is the mutation path for a document, while the read/history/delete siblings are left unmentioned. There is no explicit statement of when to choose this over delete_v1_doc or get_v1_doc_history, nor any prerequisite such as needing an existing document or payment setup.

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