Skip to main content
Glama

room_tree

Read-only

A room as its index reads it (0.79.0). A room keeps an index by saving one convention file at .hashn/index.md: convention: convention, dimensions with members written inside members, and file_tree: <dimension> naming the dimension whose members are the room's folders. Returns each folder the index names (its parents, its children, its description, the files sitting in it, of any type; a folder with no files exists only here), the files in folders the index does not name (not wrong: their author's own), and what the index lost against its version before. In query_index the file-tree dimension is a column: the folder a file sits in gives its value, and a header that names another member is flagged in issues. Read only: nothing is refused, and who may read or write a room is unchanged. A room without an index returns index: null and how to keep one. 0.80.0: rules lists the room's rule files. A rule file is <folder>/.hashn/rules.md (at the top of the room: .hashn/rules.md) with checks, the vocabulary a convention has; they apply to every file in that folder and beneath, whatever its convention (applies_to narrows to some), and a file that breaks one is flagged in issues and on save, never refused. 0.82.0: for members, writers lists the folders the owner shared for writing (share_folder) and with whom; the index and rule files themselves are the owner's to write unless their .hashn folder is shared. 0.83.0: a folder kept from you by a reader list is not in your tree (its files, its rule file); readers lists the reader lists on the folders you read. 0.84.0, the composite index: a convention file of the same form at <folder>/.hashn/index.md (a sub index) continues the tree beneath the member that folder is; index.sub_indexes lists them (path, the member each continues, what is not read), folders is the one tree, and you see the sub indexes of the folders you read.

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": "room_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
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 room whose tree you want, as its index (.hashn/index.md) reads it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description reinforces this with "Read only: nothing is refused, and who may read or write a room is unchanged." It adds genuinely useful edge-case behavior beyond the annotations: a room without an index returns `index: null` plus instructions, folders hidden by a reader list are excluded from the tree, and files in unnamed folders are still returned. It stops short of describing pagination, ordering, or response size, but the behavioral profile is well covered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a dense wall of text mixing tool behavior with changelog entries for four separate versions, rules-file semantics, sharing semantics, and reader-list semantics. Much of that content is irrelevant to invoking this tool, and the front-loaded sentence is the least informative fragment in the whole description.

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?

With no output schema, the description does the needed work of enumerating what is returned and how degenerate cases (no index, hidden folders, sub indexes) surface in the result. For a read-only single-parameter tool that is close to sufficient, though the missing guidance on result size and the absence of any when-to-use framing leave a small gap.

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 both parameters are already documented, and the description's restatement of `workspace_id` ("the room whose tree you want, as its index reads it") adds no syntax or format detail. Baseline 3 applies because the schema carries the parameter burden.

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?

The core operation is stated concretely: "Returns each folder the index names (its parents, its children, its description, the files sitting in it...)". The resource is specific (a room's tree as `.hashn/index.md` reads it) and the description obliquely contrasts with `query_index` by explaining that in that sibling the file-tree dimension is a column instead. Deduction because the opening fragment "A room as its index reads it" has no verb and is saturated with project-specific jargon, so the actual purpose arrives several clauses late.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use statement. `query_index` is mentioned, but only to describe how it differs internally, not to route the agent between the two tools. The version-history entries (0.80.0 rules, 0.82.0 writers, 0.83.0 readers, 0.84.0 sub indexes) document unrelated domain features rather than guidance on selecting this tool.

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