Skip to main content
Glama

List trees

list_trees
Read-only

List the organisation and source (repository, database) Page trees in this context.

Returns the exact selectors get_tree, search, and read accept, with each tree's id, root Page, origin, sync status, and processed and detected revisions — so this also answers whether a source tree is up to date. Check the processed revision before relying on one. A source tree (repository docs or a database schema map) is generated from the code that actually ships: accurate but concise, so absence from it proves nothing. Call this before passing tree or trees for anything other than the main organisation tree.

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

Input Schema

NameRequiredDescriptionDefault
context_idNoThe context to use, from list_contexts. Optional when you belong to one context.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare a safe read operation, yet the description adds substantive context: returned trees carry the exact selectors accepted by get_tree/search/read, and a source tree is generated from shipping code so absence from it proves nothing. That caveat and the revision-staleness warning are behavioral facts the annotations cannot convey.

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?

Purpose is front-loaded in the first sentence, followed by return contents, a caveat, and the call precondition in a logical order. It is dense but nearly every sentence earns its place; only the standalone 'Check the processed revision' line slightly restates what the previous sentence already named.

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?

With an output schema present, the description does not need to enumerate return fields, and it still summarizes their meaning while covering scope, staleness caveats, and when to call. For a one-parameter read tool this leaves nothing an agent needs missing.

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 the single optional context_id is fully documented in the schema, so the baseline of 3 applies. The description's phrase 'in this context' reinforces the scoping but adds no syntax or default behavior beyond what the schema already states.

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 ('List the organisation and source (repository, database) Page trees') and narrows the scope to 'in this context'. It also distinguishes the two tree families (organisation vs. source) and explains what a returned tree represents, so an agent can tell it apart from get_tree and list_contexts without opening a 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?

Gives an explicit precondition for calling ('Call this before passing `tree` or `trees` for anything other than the main organisation tree') and implicitly excludes the main organisation tree. It further directs the agent to check the processed revision before relying on a tree, which is concrete usage guidance rather than inference.

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