Skip to main content
Glama

Read a design file

read_design_file
Read-only

Read a text file of the design: prompt.txt (brief), dossier.md, circuit.py, circuit.net, result.json, circuit.erc.json (KiCad ERC violations), attempt_N_circuit.py / attempt_N_error.txt, board_plan.json, pcb_result.json, pcb_run.log, circuit.drc.json (KiCad DRC), netclasses.resolved.json, dfm.json, harness.log.

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": {
      "design_id": "<design_id>",
      "path": "<path>"
    },
    "name": "read_design_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesA file name, e.g. 'circuit.py'.
design_idYesThe design id returned by create_design or list_designs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / design_id / pattern
      Removed value: -"^[A-Za-z0-9_-]{8,80}$"
    • removedInput schema / properties / path / maxLength
      Removed value: -80
    • removedInput schema / properties / path / minLength
      Removed value: -1
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is covered by structured data. The description adds that only text files are readable and identifies error/log artifacts, but says nothing about behavior when a path is absent or unlisted, or whether any of these files can be large.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in one short clause, but the remainder is a single flat 15-item list with no grouping by phase (schematic, ERC, PCB, DRC, DFM, attempts), which makes it dense to scan. Every item is arguably useful, so it is over-packed rather than padded.

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

Completeness3/5

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

For a two-parameter read tool with an output schema absent, the definition covers the essentials, but it never explains what each artifact is for beyond two parenthetical hints (ERC, DRC) or what the agent should do when a file does not yet exist. Adequate but with clear gaps.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline would be 3, but the description goes beyond the schema's single example ('circuit.py') by enumerating the valid file names, including patterned ones like attempt_N_circuit.py and attempt_N_error.txt. That materially reduces the chance of passing an invalid path.

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 states a specific verb and resource ('Read a text file of the design') and then enumerates the concrete artifacts available, so an agent knows exactly what class of object this returns. It does not distinguish itself from likely siblings such as get_design or get_downloads, so it stops short of a 5.

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 implied by the artifact list (fetch a design's brief, netlist, ERC/DRC reports, logs), but there is no explicit when-to-use statement, no guidance on which file answers which question, and no named alternative for retrieving design metadata.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources