Skip to main content
Glama

sign

0.87.0: sign a file as it is now. Your signature is written into a block at the end of the file (<!-- hashn:signatures -->, one line per party), saved as you. What you sign is the content: every byte above that block. When every party the file names has signed the same content, it is agreed and goes into hashn's log (list_agreements) with what it refers to; an edit above the block makes it a draft again and the signatures there stop counting. Only a party signs (parties, or the dimension the file's convention names with agreed_by). Under refers_to the file says what it is tied to: each member is a relationship (supersedes, outcome, ...), its value the thing: {ref: <workspace_id>/<path>, sha256: <the file's SHA-256 now>}, {ref: <workspace_id>/<folder>/} or {agent: <id>}. hashn checks each SHA-256 when you sign and refuses if the file referred to has changed (reference_changed gives the one it has now).

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": "sign"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesA file path inside the workspace, like 'drafts/report.md'. Folders are just '/' in the path.
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. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds substantial context beyond that: signatures are appended to a block, content is every byte above the block, edits invalidate signatures, and SHA-256 references are verified with a `reference_changed` refusal. However, it references parameters (`parties`, `agreed_by`, `refers_to`) that do not exist in the supplied input schema, which muddies the behavioral picture.

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

Conciseness3/5

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

The core action is front-loaded, which is good, but the body is a dense run-on with nested parentheticals and a stray version prefix ('0.87.0:'). Several clauses about non-existent parameters could be cut without losing the essential instruction.

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?

For a mutation tool with no output schema, it covers the important behavior: what gets written, what invalidates a signature, and the `reference_changed` failure mode. The main incompleteness is the mismatch between the described inputs and the actual schema.

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 coverage is 100%, so the three real parameters (workspace_id, path, api_token) are already fully documented and the description adds nothing about them. Worse, it describes `parties`, `agreed_by` and `refers_to` as if they were inputs, but none appear in the schema — this actively misleads an agent about what it can pass.

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?

States a specific verb and resource ('sign a file as it is now') and immediately explains the mechanism (signature block at end of file), which distinguishes it from siblings like agree or list_agreements. An agent can tell what this does without opening the schema.

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 a clear precondition — 'Only a party signs (`parties`, or the dimension the file's convention names with `agreed_by`)' — and explains the state transition to 'agreed' once all named parties sign. It does not explicitly name an alternative tool or say when not to use it, so it stops short of full routing guidance.

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