Skip to main content
Glama

Save Tunc Orb data

data_write

Save new data to the user's Tunc Orb: create a named record, or append entries to a log (it is created when absent). Use it when the user asks you to save, record or hand off something, such as a note, decision, approval, result, processed-item state or resume point. Records and logs are kept until deleted. Give each record a clear name and a one-line about so it can be found again, and look the name up with data_read first so you do not create an overlapping record. create never overwrites an existing record and append only adds entries, so no record or log entry is changed or removed: change a record with data_update and remove data with data_delete. When storage is full, saving removes the user's oldest saved files first to make room and the result says how many were removed; records and logs are never removed to make room. Batch log entries. Keep history and evidence as log entries: an entry is never changed and carries the time the service committed it, so a correction is a new entry naming the one it replaces. create is also a claim: of two callers creating one name, one gets already_exists, which makes a lock or a lease. Each call sends at most 64 KiB (one value, or one batch of log entries); a record can hold up to 16 MiB, so grow a larger one with data_update patches. When a record points at a stored file, keep the file's artifact_id, not its viewer link: the id opens the file with art_read, and the link is only for people. The service handles encryption and storage; when you retry a call, send the same mutation_id so it never applies twice.

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": "data_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoExact 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). create only: exactly one of value or text.
aboutNoOne line (at most 160 characters) saying what the record or log holds, so other agents can find it. Required for create and for append when the log does not exist yet.
valueNoJSON payload (any JSON value; null is a real value). create 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.
entriesNoappend only: 1-100 entries, at most 64 KiB in total. The service assigns each entry its ID, its order and its committed_at (a query filters on it as @committed_at).
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.
operationYescreate: new record only if the name is free (name, about, one payload). append: add entries to a log, creating it when absent (name, entries; about when creating).
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. Changed2 schema fields changed
    • changedInput schema / properties / entries / description
      Previous value: -"append only: 1-100 entries, at most 64 KiB in total. The service assigns entry IDs and order."New value: +"append only: 1-100 entries, at most 64 KiB in total. The service assigns each entry its ID, its order and its committed_at (a query filters on it as @committed_at)."
    • changedInput schema / properties / entries / items / properties / event_key / description
      Previous value: -"Optional stable key (e.g. a source message ID). Re-sending the same key with the same value returns the original entry instead of a duplicate; a different value under a used key is refused (event_key_conflict) and no entry of that call is appended."New value: +"Optional stable key (e.g. a source message ID). Re-sending the same key with the same value returns the original entry instead of a duplicate; a different value under a used key is refused (event_key_conflict) and no entry of that call is appended. Set it on everything loaded from an outside source, so loading it again adds nothing."
  2. Changed1 schema field changed
    • changedInput schema / properties / entries / items / properties / event_key / description
      Previous value: -"Optional stable key (e.g. a source message ID). Re-sending the same key with the same value returns the original entry instead of a duplicate."New value: +"Optional stable key (e.g. a source message ID). Re-sending the same key with the same value returns the original entry instead of a duplicate; a different value under a used key is refused (event_key_conflict) and no entry of that call is appended."
  3. Changed2 schema fields changed
    • addedInput schema / properties / entries / 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"
      +]
  4. Changed6 schema fields changed
    • removedInput schema / properties / if_revision
      Removed value: -{
      -  "description": "Current revision from your latest read or write. Required for replace and patch. A stale revision is rejected with revision_conflict; reread and decide again.",
      -  "type": "string"
      -}
    • changedInput schema / properties / operation / description
      Previous value: -"create: new record only if the name is free (name, about, one payload). replace: whole new value (name, if_revision, one payload; optional about). patch: JSON Patch on a JSON record (name, if_revision, patch). append: add entries to a log, creating it when absent (name, entries; about when creating)."New value: +"create: new record only if the name is free (name, about, one payload). append: add entries to a log, creating it when absent (name, entries; about when creating)."
    • changedInput schema / properties / operation / enum
      Previous value: -[
      -  "create",
      -  "replace",
      -  "patch",
      -  "append"
      -]New value: +[
      +  "create",
      +  "append"
      +]
    • removedInput schema / properties / patch
      Removed value: -{
      -  "description": "patch only: ordered JSON Patch (RFC 6902 subset add, remove, replace, test). If any operation fails, nothing changes.",
      -  "items": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "op": {
      -        "enum": [
      -          "add",
      -          "remove",
      -          "replace",
      -          "test"
      -        ],
      -        "type": "string"
      -      },
      -      "path": {
      -        "description": "JSON Pointer, e.g. /status or /items/0/state.",
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "New value for add/replace, expected value for test."
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "path"
      -    ],
      -    "type": "object"
      -  },
      -  "maxItems": 200,
      -  "minItems": 1,
      -  "type": "array"
      -}
    • changedInput schema / properties / text / description
      Previous value: -"UTF-8 text payload (exact bytes are kept). Exactly one of value or text."New value: +"UTF-8 text payload (exact bytes are kept). create only: exactly one of value or text."
    • changedInput schema / properties / value / description
      Previous value: -"JSON payload (any JSON value; null is a real value). Exactly one of value or text for create/replace, at most 64 KiB. Keep records small: save a larger file as a file and keep its artifact_id here."New value: +"JSON payload (any JSON value; null is a real value). create 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."
  5. Changed1 schema field changed
    • changedInput schema / properties / value / description
      Previous value: -"JSON payload (any JSON value; null is a real value). Exactly one of value or text for create/replace, at most 64 KiB. Store larger files in Tunc Art."New value: +"JSON payload (any JSON value; null is a real value). Exactly one of value or text for create/replace, at most 64 KiB. Keep records small: save a larger file as a file and keep its artifact_id here."
  6. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses storage-full eviction of the user's oldest files (with the reassurance that records/logs are never evicted), the 64 KiB per-call cap and 16 MiB record ceiling, already_exists claim semantics as a lock/lease, event_key_conflict behavior, service-assigned committed_at, server-side encryption, and that retries must reuse mutation_id. That mutation_id note usefully refines idempotentHint=false by explaining how to obtain idempotency rather than contradicting it.

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?

Front-loaded with purpose and the create/append split, and nearly every clause carries a real constraint. It is long (~350 words) and slightly repetitive on the immutability point ('create never overwrites… no record or log entry is changed or removed'), so some trimming is possible without loss.

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 write tool with no output schema, it covers the outcome surface an agent needs: error codes (already_exists, event_key_conflict), the eviction count reported in results, and how the mutation_id is surfaced via data_read status. Nothing material about correct invocation is left unstated.

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 is 3, but the text adds genuine meaning: batching log entries, when about is mandatory, keeping artifact_id instead of a viewer link when a record points at a file, shelf pinning across retries, and reusing the mutation_id on retry. It stops short of naming parameters individually, but the operational semantics are richer than the schema alone.

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?

Opens with a specific verb+resource ('Save new data to the user's Tunc Orb') and immediately splits the two modes: create a named record vs append entries to a log. It also disambiguates from siblings by naming data_read (lookup), data_update (change) and data_delete (remove) in the same breath.

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?

Gives an explicit trigger ('when the user asks you to save, record or hand off something') with concrete examples, plus a mandatory pre-step ('look the name up with data_read first so you do not create an overlapping record'). It also routes the agent away from this tool for modifications and deletions.

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