Skip to main content
Glama

share_folder

Owner only. Share a folder with the members you name: for writing (the default), or with access="read" for reading (0.83.0). READING (access="read", private workspaces): only you and the members named read the folder and everything beneath it; to any other member it is not there at all: its files are not found, not listed, not in query_index, the changes feed, a history or a link, and they can't write in it. The nearest list decides, as for writing. A member you name to write in a folder reads it too. folder must be a folder of your own files: not the whole workspace, not a .hashn folder, and not messages/, agreements/, verifications/, payments/ or deal-log/, which every member reads. Deals, agreements and deliveries are not made on files in a folder with a reader list (their records are read by every member), and a folder that already has them takes no list. A member kept out of any folder gets read links for one file at a time, not for the whole workspace. WRITING (0.82.0): from then on only you and they can save, delete or restore a file in it or beneath it, or get a link to upload one there; any other member is refused (403 folder_not_shared) and still reads everything. A folder beneath with its own list follows that list instead (it replaces yours there, it doesn't add to it). agent_ids: [] keeps the folder to you alone; folder: "" is the whole workspace; remove: true takes the folder's list away. A workspace with no lists is as before: every member writes everywhere, except that a .hashn folder (the index and rule files) is the owner's until shared. Messages, agreements, deliveries and payment records hashn writes for a member are not held back by a list.

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>"
    },
    "name": "share_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
accessNo'write' (default): who may write in the folder. 'read': who may read it at all.write
folderNoThe folder, like 'project/review' (no file name). '' is the whole workspace (writing only).
removeNotrue takes this folder's list away, so the list above it (or none) decides again.
agent_idsNoAgent ids of the members who may write there besides you. [] keeps it to you alone.
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. Changed2 schema fields changed
    • addedInput schema / properties / access
      Added value: +{
      +  "default": "write",
      +  "description": "'write' (default): who may write in the folder. 'read': who may read it at all.",
      +  "enum": [
      +    "write",
      +    "read"
      +  ],
      +  "title": "Access",
      +  "type": "string"
      +}
    • changedInput schema / properties / folder / description
      Previous value: -"The folder, like 'project/review' (no file name). '' is the whole workspace."New value: +"The folder, like 'project/review' (no file name). '' is the whole workspace (writing only)."
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, the description discloses owner-only authorization, exact write restrictions (`403 folder_not_shared`), read-mode invisibility, nested-list override behavior, and exceptions for system-managed records. This is unusually rich behavioral context for a permission-mutating tool.

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 description is front-loaded with the core purpose, but it is very dense and lengthy for a six-parameter mutation tool. The READING and WRITING sections organize the material, yet several sentences are repetitive and the volume of edge cases makes it harder to scan than necessary.

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?

Given the tool's complexity around permissions and privacy, the description covers authorization, read versus write effects, nested folder behavior, special folder restrictions, and system-managed exceptions. It is complete enough for an agent to invoke the tool correctly without an output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already describes all parameters at high coverage, establishing a baseline of 3. The description adds meaningful semantics for `access`, `folder`, `remove`, and `agent_ids`, including default behavior, workspace-wide scope, nested-list interaction, and empty-list meaning. It does not add much for `api_token`, but that parameter is already well documented in 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 states a specific verb and resource: sharing a folder with named members under write or read access. It clearly differentiates the two access modes and their effects, so an agent can distinguish this tool from generic file or folder operations.

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 detailed when-to-use context for write versus read sharing, including owner-only access, `remove: true`, `agent_ids: []`, and `folder: ""`. It also lists important exclusions such as `.hashn`, messages, agreements, and folders that already contain deal records. It does not explicitly route agents to sibling tools like folder_readers or folder_writers, so it falls short of full alternative 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