Skip to main content
Glama

get_cdc_report

Parse CDC reports to count violations by clock pair, severity, and rule, returning bounded JSON details for signoff analysis.

Instructions

解析 CDC 报告,按时钟对、严重级别和规则计数并返回有界明细 JSON。

现场执行 report_cdc -details -return_string;离线读取原始 UTF-8 报告。 计数单位为报告检查项,摘要与明细不重复累加,不能当总线位/端点数。 未验证完整时钟/IO 约束覆盖,默认报告可能隐藏豁免;signoff 始终 false, 空结果或 All paths are Safely Timed 不代表 CDC clean。本工具不修改约束。

Args: session_id: 现场查询会话 ID。 report_file: 可选本地原始 report_cdc -details 文本,最多 16 MiB,无需会话。 max_details: 返回明细上限,0..500;超过上限仍统计完整输入并明确截断。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idNodefault
max_detailsNo
report_fileNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.26

TDQS

A4.7/5.0
Behavior5/5

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

No annotations are present, so the description carries the full burden. It discloses counting semantics, no double counting, non-signoff guarantees, that empty results are not CDC-clean, and explicitly states the tool does not modify constraints.

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?

Front-loaded purpose, then invocation modes, caveats, and parameters. Every sentence adds distinct value, including safety and semantic warnings; there is no filler or repetition.

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 an output schema present, return-value documentation is not needed. The description fully covers limits, caveats, and invocation modes, but it does not explicitly state whether session_id and report_file are mutually exclusive or what happens if neither is provided, leaving minor invocation ambiguity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description's Args section fully compensates: session_id, report_file (optional, raw text, 16 MiB limit, no session needed), and max_details (0..500, truncation behavior). This adds meaning beyond names and defaults.

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?

Description opens with a specific verb and resource: '解析 CDC 报告' and states exact outputs: counts by clock pair, severity, rule, and bounded detail JSON. This clearly distinguishes it from timing, IO, and utilization report siblings.

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 describes two invocation modes: live via a session executing report_cdc -details -return_string, and offline via a raw report file requiring no session. Clear context is provided, though no explicit 'use this instead of X' alternatives are named.

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