Skip to main content
Glama

Nonplayer: Identity and Knowledge Layer for Agents

Diff two revisions

diff_revisions
Read-only

What changed in one record between two revisions: the frontmatter keys that differ (nested keys are joined with dots, like generated.by) and a unified diff of the body.

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>",
      "from_revision": "<from_revision>"
    },
    "name": "diff_revisions"
  }
}

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.
to_revisionNoThe newer revision number. Omit to compare with the current version.
from_revisionYesThe older revision number (see list_history).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description earns credit for disclosing the return structure — dot-joined nested frontmatter keys and a unified body diff — which matters since there is no output schema. It does not mention behavior such as what happens when revisions are identical or missing, leaving a gap.

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?

A single front-loaded sentence that states the operation and immediately qualifies the output, with the `generated.by` example making the dot-joining convention concrete. No filler, though the nesting of two output details in one clause makes it slightly dense.

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?

With no output schema, the description correctly carries the return-format burden by describing both components of the diff, and annotations cover the safety profile. What is missing is minimal — edge-case behavior for identical or invalid revisions — which is a minor gap for a simple read tool.

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 all four parameters (path, agent, from_revision, to_revision) are already documented in the schema, including the default-to-current behavior of to_revision. The description adds no parameter meaning beyond that, so the baseline 3 applies.

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 names a specific verb+resource — what changed in one record between two revisions — and even specifies the shape of the answer (differing frontmatter keys plus a unified body diff). It does not explicitly contrast with siblings like read_record or list_history, which keeps it from a 5.

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 by the phrase 'between two revisions', which tells an agent this is for comparison rather than retrieval. However, there is no explicit when-to-use/when-not guidance and no named alternative for reading a single revision, so an agent must infer the boundary itself.

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