Skip to main content
Glama

dm_spectrum_info

Reads a specified dataset's spectrum axis, spatial bounds, and energy calibration so you can verify spectral metadata before analysis. Requires an explicit image ID and energy axis; no quantification.

Instructions

读取明确指定数据集的光谱轴、空间选择及能量标定信息。实验性基础接口;真实 EDS/EELS/SI 为 NOT_TESTED(未验证),仅合成数据覆盖。不自动识别谱种,不作背景扣除或元素/化学定量,不假定强度单位;拒绝 4D 衍射或 nm 标定能量轴。

Input Schema

NameRequiredDescriptionDefault
image_idYesdm_datasets 返回的明确图像 id;不接受 front,避免窗口切换改变数据集
energy_axisYesNumPy 轴序中的能量轴,0 起始(不是 DM 维号);必须具有 eV 或 keV 标定。支持 1D/2D/3D,拒绝 4D 衍射
spatial_boundsNo其余空间轴按 NumPy 原始顺序的 [start,stop) 边界;显式提供时必须覆盖所有空间轴。每对 start<stop,不裁夹越界值;省略则全部空间范围

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. It does disclose critical maturity information (experimental, NOT_TESTED, synthetic-only) and enumerated refusals, but says nothing about permissions, error behavior, or return shape. It is strong on scope limitations but incomplete on other behavioral traits.

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?

The description is compact and front-loads its core purpose before moving to limitations. Each clause adds substance, though the run of negatives becomes dense and could be grouped more clearly.

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?

No output schema exists, so the description must, and does, indicate what the tool returns: axis, spatial selection, and calibration. Maturity and refusal conditions are covered. Minor gaps remain in return-structure detail, but it is sufficient for correct invocation.

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%, so all three parameters are already documented in the schema, and the baseline is 3. The description restates a few constraints such as eV/keV calibration and the 4D rejection without adding syntax or semantics beyond what the schema already supplies.

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?

States a specific verb and resource: read spectral axis, spatial selection, and energy calibration for an explicitly named dataset. It is distinguishable from write/reduction tools like dm_spectrum_integrate through its stated exclusions, though it never names a sibling tool directly.

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?

Explicitly limits scope: no automatic spectrum-type identification, no background subtraction, no quantitative analysis, rejects 4D diffraction and nm-calibrated energy axes. It also flags genuinely useful context: experimental status with only synthetic-data coverage, so an agent knows not to trust it on real EDS/EELS/SI data. It does not point to an alternative tool for those rejected cases.

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