Skip to main content
Glama

proj_get_component_info

Retrieves detailed metadata for a single electronic component—designator, footprint, parameters, pins, and optional pin nets—to inspect placement or wiring in a live EasyEDA Pro project.

Instructions

Get full information about a single component.

IMPORTANT, if you need info for MORE THAN ONE component, use proj_get_component_info_many (batch). Looping this tool is a large wall-time sink, especially with with_pin_nets=True because each call compiles the project.

Performance note: pin nets are the only field that needs a project compile, and a stale-cache compile on a multi-sheet hierarchical project can take 30-60s. When you only need the component's value, footprint, library reference, sheet, or pin numbers/names (no nets), pass with_pin_nets=False and the call drops to sub-second by skipping Project.DM_Compile entirely. Use the default with_pin_nets=True only when you actually need to know what each pin is wired to.

with_parameters=False further skips the parameter iterator (Manufacturer / MPN / Value / Footprint paths). Marginal win compared to skipping the compile, but useful for the cheapest possible "is this designator placed?" probe.

timeout overrides the bridge's default poll timeout. The compile-bound full-fat call can legitimately need 60-90s on large projects, raise this when you keep with_pin_nets=True.

DATASHEET DISCIPLINE: Before making any claim about this component's pin function, voltage rating, timing, or electrical behavior, fetch its datasheet (WebSearch + WebFetch if needed). The parameters / comment / library metadata returned here are NOT authoritative, only the manufacturer datasheet is. _datasheet_guidance in the response carries the rule and a suggested search query.

Returns the component's designator, comment, footprint, library reference, parameters (when with_parameters=True), and every pin with name/number (and net assignment when with_pin_nets=True).

Args: designator: Component designator (e.g., "U1", "R8", "C3") project_path: Optional project path. If None, uses active project. with_pin_nets: When True (default) compile the project and emit the flattened net for each pin. Set to False to skip the compile and get a sub-second metadata-only response. with_parameters: When True (default) include the parameter dict. Set to False for the cheapest possible probe. timeout: Optional bridge poll-timeout override (seconds). Use a higher value (e.g., 90) when keeping with_pin_nets True on large hierarchical projects.

Returns: Dictionary with designator, comment, footprint, lib_ref, sheet, pins array (each with pin/name and, when requested, net), and (when requested) parameters dict, plus _datasheet_guidance + _datasheet_parts.

Input Schema

NameRequiredDescriptionDefault
timeoutNo
designatorYes
project_pathNo
with_pin_netsNo
with_parametersNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.9/5.0
Behavior5/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: it discloses that each call triggers a project compile, that a stale-cache hierarchical compile can take 30-60s, that with_pin_nets=False drops to sub-second by skipping Project.DM_Compile, and that compile-bound calls may legitimately need 60-90s so timeout should be raised. The datasheet-discipline paragraph additionally warns that returned metadata is not authoritative.

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?

Front-loads the highest-value fact (batch tool / do not loop) before anything else, and uses short labeled paragraphs. It is however on the long side and repeats the sub-second-vs-compile point several times across the Performance note and the Args block, plus a Returns paragraph that duplicates the output schema.

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?

For a 5-parameter read tool with no annotations, the definition covers cost model, parameter trade-offs, timeout tuning, return contents, and a downstream discipline rule. Nothing an agent needs in order to invoke it correctly or cheaply is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does: all five parameters are explained in the Args block, including the default-project behavior of project_path, the exact performance consequence of each boolean, and the units/usage of timeout (seconds, raise to ~90 for compile-bound calls). This is meaning well beyond the bare type definitions.

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 and resource ('Get full information about a single component') and immediately distinguishes it from the batch sibling proj_get_component_info_many. The scope limit (single component) is stated twice, so there is no ambiguity about cardinality.

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?

Explicit routing rule: if more than one component is needed, use the batch tool, with the reason given (looping is a wall-time sink). It also gives conditional guidance for each flag ('use the default with_pin_nets=True only when you actually need to know what each pin is wired to'; with_parameters=False for a cheapest 'is this designator placed?' probe).

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