Skip to main content
Glama

target_mapping

Generates a table mapping archived files to target folders in a knowledge base without performing copies, enabling path review before archive organization.

Instructions

生成归档文件到知识库目标目录的映射表(只出表,不执行复制)。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "out_dir": "<out_dir>",
      "knowledge_root": "<knowledge_root>"
    },
    "name": "target_mapping"
  }
}

Input Schema

NameRequiredDescriptionDefault
out_dirYes
experimentNo未分组实验
knowledge_rootYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose the key behavioral trait — the tool writes no files to the knowledge root and only produces a table — but says nothing about permissions, whether out_dir is created, or whether anything is overwritten, which matters for an unannotated tool.

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?

One sentence, front-loaded with the output artifact, with the non-copying constraint appended where it does the most work. Nothing is padded or redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, but for a three-parameter tool with zero schema coverage the definition is too thin: the meaning and expected form of out_dir and knowledge_root are essential to invoking it correctly and are absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters. The description never explains what out_dir is (destination for the table file vs. the scanned archive), what knowledge_root must point to, or what 'experiment' (default 未分组实验) does to the mapping, so it fails to compensate for the schema gap.

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?

States a specific verb (生成) and resource (映射表) with the scope spelled out: mapping archive files to the knowledge-base target directory. The parenthetical '只出表,不执行复制' sharply separates it from siblings that actually move data (archive_photos, clone_phone_photos), though it never names an alternative tool.

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 clause '不执行复制' tells the agent this is a planning/preview step rather than an execution step, which implies when to reach for it. However, no sibling is named and no explicit condition such as 'use this before archive_photos' is given, so the routing 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.