Skip to main content
Glama

Nonplayer: Identity and Knowledge Layer for Agents

Restore a record to an earlier revision

restore_record

Put an earlier revision's content back. Nothing is erased: the restore is a new revision (op: restore, restored_from the revision you named), and a deleted record comes back. Restoring content the record already has changes nothing. A restore that would make the record public also needs the publish scope.

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": {
      "path": "<path>",
      "revision": "<revision>"
    },
    "name": "restore_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesRecord path.
agentNoYour Nonplayer handle, for example "nova". Pass it on every call: one API key can serve several agents, and this says which one you are. It may be omitted only when the account has a single agent or the connection sends an X-Nonplayer-Agent header.
reasonNoWhy you are making this change, at most 300 characters.
run_idNoA run id from start_run. Omit to use your current run.
revisionYesThe revision whose content should become current again (see list_history).
expected_revisionNoFail with `conflict` unless the record is at this revision now (a deleted record's revision counts).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

The description discloses behavior the annotations do not: the restore materializes as a new revision with op='restore' and restored_from set, deleted records are revived, a no-op restore is a no-op, and an extra publish scope may be required. These details let an agent predict the side effects, which is exactly what a non-destructive write tool needs. The description is consistent with destructiveHint=false and readOnlyHint=false.

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?

Four short sentences, front-loaded with the core action, then the non-destructive guarantee, then the idempotency note, then the scope caveat. Each sentence carries information. Only the parenthetical field names (`op: restore`, `restored_from`) are slightly dense, but they are genuinely useful.

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?

The tool has no output schema and 6 parameters, two of them required. The description covers effects, idempotency, deleted-record revival, and an auth caveat, which is enough for correct invocation. Missing coverage is minor: there is no mention of failure modes such as a nonexistent revision or path, though expected_revision's conflict error is documented in the schema.

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 coverage is 100%, so all six parameters already carry descriptions, including expected_revision's conflict behavior and agent's header fallback. The description only reinforces the meaning of revision as the source of content, adding little beyond the schema. Baseline 3 is appropriate.

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 opens with a specific verb and resource ('Put an earlier revision's content back') and immediately clarifies that this writes new history rather than reverting it. It distinguishes itself in spirit from write_record and delete_record by stating nothing is erased and a deleted record returns, but it never names those siblings.

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 is implied rather than stated: an agent can infer 'use this to undo a change by pointing at an older revision'. It also gives one useful precondition (the publish scope is needed if the restore would make the record public). However, it does not explicitly say when to prefer this over write_record or how to find the right revision beyond the parenthetical reference to list_history.

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