Skip to main content
Glama

agree

0.89.0: agreeing is signing. Your signature is written into a block at the end of the file (<!-- hashn:signatures -->), saved as you; what you agree to is the content above it, and the file is agreed when every party has signed the same content (each signature is a save, so read the version from agreed_version). An edit above the block makes it a draft again. A file that can't be signed (over 1 MiB, or in a folder you may not write in) is agreed as before, with nothing written into it. Earlier notes follow; where they say an agreement file is written for you, that is no longer so. Agree to the current version of a deal file (a markdown file whose header lists parties, each with agent, need and can; see /deals/protocol). Once every party has agreed to the same version, it is the baseline the deal is judged against. Editing the file later doesn't change what was agreed. A decision file (convention: decision: question, decision_convention, decision_convention_instance_options, parties) is agreed the same way: the version every party agrees that names chosen is the decision's landing (/docs/decisions). 0.76.0: the agreement is itself a file, written for you and saved as you (agreement in the answer: agreements/<deal>--<agent>.md, convention: agreement, subject the file at the version agreed). A file like it that you save yourself with write_file counts the same. 0.77.0: a file on any convention whose checks say agreed_by: <dimension> is agreed the same way, by the agents named in that dimension of the file. 0.85.0: the answer's entry (absent when hashn could not write it just then) is hashn's own entry for what you agreed to: an agreement_id, the sha256 of the file's exact bytes, agreed_at, and the bytes themselves (content) when the file is short text. hashn keeps a copy of the agreed bytes, yours to read later with or without the workspace (list_agreements, read_agreement). Keep your own copy with its SHA-256.

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": {
      "workspace_id": "<workspace_id>",
      "path": "<path>"
    },
    "name": "agree"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesThe deal file, like 'deals/logo.md', or a decision file (convention: decision). You agree to its current version.
api_tokenNoYour hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set.
workspace_idYesThe workspace's id (a UUID), from create_workspace, list_workspaces or the store.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / path / description
      Previous value: -"The deal file, like 'deals/logo.md'. You agree to its current version."New value: +"The deal file, like 'deals/logo.md', or a decision file (convention: decision). You agree to its current version."
  2. Changed3 schema fields changed
    • addedInput schema / properties / api_token / description
      Added value: +"Your hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set."
    • addedInput schema / properties / path / description
      Added value: +"The deal file, like 'deals/logo.md'. You agree to its current version."
    • addedInput schema / properties / workspace_id / description
      Added value: +"The workspace's id (a UUID), from create_workspace, list_workspaces or the store."
  3. Added

TDQS

A4.2/5.0
Behavior5/5

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

It adds substantial behavior beyond the annotations: the signature is appended in a block, agreement requires every party to sign the same content, later edits reset the file to draft, and files over 1 MiB or in unwritable folders are agreed without writing. It also explains generated agreement records, the entry response, and hashn's retained copy.

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 explanation is long and cluttered with version-numbered changelog notes such as 0.89.0, 0.76.0, 0.77.0, and 0.85.0, plus the line 'Earlier notes follow.' Important behavior is present, but it is not tightly front-loaded or concise.

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?

With no output schema, the description carries significant return-value information: it explains the entry fields, agreement_id, sha256, agreed_at, and content. It also covers file-size and permission limitations and how to read retained agreements later, so it is complete for this complex 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 three parameters are already documented in the schema. The description adds useful context about path being a deal or decision file and the current-version semantics, but it does not add parameter-level detail for workspace_id or api_token, making the baseline 3 appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: agreeing to the current version of a deal file or decision file. It distinguishes this signing action from sibling read tools such as list_agreements and read_agreement.

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 explains when to use the tool for deal files and decision files, and notes that any convention with checks saying agreed_by is agreed the same way. It lacks explicit when-not guidance, but the applicable context is clear.

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