Skip to main content
Glama

store_update

Update an existing record in-place by ID, preserving audit metadata and bumping updated_at. Returns not_found error for unknown IDs; use store_put to create new records.

Instructions

Replace an existing record's data in-place — same ID, updated_at bumped, audit metadata retained. Never creates: an unknown ID returns {error: not_found} (use store_put to create). deviation declares pattern-departure exactly as in store_put. Returns {id} on success. Confined to your store_scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
app_idYes
recordYes
deviationNo
record_idYes
collectionYes
Behavior5/5

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

Despite the annotations providing three hints (non-readOnly, non-openWorld, non-destructive), the description adds substantial behavioral context: the exact error contract for unknown IDs, the return value shape, the mutation of updated_at, retention of audit metadata, and scope confinement. The description goes beyond the annotations without contradicting them.

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?

The entire contract is four sentences you could fit in the front half of one textual phrase: purpose, key constraint with error, deviation semantics, return value, and scope. Every sentence contributes new information and the formatting uses internal sentence length well to carry the precise semantics of the nested error case. No fluff.

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

Completeness4/5

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

For a mild-mutating store tool, the description covers the essential ground: mutation semantics, error semantics, return value, and scope. Given there is no output schema and 0% schema coverage, the description does nearly all the lifting and does so well. It could add clarity about partial-vs-full record replacement semantics and what 'confined to your store_scope' means in practice for cross-scope agents, but this is a minor gap.

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 burden falls on the description. It explicitly explains the `deviation` parameter ('declares pattern-departure exactly as in store_put') and gives a clear model for `record` via 'Replace existing record's data'. However, app_id, collection, and record_id semantics are only implicitly captured through the main action sentence, and the nested `record` structure gets little detailed treatment.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action ('Replace an existing record's data in-place') with the precise scope of behavior: same ID, updated_at bumped, audit metadata retained. It explicitly contrasts with the create path ('use store_put to create'), distinguishing it from its closest sibling without any ambiguity. This is about as clear as it gets.

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

Usage Guidelines5/5

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

The description tells the agent exactly when to use this tool and when not to: 'Never creates: an unknown ID returns {error: not_found} (use store_put to create)' — an explicit when-not-to plus the named alternative. It also injects the operational constraint 'Confined to your store_scope'. This is explicit exclude-and-redirect guidance with no inference required.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/willow-memory/willow-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server