Skip to main content
Glama

ToolDelta

delta_slice

Read-onlyIdempotent

Retrieve bounded JSON array pages, object keys, or a scalar from an immutable-hash-checked current snapshot. Send expectedHash from delta_read. A changed snapshot fails with snapshot_changed; restart from delta_read. No hidden truncation.

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": {
      "streamId": "<streamId>",
      "readKey": "<readKey>",
      "expectedHash": "<expectedHash>"
    },
    "name": "delta_slice"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
budgetNo
offsetNo
pointerNoRFC 6901 JSON pointer; empty string is root.
readKeyYes
streamIdYes
expectedHashYes

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 readOnly, idempotent, closed-world and non-destructive, so the safety profile is covered. The description does add real behavior beyond that: hash validation against a specific snapshot, a named failure mode (snapshot_changed), and the 'no hidden truncation' guarantee. It stops short of explaining how budget interacts with paging or what the response envelope looks like.

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?

Four short sentences, front-loaded with the capability, followed by the required token, the failure path, and a guarantee. Nothing is filler and the error-recovery instruction is easy to find.

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

Completeness3/5

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

For a 7-parameter tool with no output schema, the definition covers the contract and one failure mode but leaves several inputs opaque. An agent could call it correctly for basic paging yet would be guessing about budget units and the role of readKey versus pointer.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 14% — just the pointer field — so the description carries the burden and largely does not. It clarifies expectedHash's provenance and implies offset/limit paging via 'pages', but streamId, readKey, and especially budget (a byte-sized bound, judging by 1024–16384) get no meaning at all.

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?

States a specific verb and resource: retrieving bounded JSON array pages, object keys, or a scalar from an immutable-hash-checked snapshot. It implicitly distinguishes itself from delta_read by consuming the expectedHash that delta_read produces, though it never names the read/slice split explicitly enough to be a textbook 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete workflow guidance: send expectedHash from delta_read, and on snapshot_changed restart from delta_read. This tells the agent the prerequisite and the recovery path. It does not state when to prefer delta_read over delta_slice, which keeps it below 5.

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