Skip to main content
Glama
verdi-bridge
by Yin-yao

read_source

Fetches numbered HDL source lines for a dot-separated object in allowed roots, with configurable start line and count for RTL code inspection.

Instructions

Read numbered source lines for a dot-separated HDL object in allowed roots.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "signal": "<signal>"
    },
    "name": "read_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNo
startNo
signalYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden. It does reveal two useful traits — results include line numbers and access is limited to "allowed roots" — but says nothing about behavior when the object is unknown, whether anything is mutated, error handling, or result shape for a read that could fail on unresolvable signals.

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?

A single tight sentence with the scoping constraint front-loaded and no filler. It is efficient, though the brevity comes at the cost of the parameter and behavior detail noted elsewhere.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Three undocumented parameters, no annotations and no output schema mean the description must do more than one sentence. An agent still cannot tell how to construct a valid signal path, how the start/count window behaves out of range, or what a failed lookup returns.

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

Parameters2/5

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

Schema description coverage is 0%, so all three parameters depend on the description. It hints at line-range reading ("numbered source lines") and gives the signal as a "dot-separated HDL object," but never explains the start/count window, their defaults (1 and 80), whether count is a line count, or what form the signal path takes (e.g. top.u_core.clk).

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 numbered source lines") plus a scoping qualifier ("for a dot-separated HDL object in allowed roots"). That is enough to separate it from a plain file reader, though the description never names read_source_file or explains the object-vs-path distinction explicitly.

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: an agent can infer this is the tool for reading source around a hierarchical HDL object rather than a file path. There is no explicit when-to-use, when-not-to-use, or mention of the obvious alternative read_source_file.

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