Skip to main content
Glama

Submit the schematic

submit_circuit

Compile and check a complete SKiDL script: the symbol and footprint pre-flight (unambiguous typos are corrected and listed), SKiDL, the ERC score, KiCad ERC, floating subsystems, parts without a footprint, and supplier sourcing. Returns accepted plus blocking findings to fix and warnings. An accepted script becomes the design's circuit.py; one that is sent back is kept as attempt_N_circuit.py and leaves the design as it was. Takes up to a couple of minutes.

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>",
      "code": "<code>"
    },
    "name": "submit_circuit"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe complete SKiDL Python script.
design_idYesThe design id returned by create_design or list_designs.
check_sourcingNoCheck the parts against supplier catalogues (default true).

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 / code / maxLength
      Removed value: -400000
    • removedInput schema / properties / code / minLength
      Removed value: -1
    • removedInput schema / properties / design_id / pattern
      Removed value: -"^[A-Za-z0-9_-]{8,80}$"
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With annotations only covering readOnly/destructive/openWorld, the description adds the details that matter: typo autocorrection and listing, returned accepted/blocking/warnings split, what happens on rejection (kept as attempt_N_circuit.py, design unchanged), and a runtime of up to a couple of minutes. This is real behavioral disclosure beyond structured fields.

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?

Front-loaded with the action, then the checklist, then the return shape, then side effects, then runtime. Dense but every clause carries information and there is no filler.

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

Completeness5/5

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

No output schema exists, and the description compensates by describing the return structure (accepted plus blocking findings and warnings) as well as side effects and latency. Nothing an agent needs in order to call this correctly is missing.

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 100% and all three parameters are documented there, so the schema does the heavy lifting. The description adds only that the script must be 'complete' and doesn't touch check_sourcing, so baseline 3 applies.

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?

Opens with a specific verb+resource ('Compile and check a complete SKiDL script') and enumerates exactly what is validated: symbol/footprint pre-flight, SKiDL, ERC score, KiCad ERC, floating subsystems, missing footprints, sourcing. An agent can tell this is the full-submission gate rather than an incremental edit.

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?

Establishes the context clearly: this takes a *complete* script and is the acceptance gate that turns it into the design's circuit.py. It does not name an alternative (e.g. edit_circuit) or state explicit when-not conditions, so it stops short of full routing guidance.

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