Skip to main content
Glama

Synthesis and PnR warnings

gowin_warnings
Read-onlyIdempotent

Extract and group WARN/ERROR lines from Gowin synthesis and PnR logs by diagnostic code, with hints. Cross-check TA1132 to list clocks missing constraints.

Instructions

WARN/ERROR lines from impl/gwsynthesis/.log and impl/pnr/.log grouped by diagnostic code, with a hint for the common ones. Cross-checks TA1132 (clock detected but not created) against the timing report to list clocks that are missing a constraint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoOnly this diagnostic code, e.g. TA1132.
nameNoWhen several builds share one impl/pnr/, pick this one by name (the <name> of <name>.rpt.txt). Default: the most recent, with the others listed under siblings.
pathYesPath to the build: the project directory, its impl/ directory, impl/pnr/ itself, or the .rpt.txt. Either kind of slash.
levelNoMinimum severity. Default all.
stageNoWhich log to read. Default all.
formatNoOutput format. Default text: a compact rendering, returned as the only content. json: the full JSON as text and as structuredContent.
maxGroupsNoCodes to show in the text rendering, default 15.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.2

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish the safe read-only/idempotent/non-destructive profile, and the description adds genuinely new behavior: diagnostics are grouped by code, common codes get a hint, and the tool cross-reads the timing report to flag clocks missing a constraint. It does not describe pagination or output size limits, but for an annotated read tool this is useful added context.

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 tight sentences that lead with the core extraction behavior and then the special TA1132 cross-check. No filler, no repetition of the schema, and the most distinctive behavior is front-loaded.

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 7 parameters and no output schema, the description must sketch the return shape, and it does: results grouped by diagnostic code with hints, plus the extra missing-constraint clock list. It is nearly complete, though it could say more about the text vs json payload and grouping limits.

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 the schema already documents every parameter (code, name, path, level, stage, format, maxGroups) including defaults and enums. The description adds little parameter-level meaning beyond that, so the baseline 3 applies.

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 description names a specific verb and resource: it extracts WARN/ERROR lines from the synthesis (impl/gwsynthesis/<name>.log) and PnR (impl/pnr/<name>.log) logs, grouped by diagnostic code. That is far more specific than a generic 'get warnings', but it never names or contrasts a sibling tool (e.g. gowin_summary or gowin_timing), so it stops short of explicit differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied by the purpose and by the mention of cross-checking TA1132 against the timing report. There is no explicit statement of when to reach for this tool versus gowin_summary, gowin_timing, or gowin_check, and no exclusions or prerequisites.

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