Skip to main content
Glama
sheares

easyeda-mcp-fix

by sheares

pcb_get_primitive_at_point

Read-onlyIdempotent

Find the PCB primitive at exact canvas coordinates in mil to identify pads, tracks, or copper under a point. Use it for hit-testing or selecting board features.

Instructions

Get the primitive at a specific point on the PCB. Coordinates are PCB canvas coordinates in mil (1 mil = 0.001 inch), relative to the canvas origin: +X = rightward, +Y = upward. Lengths (widths, diameters) are also in mil. Use pcb_canvas_origin to read/set the origin offset and pcb_convert_coordinates to convert between canvas and data coordinates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYesX coordinate
yYesY coordinate
documentYesTarget document UUID — auto-switches to this document before executing. Get UUIDs from list_instances or editor_get_open_tabs.
instance_idNoTarget EasyEDA instance ID (8-char hex). Required when multiple instances are connected. Omit when only one instance is connected (auto-selected). Use list_instances to see connected instances.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.5

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds genuinely useful behavioral context on the coordinate system and units, but says nothing about what happens when no primitive exists at the point, which primitive wins if several overlap, or what the call returns (no output schema).

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?

Three tight sentences, purpose front-loaded, followed by the unit/orientation contract and then related-tool pointers. No filler, though the coordinate-convention block is somewhat dense relative to the core operation.

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?

The coordinate and unit semantics are fully covered, and the document/instance_id parameters are documented in the schema. What is missing is the return contract: with no output schema, the description should say what is returned (and what happens on a miss), which is the main remaining gap for a point-query tool.

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?

Schema coverage is 100%, so baseline is 3; the description goes beyond the schema's bare 'X coordinate'/'Y coordinate' by specifying units (mil, 1 mil = 0.001 inch) and axis orientation (+X rightward, +Y upward). This resolves a real ambiguity an agent would otherwise guess at.

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 (Get) and resource (primitive) with a precise spatial scope (at a specific point on the PCB), which inherently separates it from pcb_get_all_primitives, pcb_get_primitives_by_id, and pcb_get_primitives_in_region. It does not, however, explicitly name or contrast any sibling, so an agent must infer the boundary.

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?

Usage is implied by the coordinate explanation: you call this when you have a PCB canvas point. The only routing guidance given is for coordinate handling (pcb_canvas_origin, pcb_convert_coordinates), not for choosing this tool over the other primitive-retrieval siblings.

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