Skip to main content
Glama
eecalc-mcp

eecalc-mcp

by aysel-elsh

pcb_trace_width

Read-onlyIdempotent

Calculate minimum PCB trace width from current, copper weight, layer, and allowed temperature rise under IPC-2221 for safe current-carrying traces.

Instructions

Minimum PCB trace width to carry a current without exceeding a temperature rise (IPC-2221).

Returns width in mm and mil. Internal layers need roughly 2.6x the width of external ones.

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": {
      "current_a": "<current_a>"
    },
    "name": "pcb_trace_width"
  }
}

Input Schema

NameRequiredDescriptionDefault
layerNoexternal
copper_ozNo
current_aYes
temp_rise_cNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and closed-world, so safety is covered; the description adds real value by disclosing the underlying model (IPC-2221) and the internal-vs-external 2.6x scaling that silently changes results. It omits assumptions like copper thickness defaults and the allowable temperature-rise basis, which would have pushed this higher.

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?

Two short sentences, front-loaded with the purpose before the layer caveat, with no filler. The 'Returns width in mm and mil' line is slightly redundant given an output schema exists, but it is a minor cost.

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?

An output schema is present, so return values need no prose, and the core calculation is unambiguous. However, for a 4-parameter engineering calculator with zero schema descriptions, an agent still cannot tell what units or valid ranges `copper_oz` and `temp_rise_c` accept.

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 the description carries the full burden, yet it only clarifies the effect of `layer`. `copper_oz`, `temp_rise_c`, and the required `current_a` are left entirely to their bare parameter names, with no units, ranges, or defaults explained.

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 output (minimum PCB trace width) and the exact constraint it solves for (current without exceeding a temperature rise), plus the governing standard (IPC-2221). That is enough to distinguish it from siblings like pcb_trace_current or pcb_trace_resistance without opening a schema, though no sibling is named explicitly.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus pcb_trace_current (the inverse calculation) or how it relates to impedance tools. The only guidance offered — 'Internal layers need roughly 2.6x the width of external ones' — is a sizing heuristic for one parameter, not a trigger or exclusion for the tool itself.

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