Skip to main content
Glama

trace

Read-onlyIdempotent

Follow requirement links to list upstream and downstream needs, so you can assess change impact across requirements and verification cases or confirm a requirement's origin.

Instructions

リンクをたどって、上流・下流の need を列挙します。

変更の影響範囲(このシステム要件を変えたら、どの要件と検証ケースに波及するか)は direction="down"、要件の出どころを確かめるときは "up" を使います。

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": {
      "need_id": "<need_id>"
    },
    "name": "trace"
  }
}

Input Schema

NameRequiredDescriptionDefault
need_idYes起点の need の ID
directionNoup は上流(リンクの先)、down は下流(リンクの元)、both は両方both
max_depthNoたどる段数の上限(1〜10)
link_typesNoたどるリンクの名前(例:["refines"])。省略するとすべてのリンクをたどります

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, and a closed-world scope, so the safety profile is covered. The description adds useful traversal semantics, above all that results span verification cases as well as requirements, but it says nothing about how cycles or repeated nodes are handled or how deep traversal behaves by default. That is a modest contribution beyond the structured fields, hence a 3.

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 definition is two short sentences, front-loaded with the purpose and followed by the direction-selection guidance. Each sentence earns its place; the parenthetical example is the only slightly verbose part.

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?

With an output schema present and a 100%-covered input schema, the description only needs to supply intent and mode selection, which it does. It could be fuller by hinting at which link types exist or what happens when a need has no links, but nothing essential to a correct call is absent.

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 100%, so the baseline is 3. The description goes beyond the schema by tying the direction enum to real tasks (impact scope versus provenance), which tells the agent which value to pick. max_depth and link_types are left to the schema, which is acceptable given full schema coverage.

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: follow links and enumerate upstream/downstream needs. That graph-traversal framing clearly separates it from siblings like get_need and search_needs, but it never names a sibling, so the differentiation is inferred rather than explicit.

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 gives concrete when-to-use conditions tied to each mode: direction="down" for impact analysis (which requirements and verification cases are affected), and "up" when checking where a requirement came from. What is missing is when not to use this tool at all, for example when the agent only needs a single need or a keyword search.

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