Skip to main content
Glama

project_sync

Synchronizes a user project with the central datasheet store: links and copies missing datasheet PDFs, organizes files by layout, imports new PDFs, and assigns inbox PDFs to matching parts.

Instructions

Synchronize the user project with the central store: add the documents that the store links to the project parts, copy the missing copies into the project folder, move the copies into the subfolders of the layout, and import the new PDF files of the folder. A new file gets a part only from the store; for a different file the result proposes a part, and project_add_part assigns it. The inbox (the folder _inbox in the folder of the copies) is for the PDF files that the user downloads: sync gives each one to the project parts that it agrees with (the MPN, the base part and the manufacturer of the datasheet) and that have no datasheet, and takes it from the inbox. For a file with no part, ask the user for the part, then assign it with project_add_part. Gives the changes and the problems.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "project_sync"
  }
}

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.
restoreNoTrue: copy a changed copy again from the store (the file in the folder is replaced).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 burden, and it does disclose the mutating operations: copying files into the project folder, moving copies into layout subfolders, importing PDFs, and taking files from the inbox. However, it never states whether moving files out of _inbox deletes the originals, whether changes are reversible, or that the project file itself is modified. The closing line 'Gives the changes and the problems' is the only hint about outcomes, which the output schema already covers.

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 core purpose is front-loaded in the first clause, but the text then becomes a long run-on paragraph mixing several distinct rules. There is clear redundancy: the store-only part rule and the project_add_part fallback are stated twice in slightly different words. It would benefit from shorter sentences separating the sync steps from the inbox/part-assignment policy.

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?

This is a complex multi-step mutation tool, and the description explains most of its domain logic: the ordering of add/copy/move/import steps, inbox handling by MPN/base part/manufacturer, and the datasheet-absent condition. With an output schema present, return values need no explanation, and both parameters are schema-documented. Remaining gaps are ambiguous terminology (what 'the store' and 'copies' are) and no mention of failure or partial-completion behavior.

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 coverage is 100%, so both parameters (path, restore) are already documented in the input schema, including the toml lookup behavior and the file-replacement semantics of restore. The description adds only adjacent context ('the folder of the copies', _inbox location) rather than any meaning beyond what the schema states. Baseline 3 is appropriate here.

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 gives a specific verb and resource ('Synchronize the user project with the central store') and enumerates the concrete sub-operations: adding store-linked documents, copying missing copies, moving copies into layout subfolders, and importing new PDFs. It also distinguishes itself from project_add_part by routing partless files there. The domain jargon ('store', 'copies', 'layout', 'parts') makes it harder to parse than it needs to be, but the purpose is still identifiable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the trigger condition (syncing the project with the central store) and explicitly names the alternative for a narrower action: 'For a file with no part, ask the user for the part, then assign it with project_add_part.' There are no explicit exclusions against siblings like project_check or project_status, so an agent must infer when sync is preferable to those, but the main routing decision is covered.

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