Skip to main content
Glama

Autonomous 0-DRC PCB Routing Foundry & Hardware MCP Server

Analyze Specctra DSN Autorouter File

analyze_specctra_dsn
Read-onlyIdempotent

Parse a Specctra .dsn autorouter file from KiCad, Altium, Allegro, or EasyEDA to extract resolution units, copper layers, and netlist pin counts. Call during pre-flight inspection for .dsn exports instead of native .kicad_pcb files. Accepts dsn_text or project_path; returns JSON unit, resolution, layer_count, and net_count. Example: project_path='design.dsn'.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_path": "design.dsn"
    },
    "name": "analyze_specctra_dsn"
  }
}

Input Schema

NameRequiredDescriptionDefault
dsn_textNoRaw UTF-8 Specctra .dsn S-expression text from ECAD export.
project_pathNoLocal filesystem path to a Specctra .dsn file (STDIO).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / dsn_text / description
      Previous value: -"Raw UTF-8 Specctra .dsn S-expression text exported from an ECAD layout tool (starts with '(pcb ...'). Example: '(pcb design.dsn (parser ...) (resolution um 10) ...)'."New value: +"Raw UTF-8 Specctra .dsn S-expression text from ECAD export."
    • changedInput schema / properties / dsn_text / examples
      Previous value: -[
      -  "(pcb design.dsn (parser ...) (resolution um 10) ...)"
      -]New value: +[
      +  "(pcb design.dsn (resolution um 10))"
      +]
    • changedInput schema / properties / project_path / description
      Previous value: -"Local filesystem path to a Specctra .dsn file on the client machine (supported in local STDIO mode). Example: 'export/design.dsn'."New value: +"Local filesystem path to a Specctra .dsn file (STDIO)."
    • changedInput schema / properties / project_path / examples
      Previous value: -[
      -  "board.kicad_pcb",
      -  "2l_rp2040"
      -]New value: +[
      +  "board.kicad_pcb"
      +]
  2. Changed2 schema fields changed
    • addedInput schema / properties / dsn_text / examples
      Added value: +[
      +  "(pcb design.dsn (parser ...) (resolution um 10) ...)"
      +]
    • addedInput schema / properties / project_path / examples
      Added value: +[
      +  "board.kicad_pcb",
      +  "2l_rp2040"
      +]
  3. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / dsn_text / description
      Previous value: -"Raw Specctra .dsn text."New value: +"Raw UTF-8 Specctra .dsn S-expression text exported from an ECAD layout tool (starts with '(pcb ...'). Example: '(pcb design.dsn (parser ...) (resolution um 10) ...)'."
    • changedInput schema / properties / project_path / description
      Previous value: -"Path to .dsn file."New value: +"Local filesystem path to a Specctra .dsn file on the client machine (supported in local STDIO mode). Example: 'export/design.dsn'."
  4. Changed3 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "dsn_text": "(pcb design.dsn (resolution um 10))"
      -  }
      -]New value: +[
      +  {
      +    "project_path": "design.dsn"
      +  }
      +]
    • removedInput schema / properties / dsn_text / examples
      Removed value: -[
      -  "(pcb design.dsn (resolution um 10))"
      -]
    • removedInput schema / properties / project_path / examples
      Removed value: -[
      -  "design.dsn"
      -]
  5. Changed5 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "dsn_text": "(pcb design.dsn (resolution um 10))"
      +  }
      +]
    • changedInput schema / properties / dsn_text / description
      Previous value: -"Raw Specctra `.dsn` text"New value: +"Raw Specctra .dsn text."
    • addedInput schema / properties / dsn_text / examples
      Added value: +[
      +  "(pcb design.dsn (resolution um 10))"
      +]
    • changedInput schema / properties / project_path / description
      Previous value: -"Local filesystem path to a `.dsn` file"New value: +"Path to .dsn file."
    • addedInput schema / properties / project_path / examples
      Added value: +[
      +  "design.dsn"
      +]
  6. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered; the description adds value by naming the concrete outputs (unit, resolution, layer_count, net_count). It does not disclose what happens on malformed DSN text or that exactly one input must be supplied, which matters because required=[] leaves both optional.

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?

Three tight sentences, front-loaded with the verb and resource, ending with the usage routing and an example. The only waste is mild redundancy: the return keys 'resolution' and 'net_count' restate the earlier 'resolution units' and 'netlist pin counts'.

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 no output schema, the description correctly supplies the return keys, and it identifies the input formats and source tools. The remaining gap is guidance on input selection when neither parameter is required, which is the one thing an agent could get wrong on invocation.

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 schema already carries the per-parameter detail; the description still adds a useful signal by framing the two inputs as alternatives ('Accepts dsn_text or project_path') and by showing a concrete call example. It stops short of stating the mutual-exclusion or precedence rule between the two.

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 uses the specific verb 'Parse' with the resource 'Specctra .dsn autorouter file', lists the source tools (KiCad, Altium, Allegro, EasyEDA), and enumerates exactly what is extracted: resolution units, copper layers, netlist pin counts. It also explicitly distinguishes itself from the native-file sibling ('instead of native .kicad_pcb files'), so an agent can select it without opening a schema.

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

Usage Guidelines5/5

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

It states the triggering condition precisely: 'Call during pre-flight inspection for .dsn exports.' It also names the alternative case (native .kicad_pcb files) so the agent knows when not to use this tool. Both the when and the when-not are present.

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.