Skip to main content
Glama
@event4u/agent-config

@event4u/agent-config

Official

graph_path

Read-onlyIdempotent

Finds the shortest directed relation path between two symbols, showing how one reaches the other without reading intermediate files.

Instructions

The shortest relation chain between two symbols, direction kept: how A reaches B without reading the files between. (no path found) is an answer.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "graph_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesGoal node id, label, or free text.
fromYesStart node id, label, or free text.
budgetNo
projectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv20.4.0
    • removedInput schema / properties / budget / default
      Removed value: -1500
    • removedInput schema / properties / budget / description
      Removed value: -"Token budget for lines."
    • removedInput schema / properties / budget / minimum
      Removed value: -1
    • addedInput schema / properties / project
      Added value: +{
      +  "type": "string"
      +}
  2. Addedv14.22.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description does add real value by disclosing that paths are directed and that "(no path found)" is a legitimate result rather than an error — but it says nothing about result shape (node list vs. labeled edges) or cost/limits of the traversal.

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?

Two short sentences with no filler; the core operation is front-loaded and the sentinel-value note is appended where it belongs. Slightly telegraphic ("relation chain", "direction kept") but dense rather than padded.

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?

With no output schema and no annotations covering return values, the description should say what a "chain" looks like and what `budget` bounds. It covers the empty-result case, which is the biggest pitfall, but leaves the response format and the two undocumented parameters to inference.

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?

At 50% schema coverage, the description must compensate for the undocumented parameters. It contributes the directionality of from→to, but `budget` and `project` are unexplained in both schema and description, and `budget` in particular changes traversal behavior in ways an agent needs to know before calling.

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 shortest relation chain between two symbols" names a specific computation and resource, and "direction kept" narrows it to a directed shortest-path search. It is clearly distinguishable from graph_impact or graph_query, though it never explicitly contrasts itself with a sibling.

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?

"How A reaches B without reading the files between" implies the intended use case: answering reachability questions without file traversal, which routes the agent away from read_resource_body-style exploration. However, no alternative tool is named and no explicit when-not-to-use condition is given.

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