Skip to main content
Glama

proj_import_document

Imports a document from an external path into the focused project, copying it into the project directory if needed, then adds and saves it.

Instructions

Import a document into the focused project from an external path.

Copies the file into the project directory (if not already there), adds it to the project, and saves the project file.

Args: source_path: Full path to the source document (SchDoc, PcbDoc, etc.)

Returns: Dictionary with success status, source_path, and dest_path

Input Schema

NameRequiredDescriptionDefault
source_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A3.8/5.0
Behavior4/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 enumerate the main side effects: copying the file, adding it to the project, and saving the project file. It also describes the return value, but omits conflict/overwrite behavior and permission requirements.

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?

The description is front-loaded and structured with Args and Returns sections. The Returns section is somewhat redundant because an output schema exists, but overall it remains efficient and readable.

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?

The output schema covers return values, and the description supplies the critical parameter semantics plus the primary mutation behavior. It is still missing guidance on conflicts, overwrite behavior, and alternatives, but is adequate for a focused import operation.

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 description coverage is 0%, but the description compensates by documenting source_path as a full path and giving example document types such as SchDoc and PcbDoc. It does not clarify relative paths, validation, or whether the file must exist.

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 states a specific verb and resource: importing a document into the focused project from an external path. It makes the operation distinct from project creation or opening, though it does not explicitly contrast with siblings such as proj_add_document.

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?

The phrase 'from an external path' implies this tool is for files outside the project, but the description does not state when to use it instead of proj_add_document or app_create_document. No prerequisites or exclusions are given.

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