Skip to main content
Glama

get_pre_commit_summary

Generate a markdown engineering summary for git commit bodies, capturing Vivado timing (WNS/WHS), resource usage (LUT/FF/BRAM/DSP), and CW/ERROR counts to replace vague commit messages.

Instructions

生成一段可以贴进 git commit body 的工程摘要(时序/资源/CW)。

典型用途:做完 RTL 改动、跑完 impl 之后,想把关键数字写进 commit body, 避免 "改了 UART 模块" 这种无信息量的 commit。本工具一次性采样:

  • 项目 + part + 顶层

  • 时序摘要(WNS / WHS / 失败端点数)

  • 资源占用(LUT / FF / BRAM / DSP / IOB 百分比)

  • CW / ERROR 计数(若有 impl_run)

  • 综合生成 READY/WARN/FAIL 门禁标签

输出为 markdown 片段,直接粘贴到 commit 描述。

Args: impl_run: 用来查 runme.log 计数的 run(默认 impl_1)。 session_id: 目标会话 ID。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
impl_runNoimpl_1
session_idNodefault

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that it samples various data, includes conditional logic (CW/ERROR only if impl_run exists), and outputs markdown. It implies read-only behavior by mentioning '跑完 impl 之后' but does not explicitly state it won't trigger synthesis/implementation.

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 well-structured: purpose first, then typical use, bullet-pointed content list, output format, and args. It is slightly verbose but every sentence provides useful information with no fluff.

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 an output schema, so return value details are covered by schema. The description covers input args, output format, and usage scenarios. It misses prerequisites like project/session existence, but overall it is sufficiently complete for a tool with two parameters.

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 0%, so the description must compensate. It explains impl_run as the run used to query runme.log counts with default impl_1, but session_id is only described as '目标会话 ID' which adds little meaning. The description does not fully document how session_id is used.

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?

The description clearly states the tool's purpose: generate a project summary for git commit body, listing specific content (timing/resource/CW/status). It distinguishes itself from sibling tools like get_timing_report and get_utilization_report by being a composite summary generator.

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 description explicitly mentions a typical use case: after RTL changes and implementation, to fill commit body with key numbers. It does not explicitly exclude other scenarios or mention alternatives, but the context is clear enough.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mapleleavessssssss-wq/vivado-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server