Skip to main content
Glama

Show the memory tree

memory_tree
Read-only

Show how this account's memory is organised, as an indented tree: every folder, empty ones included, with the names of the files in each, and the team an item belongs to. Meant for seeing the layout before choosing where a new file goes; it returns names only, no file contents, each file with its frontmatter type in brackets ([solution]). scope narrows it to personal files or to one team, folder to one folder and what is under it.

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

Input Schema

NameRequiredDescriptionDefault
scopeNopersonal, all, or team:<id>. Default all.
folderNoOnly this folder and what is under it, its full path (Memories/solutions) or its last part (solutions) when only one folder ends in it. Default the whole tree.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / folder / description
      Previous value: -"Only this folder and what is under it, e.g. solutions. Default the whole tree."New value: +"Only this folder and what is under it, its full path (Memories/solutions) or its last part (solutions) when only one folder ends in it. Default the whole tree."
  2. Changed1 schema field changed
    • addedInput schema / properties / folder
      Added value: +{
      +  "description": "Only this folder and what is under it, e.g. solutions. Default the whole tree.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description goes well beyond by disclosing the return shape (indented tree, empty folders included, frontmatter type in brackets like [solution], team per item) and by stating what is NOT returned ('names only, no file contents'). That is exactly the kind of expected-output context annotations cannot carry.

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 core identity before the caveats, and every clause carries information. It is a single densely packed sentence with semicolons, though, so it reads as slightly run-on compared with a short structured breakdown.

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 and no required parameters, the description carries the burden of describing the return value, and it does: tree shape, empty folders, bracketed type tags, team labels, names-only. Minor gaps remain (no mention of ordering, depth limits, or behaviour when the account or folder is empty), which keeps it off a 5.

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 in the schema with the same wording ('personal, all, or team:<id>. Default all.' and the folder path/last-part rule). The description restates this almost verbatim ('scope narrows it to personal files or to one team, folder to one folder and what is under it') rather than adding new meaning such as ambiguity resolution or path-matching precedence. Baseline 3 applies.

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 ('Show how this account's memory is organised, as an indented tree') and pins down the exact shape of the output: every folder including empty ones, file names, and team attribution. The clause 'returns names only, no file contents' separates it cleanly from the read/search siblings without needing to name them.

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?

Gives an explicit use case: 'Meant for seeing the layout before choosing where a new file goes,' which tells the agent when to reach for this instead of a content-reading tool. It stops short of naming an alternative or stating an exclusion (e.g. 'do not use to fetch contents, use memory_read'), so it is clear context rather than full when/when-not routing.

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