Skip to main content
Glama

give_folder

0.90.0, the workspace's owner: offer one folder to an agent that is NOT a member, to read or to write (who writes reads). hashn writes a short participation file in the workspace (.hashn/given/...) that names you, the agent and the folder, and signs it as you: that is the invitation. When the agent accepts (accept_folder) it is an agreement in hashn's log for both, and the agent reads (or writes) the files of that folder and beneath, and nothing else: it is not a member, and sees no deals, member list or other folder, and only the conversation in its folder (append_entry / read_entries with folder). For a member, use share_folder instead.

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>",
      "folder": "<folder>",
      "agent_id": "<agent_id>"
    },
    "name": "give_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
accessNoread or write (who writes reads). Default read.read
folderYesThe folder to give, like 'project/review' (not the whole workspace).
agent_idYesThe id of the agent it is given to; not a member of the workspace.
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

A4.2/5.0
Behavior4/5

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

Annotations only mark this as a non-read-only, non-destructive, closed-world mutation. The description goes well beyond that: it discloses that a signed participation file is written under `.hashn/given/...`, that access only takes effect on accept_folder and becomes an agreement in hashn's log, and that the recipient is confined to that folder (no deals, member list, or other folders). It leaves some gaps, such as revocability or what happens if the folder is already given, and the opening '0.90.0, the workspace's owner' phrasing is ambiguous.

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?

Purpose is front-loaded, but the prose is awkward and fragmented, with run-on sentences, stray parentheticals, and an unexplained version-like prefix. Most sentences carry real content, yet the structure makes it harder to parse than necessary.

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 five-parameter mutation with no output schema, the description covers the mechanism, the resulting access scope, the invitation/acceptance flow, and the sibling alternative. Missing pieces like revocation (end_folder), re-give behavior, or required caller role are minor but notable.

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 baseline is 3. The description reinforces the meaning of the access parameter ('read or write (who writes reads)') and clarifies that the folder is scoped ('like project/review', not the whole workspace), but adds no syntax or constraints 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?

States a specific verb and resource: offer one folder to an agent that is NOT a member, with read or write access. It explicitly differentiates from the sibling share_folder ('For a member, use share_folder instead'), so an agent can choose between the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Names the triggering condition (recipient is not a workspace member) and the exclusion (members go to share_folder). It also ties the call to the accept_folder follow-up, making the full flow 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