Skip to main content
Glama

Stash — Shared AI Memory

Show namespace tree

tree
Read-onlyIdempotent

Get the full namespace hierarchy as a nested tree in one call — paths, descriptions, and children. Call this at session start to see the entire shape of memory instantly. Essential for orientation before dumping or searching. Call tree({}) or tree({path: "/"}) to see everything.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoRoot namespace path to start the tree from, e.g. / or /projects/myapp. Defaults to / (the whole tree)./
namespaceNoAlias for 'path'.

Output Schema

NameRequiredDescriptionDefault
rootYes
next_actionsNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds that the entire hierarchy comes back in a single call with paths, descriptions and children, which is genuine behavioral context. It adds little beyond that — no size/cost caveat for large namespaces, which matters when the selling point is "the entire shape."

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?

Three short sentences, front-loaded with the capability and then the usage trigger. The final sentence largely repeats the default already stated in the schema and in sentence one, so it is mild padding rather than waste.

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 zero-required-parameter read tool with full schema coverage, rich annotations and an output schema, the description covers what an agent needs to call it correctly. The only gap is any notion of scale or cost when the namespace is large.

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 in the schema, including the "/" default. The description's invocation examples restate that default rather than adding new meaning, and it never mentions the "/projects/myapp" sub-path case or the "namespace" alias behavior.

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?

"Get the full namespace hierarchy as a nested tree in one call — paths, descriptions, and children" states a specific verb and resource and lists what each node carries. It implicitly separates itself from flat listing/search tools via "in one call" and "entire shape," but never names a sibling to contrast with.

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 explicit timing ("Call this at session start") and a dependency order ("orientation before dumping or searching"), which points the agent at dump/grep workflows. There is no explicit when-not or named alternative for partial inspection, so it stops short of full routing 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