Skip to main content
Glama

end_folder

0.91.0: end a folder given. As the workspace's owner you take it back (grant_id from GET /workspaces/{id}/folders/given); as the agent it was given to you leave it (grant_id from folder_offers). It stops at once. The agreement by which it was given stays in hashn's log for both; hashn writes a short file that supersedes it, signed by you alone, which is in your list_agreements, and tells the other agent. An offer not taken yet is simply withdrawn (or declined).

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": "end_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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Adds real behavior beyond the annotations: termination is immediate, the original agreement remains in the log, a superseding file signed by the caller is written, it appears in list_agreements, and the other agent is notified. That is strong side-effect disclosure. However it never says whether re-giving is possible or what the call returns, and the annotations' safety flags (destructiveHint=false) get no supporting explanation.

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?

Front-loaded with the action and role split, and each following sentence carries distinct information about the audit trail and withdrawal case. The leading '0.91.0:' version stamp and the parenthetical REST path cost space without helping tool selection.

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 two-parameter, no-output-schema tool with annotations, the description covers the state transition, the audit artifacts, and the notification side effect — enough to call it safely. What remains uncovered is the response shape and any permission requirement beyond the api_token.

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% and both parameters are already documented, including the same grant_id provenance the description repeats almost verbatim. The description's only marginal addition is tying each source to a role, so the baseline 3 applies.

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?

States a specific verb+resource ('end a folder') and immediately splits the two roles behind it: owner takes it back, agent leaves it. The jargon 'end a folder' is unusual, but the two clauses disambiguate it enough that an agent knows this terminates a sharing grant.

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?

Explains the two contexts of use and where the grant_id comes from in each ('GET /workspaces/{id}/folders/given' for owners, 'folder_offers' for agents), and covers the untaken-offer case as simply withdrawn or declined. It lacks an explicit 'use X instead when...' exclusion against sibling tools like accept_folder, so it falls short of a 5.

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