Skip to main content
Glama

pcb_get_components

Retrieves every component from the active PCB with designator, position, rotation, layer, and footprint, plus count and datasheet guidance for validating part behavior.

Instructions

Get all components from the active PCB with position and properties.

DATASHEET DISCIPLINE: The response carries a _datasheet_guidance block. Before drawing any conclusion about a listed part's electrical behavior, pin function, or voltage rating, fetch its manufacturer datasheet (use WebSearch + WebFetch if you don't already have it). Library metadata here is NOT authoritative.

Returns: Dictionary with "components" array (each with designator, x, y, rotation, layer, footprint) and "count", plus _datasheet_guidance + _datasheet_parts.

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it discloses the return envelope (components array, count, _datasheet_guidance, _datasheet_parts) and — unusually valuable — warns that library metadata in the response is not authoritative for electrical behavior. It does not cover failure modes (e.g., no active PCB) or coordinate/rotation units.

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?

The core purpose is front-loaded in one sentence, followed by two short, clearly separated blocks with headings (DATASHEET DISCIPLINE, Returns). Every sentence carries either an invocation hint or a behavioral caution; nothing is filler.

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?

An output schema exists, so the Returns block is partly redundant but harmless, and the safety profile is trivially implied by 'Get'. The main gap is coordinate and rotation conventions (units, degrees, layer naming), which matter for a placement-data tool and are not covered by either the empty input schema or the description.

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?

The tool takes zero parameters, so there is nothing to disambiguate and the baseline of 4 applies. The description correctly avoids inventing parameter guidance.

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?

States a specific verb and resource — 'Get all components from the active PCB' — plus the payload fields (position, properties), so an agent knows exactly what it returns. It does not, however, distinguish itself from nearby siblings such as list_components, proj_get_component_info, or pcb_get_component_pads, which an agent could plausibly reach for instead.

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 'active PCB' scoping is implied usage guidance, and the DATASHEET DISCIPLINE block gives a conditional follow-up action (fetch the manufacturer datasheet before concluding anything about electrical behavior). But there is no explicit statement of when to use this versus the component-listing siblings, and no exclusions or prerequisites.

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