Skip to main content
Glama
mo9652962-ai

circuit-agent

by mo9652962-ai

calculate_fab_cost

Read-onlyIdempotent

Estimate PCB fabrication cost from layer count, quantity, board size, surface finish, thickness, solder mask color, lead time, and tiered pricing.

Instructions

Estimate PCB fabrication cost from fab-house published tiered pricing: layers (2/4/6), quantity tiers (5/10/30/100), area surcharge beyond 100x100mm, solder mask color, surface finish (HASL/ENIG/OSP), board thickness, and lead time (normal/48h/24h). Estimate only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
layersNoLayer count (2, 4, or 6; default 4).
quantityNoBoard quantity (default 5).
lead_timeNoLead time: normal (x1.0), fast_48h (x1.5), urgent_24h (x2.5).normal
thickness_mmNoBoard thickness in mm: 0.6/0.8/1.0/1.2/1.6 (default)/2.0.1.6
board_width_mmNoBoard width in mm (default 100).
surface_finishNoSurface finish: hasl_lead (free), hasl_lead_free (+15), enig (+80), osp (free), silver (+45).hasl_lead_free
board_height_mmNoBoard height in mm (default 100).
solder_mask_colorNoSolder mask color: green (free), red/yellow/blue (+25), black/white (+40), matte (+60).green

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.7

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds real value beyond that by disclosing the pricing model ('fab-house published tiered pricing') and the 'Estimate only' caveat, signaling this is an approximation rather than a binding quote.

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 dense sentence front-loads the purpose and pricing basis, followed by the terse 'Estimate only.' caveat. It is tightly sized, though the enumerated parameter list partially duplicates the fully-covered schema.

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 annotations covering safety and the schema covering all inputs, the description supplies the remaining context (estimate source and approximation caveat). Minor gaps remain: no output schema and no mention of currency or return format, but these are not critical for a read-only calculator.

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 description coverage is 100%, so all eight parameters (including pricing multipliers for finish, color, and lead time) are already documented. The description recaps the same inputs (layers, quantity, color, finish, thickness, lead time) at a higher level without adding syntax or meaning beyond the schema; 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?

States a specific verb ('Estimate') and resource ('PCB fabrication cost') and immediately scopes the pricing basis to fab-house published tiers. This clearly distinguishes it from sibling cost tools such as calculate_bom_cost, without needing to open either schema.

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?

The description implies usage (published tiered pricing) and adds the caveat 'Estimate only', but never states when to use this tool versus alternatives like calculate_bom_cost, nor any prerequisites. The guidance is inferable but not explicit.

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

Deploy Server

Other Tools