Skip to main content
Glama

project_check

Compare CAD project parts with the project file to flag MPN conflicts, missing or extra parts, and missing datasheets, without changing any files.

Instructions

Compare the project file with the parts of the CAD project, so that the two hold the same parts. Each part with an MPN needs its datasheet, also a passive part with an MPN in its Value. Gives one line for each symbol whose MPN and Value fields name different parts (a conflict in the CAD project), the number of the same parts, and one line for each part that is different (one part with two MPNs), missing (with the documents of the store or the Datasheet field, and the next call; an alternative of a part is missing too) or extra. It changes nothing.

Input Schema

NameRequiredDescriptionDefault
pathNoA folder of the user project (default: the working folder of the server). The project file datasheet-lens.toml is in it or in a parent folder.
partsYesThe parts of the CAD project, from the CAD tool (for example its MCP server or its BOM export). One item for each symbol or BOM line, with its MPN and Value fields as they are; give each part, not only the new ones. A part with no MPN in the two fields needs no datasheet.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It clearly states the tool is read-only ('It changes nothing') and describes some output behavior (conflict lines, missing/extra parts, datasheet requirements). However, it does not cover permissions, error conditions, or rate limits, leaving gaps for a tool with no annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single long paragraph with multiple clauses, mixing purpose and output details. Key information like 'It changes nothing' appears at the end rather than upfront. It is not excessively verbose but could be better structured for quick scanning.

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?

Given the tool's complexity (multi-faceted comparison) and the presence of a rich input schema (100% coverage) and an output schema, the description covers the essential behavior and output categories. It could mention prerequisites like the need for a project file, but overall it provides enough context for an agent to invoke it 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 schema already documents both parameters thoroughly, including the flexible Value field and reference format. The description adds marginal context about how MPNs are found in Value fields and the datasheet requirement, but does not go significantly beyond the schema.

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?

The description clearly states a compare-and-reconcile operation between the project file and CAD parts, with specific output details (conflicts, counts, missing/extra parts). It distinguishes itself from siblings like project_sync or project_status by focusing on validation rather than mutation or status reporting. However, the phrasing is somewhat convoluted and not front-loaded.

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?

No explicit guidance on when to use this tool versus alternatives such as project_status, project_sync, or project_update_part. The description implies a verification scenario but does not state exclusions or conditions that would route an agent to a different sibling. Usage is left to inference.

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