Skip to main content
Glama

Update Tunc Orb data

data_update
Destructive

Change a record that already exists in the user's Tunc Orb: replace its whole value, or patch fields of a JSON record. Use it when the user asks you to correct or update something saved earlier. This overwrites the saved value and the previous value cannot be read back, so read the record with data_read first and send its current revision as if_revision; a stale revision is refused with revision_conflict, so reread and decide again. Prefer patch (an ordered JSON Patch; if any step fails nothing changes) for small changes to a JSON record, and replace only when you intend the entire new value. Begin a patch with a test step to change a field only from the value you expect (test /state "open", then replace /state "closed"): whoever comes second gets patch_failed, so a decision or a resume point is recorded once. When the old value must stay readable, append a new log entry with data_write instead. Each call sends at most 64 KiB; a record can hold up to 16 MiB. When you retry, send the same mutation_id so the change applies once. Save new data with data_write and remove data with data_delete.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "operation": "<operation>",
      "name": "<name>",
      "if_revision": "<if_revision>"
    },
    "name": "data_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesExact record or log name (UTF-8, at most 512 bytes, never normalized). Required for every operation. Collections are naming conventions such as contacts/<id>.
textNoUTF-8 text payload (exact bytes are kept). replace only: exactly one of value or text.
aboutNoOptional: a new one-line description (at most 160 characters) of what the record holds.
patchNopatch only: ordered JSON Patch (RFC 6902 subset add, remove, replace, test). If any operation fails, nothing changes. A test before a replace changes the field only from the value you expect.
valueNoJSON payload (any JSON value; null is a real value). replace only: exactly one of value or text, at most 64 KiB. Keep records small: save a larger file as a file and keep its artifact_id here.
shelf_idNoShelf to use (a stable ID from data_read operation=shelves). Omit to use the current default shelf, which is resolved once and pinned for this call and its retries.
operationYesreplace: whole new value (name, if_revision, one payload; optional about). patch: JSON Patch on a JSON record (name, if_revision, patch; optional about).
if_revisionYesCurrent revision from your latest read or write. Required for replace and patch. A stale revision is rejected with revision_conflict; reread and decide again.
mutation_idNoOptional: an ID you choose once for this change (a UUID, or a mut_ ID from an earlier result) and send again when you retry, so the change never applies twice. Omit it and the service assigns one; the result carries it for data_read operation=status.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / patch / description
      Previous value: -"patch only: ordered JSON Patch (RFC 6902 subset add, remove, replace, test). If any operation fails, nothing changes."New value: +"patch only: ordered JSON Patch (RFC 6902 subset add, remove, replace, test). If any operation fails, nothing changes. A test before a replace changes the field only from the value you expect."
  2. Changed2 schema fields changed
    • addedInput schema / properties / patch / items / properties / value / type
      Added value: +[
      +  "object",
      +  "array",
      +  "string",
      +  "number",
      +  "boolean",
      +  "null"
      +]
    • addedInput schema / properties / value / type
      Added value: +[
      +  "object",
      +  "array",
      +  "string",
      +  "number",
      +  "boolean",
      +  "null"
      +]
  3. Added

TDQS

A4.6/5.0
Behavior4/5

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

With destructiveHint=true already declared, the description still adds substantial context the annotations cannot convey: the overwrite is irreversible, the prior value cannot be read back, patch is atomic ('if any step fails nothing changes'), stale revisions yield revision_conflict, and a conflicting test step yields patch_failed. It also discloses the 64 KiB per-call and 16 MiB per-record limits and the mutation_id deduplication behaviour on retry. The only shortfall is that it never states what a successful result contains beyond carrying the mutation_id.

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 opening sentence is front-loaded with purpose and the operational warnings follow in descending priority, with the sibling routing (data_write, data_delete) sensibly at the end. It is dense rather than padded, though the sentence 'Use it when the user asks you to correct or update something saved earlier' restates the purpose without adding information and could be cut.

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

Completeness5/5

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

For a destructive mutation tool with no output schema, the description covers everything an agent needs: preconditions (read first, pass current revision), failure modes (revision_conflict, patch_failed) and how to react, atomicity guarantees, size limits, and retry safety. Nothing material is missing.

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 intent the schema cannot: why if_revision exists (stale revisions are refused, so reread and decide again), why mutation_id should be reused on retry, and the idiomatic test-then-replace pattern for patch. The remaining parameters (about, shelf_id, text, value) are left entirely to their schema text, which is adequate given full coverage.

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 opens with a specific verb and resource ('Change a record that already exists in the user's Tunc Orb') and immediately subdivides into the two operations, replace and patch. It explicitly distinguishes itself from data_write ('save new data'), data_delete ('remove data'), and data_read ('read the record first'), so an agent can choose correctly without opening the schema.

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?

It states when to use this tool versus alternatives with explicit conditions: prefer patch for small changes to a JSON record, use replace only for an entirely new value, use data_write when the old value must remain readable, and use data_write/data_delete for creation and removal. It also gives the mandatory read-then-write sequence and the retry rule, leaving nothing to inference.

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