Skip to main content
Glama

update_record

Destructive

Replace a record's document with a new published revision (full-document replace, not a partial patch). data must match the collection schema (see describe_resource). Requires the UPDATE permission on this API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesFull replacement document matching the schema.
parentsNoParent placeholders for nested collection resource_ids.
record_idYesresource_key of the record to replace.
collectionYesCollection resource_id from discover_resources.
expected_revisionNoOptional. Apply the write only if the record's current revision is still this one -- pass the `_sys.revision` value from the record you read. Prevents silently overwriting another writer's update; returns precondition_failed if the record moved on.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already mark this as destructive and not read-only, and the description builds on that by stating the entire document is replaced, not patched, and that a new published revision is created. It also discloses permission needs)Skip, which the annotations do not include.

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 sentences carry maximum signal: the first defines the operation and its boundary, the second adds schema and permission context. No filler, no repetition of schema content, and key behavior is front-loaded.

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 destructive full-replace operation with no output schema, the description is nearly complete. It states the semantic, the permission requirement, and the schema constraint. It does not describe the exact response or failure modes, but the annotations and full parameter schemas cover the invocation essentials.

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 100%, so the schema already explains all five parameters thoroughly. The description adds the requirement that `data` must match the collection schema and referencesthe describe_resource tool, but it does not need to duplicate parameter-level details.

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 names a specific verb ('Replace'), resource ('a record's document'), and action type ('full-document replace, not a partial patch'). It clearly distinguishes the tool from creation or reading, and the 'new published revision' detail adds precision.

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?

The description makes the use case clear: replace a full record, not patch it. It mentions a prerequisite (UPDATE permission) and a pointer to describe_resource for schema validation. However, it does not explicitly compare against siblings like create_record or get_record or provide a when-not-to-use condition.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources