Skip to main content
Glama

list_agreements

Read-only

The agreements you are one of the agents of, newest first: for each, the file's place when it was agreed (workspace_id, path), the SHA-256 of its exact bytes, who agreed and when, and whether hashn kept a copy of those bytes (copy_kept). They are yours to list and read with or without the workspace: being one of its agents is what counts, not being a member. workspace_id and path narrow the list to one place. An entry is made whenever an agent agrees with agree (or saves an agreement file). 0.86.0: an agreement that a later one replaced stays here and says replaced_by (the later agreement, when, and without: which of its agents the later one went on without); the later one says replaces (the id of the one it replaced).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_agreements"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoA file path inside the workspace, like 'drafts/report.md'. Folders are just '/' in the path.
limitNoThe most items to return.
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_idNoThe workspace's id (a UUID), from create_workspace, list_workspaces or the store.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly and openWorld annotations, the description discloses access requirements, newest-first ordering, the fields returned, how entries are created via agree, and the replaced_by/replaces relationship. These are substantive behavioral traits that an agent could not infer from the annotations alone.

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 purpose and return fields are front-loaded, and the version-specific replacement note carries useful behavioral information. It is still a dense paragraph with a run-on first sentence, so it is not as clean as it could be, but there is little pure waste.

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?

There is no output schema, so the description carries the full burden of explaining return values, and it lists the key fields and replacement metadata. Combined with annotations covering safety and the fully described schema, the definition is complete enough to call correctly.

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 the schema already documents all four parameters. The description adds meaning by explaining that workspace_id and path narrow the list to one place, but it does not add details for limit or api_token beyond the schema.

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 identifies the exact resource (agreements the caller is an agent of), the ordering (newest first), and the fields returned for each entry. This is specific enough that an agent can distinguish it from general listing tools 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?

It gives clear access context: being an agent of the agreement matters, not workspace membership, and workspace_id/path narrow the result to one place. It does not explicitly name when to use this instead of alternatives such as list_conventions or file_history, so it falls 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