Skip to main content
Glama

Compare two components

compare_components
Read-only

Compare two Altium components from same or different libraries to reveal primitive-level differences in pads, vias, tracks, parameter sets, and properties, ignoring identity attributes.

Instructions

Compare two specific components in detail, showing differences in primitives, parameters, and properties. Components can be from the same library or different libraries. Returns primitive-level differences for every kind: pads, vias, tracks, arcs, regions, text, fills and 3D bodies of a footprint; pins, every graphic shape, parameters and footprint links of a symbol. Identity (GUIDs, unique ids) is never a difference.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toleranceNoTolerance for floating-point comparisons in mm (default: 0.001)
filepath_aYesPath to the first library file (.PcbLib or .SchLib)
filepath_bYesPath to the second library file (can be same as filepath_a)
component_aYesName of the first component
component_bYesName of the second component
include_geometryNoInclude detailed geometry comparisons for primitives (default: true)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already mark the tool as read-only and non-destructive, so the bar for additional behavioral disclosure is lower. The description adds valuable context by enumerating the exact primitive types compared and explicitly stating that identity (GUIDs, unique ids) is never treated as a difference, which helps the agent predict output behavior.

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?

Two focused sentences: the first identifies the operation and overall outcome, and the second elaborates on the detailed comparison scope. The most important information is front-loaded, and there is no filler or repetition of schema fields.

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 fairly complex comparison tool with no output schema, the description provides a thorough account of what will be compared and returned, covering both footprint primitives and symbol elements. Combined with fully documented input parameters and safety annotations, nothing critical is missing for an agent to invoke the tool correctly.

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 the input schema fully documents all six parameters including tolerance, file paths, component names, and include_geometry. The description does not add parameter-level detail beyond the schema, but it does not need to because the schema already carries the burden. Baseline 3 is appropriate.

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?

The description clearly states a specific verb ('Compare'), a resource ('two specific components'), and a precise scope ('differences in primitives, parameters, and properties'). It also indicates that components can come from the same or different libraries, making its purpose distinct from library-level comparison tools like diff_libraries.

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?

The description explains what the tool does but provides no guidance about when to choose it over alternatives such as diff_libraries or get_component. It does not mention exclusions or conditions like 'use diff_libraries for library-level comparisons', so an agent is left to infer the appropriate context.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/embedded-society/altium-designer-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server