Skip to main content
Glama

compare_instances

Read-only

Compare two or more instances of one convention side by side (0.63.0): for each dimension of that convention, each one's value, and whether they agree. Where they agree there is nothing to decide; what differs is the point of contention. refs: <workspace_id>/<path> (listings, deliveries, project or team files), optionally @sha256:<the file's SHA-256> to cite it as it was (0.94.0: hashn says so when it has changed since; citing a save by number, @<receipt>, ended on 2026-11-21), or convention names with decision_convention 'convention' (deciding which convention frames two things), or plain values with a decision_convention. It is inferred when every ref names the same convention. With dimensions, only those rows. Use it to write a decision file (/docs/decisions); hashn compares, it never picks. frame is the 0.63.0 name of decision_convention.

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": {
      "refs": "<refs>"
    },
    "name": "compare_instances"
  }
}

Input Schema

NameRequiredDescriptionDefault
refsYesTwo to twelve things to compare: '<workspace_id>/<path>' (optionally '@sha256:<its SHA-256>' to cite it as it was), convention names when frame is 'convention', or plain values with a frame.
frameNoThe 0.63.0 name of decision_convention; prefer that.
api_tokenNoYour hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set.
dimensionsNoOptional: compare on these dimensions only, e.g. a child decision's proposed children.
decision_conventionNoThe convention every ref is an instance of (or 'convention' to compare conventions). Omit to infer it when all refs name the same convention.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / refs / description
      Previous value: -"Two to twelve things to compare: '<workspace_id>/<path>' (optionally '@<receipt>' for a cited save), convention names when frame is 'convention', or plain values with a frame."New value: +"Two to twelve things to compare: '<workspace_id>/<path>' (optionally '@sha256:<its SHA-256>' to cite it as it was), convention names when frame is 'convention', or plain values with a frame."
  2. Changed2 schema fields changed
    • addedInput schema / properties / decision_convention
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The convention every ref is an instance of (or 'convention' to compare conventions). Omit to infer it when all refs name the same convention.",
      +  "title": "Decision Convention"
      +}
    • changedInput schema / properties / frame / description
      Previous value: -"The convention every ref is an instance of (or 'convention' to compare conventions). Omit to infer it when all refs name the same convention."New value: +"The 0.63.0 name of decision_convention; prefer that."
  3. Added

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 the safety profile is covered. The description adds genuine behavioral context beyond that: it explains the return shape (per-dimension values plus agreement), the read-only non-adjudicating stance, and that hashn flags a cited file changed since its SHA-256 was taken. It stops short of describing ordering, limits on result size, or error behavior for mismatched conventions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose is front-loaded, but the body is a dense run-on that mixes parameter syntax, version history (0.94.0), and a deprecation notice ('citing a save by number, @<receipt>, ended on 2026-11-21'), which is irrelevant to invoking the tool correctly. An agent must parse several unrelated clauses to extract the callable rules.

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 does the necessary work of explaining what a comparison returns (dimension, each instance's value, and agreement), which is the critical missing piece. With 5 parameters at 100% schema coverage, the remaining gaps are minor; the versioning and deprecation chatter is noise rather than missing information.

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 every parameter is already documented in structured form; the description largely restates refs formats, the @sha256 citation form, dimensions filtering, and that frame is the 0.63.0 name of decision_convention. There is some added meaning, such as the 'convention names when frame is convention' case and how the inference works, but much of it duplicates the schema.

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 opening clause gives a concrete verb and resource: 'Compare two or more instances of one convention side by side,' and it specifies the output grain ('for each dimension ... each one's value, and whether they agree'). It is sufficiently distinct from the siblings, though the interleaved version tags (0.63.0, 0.94.0) and deprecated-syntax asides dilute the initial statement.

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?

It states the intended use ('Use it to write a decision file (/docs/decisions)') and draws a hard boundary against the likely alternative: 'hashn compares, it never picks,' which implicitly routes choosing to agree. It also states the inference condition for decision_convention. It does not name a sibling tool explicitly, so the agent must infer the alternative.

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