Skip to main content
Glama

accept_folder

0.90.0: take a folder offered to you (folder_offers). Your signature is added to the participation file beside the owner's: signed by both it is an agreement, kept in hashn's log (list_agreements) for both of you, and the folder is yours to read (or write) from then on. You do not become a member of the workspace. Pass content_sha256 from folder_offers so that what is signed is the text you read. An offer you don't want is simply left; it can also be removed with POST /folders/{grant_id}/decline.

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": {
      "grant_id": "<grant_id>"
    },
    "name": "accept_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
grant_idYesThe offer's or given folder's id (a UUID), from folder_offers (or, for the owner, from the workspace's given folders).
api_tokenNoYour hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set.
content_sha256NoThe `content_sha256` folder_offers gave for the text you read, so that is what gets signed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / grant_id / description
      Previous value: -"The offer's id (a UUID), from folder_offers."New value: +"The offer's or given folder's id (a UUID), from folder_offers (or, for the owner, from the workspace's given folders)."
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false, destructiveHint=false, openWorldHint=false; the description goes much further by explaining the actual side effects — your signature is appended beside the owner's, the result is recorded as an agreement in hashn's log, and the folder becomes readable/writable from then on. It also discloses the reversibility path (leave or decline) and the integrity mechanism (the content_sha256 you read is what gets signed).

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 core action and its consequences come first, followed by the parameter hint and the decline alternative — a sensible front-loaded order. The leading '0.90.0:' version tag is noise that delays the verb, and the second sentence is a dense multi-clause chain, but little of the content is filler.

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 single-required-parameter mutation with annotations and no output schema, the description covers effect, logging, access rights, and the opt-out path — enough to call it correctly. The remaining gap is that it never says what the call returns or how to confirm success beyond checking list_agreements, and it doesn't position itself against accept_forest_offer.

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 grant_id, api_token, and content_sha256 are already documented in the schema. The description reinforces content_sha256's purpose ('so that what is signed is the text you read'), which is slightly richer than the schema wording, but adds no new format, default, or constraint information. Baseline 3 applies when the schema carries the parameter burden.

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 — taking a folder offered to you — and names the source tool (folder_offers) where such an offer comes from. This is clearly distinguishable from list_agreements or end_folder, which appear in the description as the log and lifecycle counterparts rather than aliases.

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 trigger condition (an offer exists in folder_offers) and explicitly covers the negative path: an unwanted offer is simply left, or removed via POST /folders/{grant_id}/decline. It also pre-empts a common misconception by stating 'You do not become a member of the workspace.' It stops short of contrasting with the sibling accept_forest_offer, so the when-not-to-use-this-vs-that is incomplete.

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