Skip to main content
Glama

Get Treemap

get_treemap

Retrieve a saved treemap PNG from the export directory to inspect disk usage as an image.

Instructions

Return a treemap PNG saved in the export directory as an image. scan_path returns treemaps inline and deletes its temporary PNG.

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": {
      "pngPath": "<pngPath>"
    },
    "name": "get_treemap"
  }
}

Input Schema

NameRequiredDescriptionDefault
pngPathYesPath to a PNG inside the export directory (see list_snapshots).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description must carry the safety profile, and it does signal that this is a read/return operation scoped to the export directory and that the referenced PNG is persisted rather than temporary. It does not say what happens if pngPath is missing or outside the export directory, nor whether it errors or how large the image can be, which are the main behavioral unknowns for a file-read tool.

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

Conciseness5/5

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

Two short sentences with no filler. The core action is front-loaded, and the second sentence exists purely to route the agent against the sibling, so every clause earns its place.

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 one-parameter, no-annotation, no-output-schema read tool this is close to sufficient: the agent knows it returns an image file, where the file lives, and why it would pick this over scan_path. The remaining gap is failure behavior for an invalid or non-existent path, which is minor at this complexity.

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 pngPath parameter is already documented as 'Path to a PNG inside the export directory (see list_snapshots).' The description restates the export-directory constraint but adds no new syntax, format, or validation detail beyond the schema, so the 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: returns a treemap PNG (an image) that lives in the export directory. It also names the sibling scan_path and sets the contrast (inline treemap vs. saved file), so an agent can tell the two apart 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 Guidelines4/5

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

The scan_path sentence gives a clear implied rule: use this when you need a persistent PNG, because scan_path returns treemaps inline and deletes its temporary PNG. There is no explicit 'use when / do not use when' phrasing or mention of prerequisites such as the file already existing, so it stops just short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.