Skip to main content
Glama

memory_import

Import existing project docs from .trae/documents/ and docs/ into semantic memory, skipping files already imported to avoid duplicates.

Instructions

Phase 4: Import existing project docs (.trae/documents/ and docs/) as semantic memories. Idempotent — skips already-imported files.

Input Schema

NameRequiredDescriptionDefault
scopeNoDefault project.
from_docsNoScan docs/. Default true.
project_idNoDefault vault basename.
from_trae_documentsNoScan .trae/documents/. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/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. It usefully discloses idempotency and that already-imported files are skipped, but it does not describe permissions, side effects beyond memory creation, error behavior, or return values.

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?

The description is two tightly written sentences. It front-loads the phase and action, then adds the key idempotency behavior with no wasted text.

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?

For a four-parameter, mutation-style tool with no annotations and no output schema, the description covers the core action and idempotency but leaves gaps around scope, project targeting, and what the import returns or changes in more detail.

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 parameter schema already documents all four optional parameters. The description reinforces the two directory-scanning parameters by naming `.trae/documents/` and `docs/`, but adds no further semantics for `scope` or `project_id` beyond what the schema provides.

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 existing project docs from `.trae/documents/` and `docs/` as semantic memories. It is clear what the tool does, though it does not explicitly distinguish itself from sibling tools such as `remember` or `memory_setup`.

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 'Phase 4' label and mention of importing existing project docs imply usage context, but the description gives no explicit when-to-use guidance, prerequisites, or alternatives among the sibling memory tools.

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