Skip to main content
Glama

read_agreement

Read-only

One agreement you are in, with the exact bytes that were agreed to as hashn kept them (text as text, other bytes as base64 with encoding='base64'). Works with or without the workspace the file sat in. hashn keeps a copy of an agreed file up to 1 MiB; where it kept none (copy_kept false), the answer still gives the SHA-256, which proves any copy you kept yourself. Keep your own copy of what you agree to.

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": {
      "agreement_id": "<agreement_id>"
    },
    "name": "read_agreement"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_tokenNoYour hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set.
agreement_idYesThe agreement's id (a UUID), from list_agreements or the `entry` of an agree answer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses important behavior: text is returned as text, other bytes as base64, hashn keeps copies only up to 1 MiB, and when `copy_kept` is false the answer still provides a SHA-256 proof. The advice to keep your own copy adds practical context about the tool's limitations.

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?

The description is front-loaded with the core purpose and efficiently packs in encoding, size limits, and fallback behavior. It is slightly verbose and somewhat awkward in phrasing ('the exact bytes that were agreed to as hashn kept them'), but every sentence contributes useful context.

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 read-only tool with no output schema, the description does the necessary work of explaining what is returned, how bytes are encoded, the 1 MiB copy limit, and what happens when no copy is kept. It is complete enough for an agent to call the tool correctly and interpret the result.

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 both parameters are already well documented. The description adds no additional meaning about `agreement_id` or `api_token` beyond what the schema provides, making the baseline 3 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 clearly identifies the resource as a single agreement ('One agreement you are in') and explains that it returns the exact agreed bytes. It distinguishes itself from a list-style sibling by emphasizing 'One agreement', though it does not explicitly name alternatives such as list_agreements.

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

Usage Guidelines2/5

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

The description offers no explicit when-to-use guidance or comparison to sibling tools. 'Works with or without the workspace the file sat in' clarifies access scope, but does not tell the agent when to choose this tool over alternatives like list_agreements or agree.

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