Skip to main content
Glama

dm_metadata

Reads a specified metadata subtree from DigitalMicrograph datasets, reports path status and completeness, and returns bounded results using prefix-based navigation.

Instructions

读取指定元数据子树。先检查 path_status(found/not_found/unavailable),再检查 complete 和 issues;先定位 prefix 再按子树预算读取,不把截断或读取失败当作标签缺失。

Input Schema

NameRequiredDescriptionDefault
prefixNoJSON Pointer,如 "/Acquisition/Instrument";也接受无首斜线形式;~1 表示斜线,~0 表示波浪号;列表用零基索引;省略或空字符串表示根
image_idNo图像 id(来自 dm_datasets),或 "front" 表示前台窗口
max_depthNo所选子树的递归深度上限,默认 8;不限制 prefix 的路径深度

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does meaningful work: it discloses the path_status states (found/not_found/unavailable), the complete and issues signals, and warns not to treat truncation or read failure as missing labels. Missing are permissions/auth requirements and any rate or size limits.

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 clauses with the purpose front-loaded and then the verification order. No filler, though the run-on second sentence packs several ideas together.

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?

There is no output schema, so the description usefully explains what the caller will see back (path_status, complete, issues) and how to interpret it. What remains uncovered is failure semantics like permissions or concurrency, which is a minor gap for a read tool.

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 prefix, image_id and max_depth are already fully documented in the schema. The description only adds the informal notion of a 'subtree budget' and the resolve-prefix-first step, adding little beyond the structured fields — baseline 3.

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 first sentence states a specific verb+resource: '读取指定元数据子树' (read the specified metadata subtree). It is clear what the tool does, though it never names which sibling (e.g. dm_datasets, dm_profile) it should be preferred over.

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 an explicit read order — check path_status first, then complete/issues, locate the prefix before reading against the subtree budget — which tells the agent how to sequence calls. It stops short of naming alternatives or stating when not to use this tool.

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