Skip to main content
Glama
@event4u/agent-config

@event4u/agent-config

Official

graph_node

Read-onlyIdempotent

Inspects one code symbol’s declaration and exact incoming/outgoing relations by node ID or label, with confirm mode to re-read its witness.

Instructions

One symbol in full: its declaration, what reaches it, what it reaches. Resolves EXACTLY (node id, then label), never free text. mode=confirm re-reads its witness.

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": {
      "id": "<id>"
    },
    "name": "graph_node"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesNode id `<relpath>#<sym>` or an exact label.
kindNoFar ends of this kind only.
modeNo
depthNo
projectNo
relationNoOne relation only.
directionNoin = who reaches it, out = what it reaches.both

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv20.4.0
    • removedInput schema / properties / depth / default
      Removed value: -1
    • removedInput schema / properties / depth / description
      Removed value: -"Hop limit."
    • removedInput schema / properties / depth / minimum
      Removed value: -1
    • changedInput schema / properties / direction / description
      Previous value: -"Which edges to walk. `in` = who reaches it, `out` = what it reaches."New value: +"in = who reaches it, out = what it reaches."
    • addedInput schema / properties / kind
      Added value: +{
      +  "description": "Far ends of this kind only.",
      +  "type": "string"
      +}
    • addedInput schema / properties / mode
      Added value: +{
      +  "enum": [
      +    "node",
      +    "confirm"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / project
      Added value: +{
      +  "type": "string"
      +}
    • changedInput schema / properties / relation / description
      Previous value: -"Restrict to one relation. Omit for all of them."New value: +"One relation only."
    • removedInput schema / properties / relation / enum
      Removed value: -[
      -  "calls",
      -  "imports",
      -  "uses",
      -  "inherits",
      -  "member",
      -  "tests"
      -]
  2. Addedv16.5.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, closed-world and non-destructive, so the safety profile is covered. The description still adds real behavior beyond them: the id-resolution precedence (node id first, then label) and a distinct confirm mode that re-reads, plus what the response contains (declaration, in-edges, out-edges). It loses a point because "witness" is undefined jargon.

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?

Three short, front-loaded sentences with no filler; the core capability is stated first and the resolution rule second. Density comes at a small cost in readability, since terms like "witness" are never unpacked.

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?

No output schema exists, so the description's sketch of the return value (declaration, incoming, outgoing) carries useful weight and partially compensates. However, a 7-parameter graph traversal tool with a capped `depth` and relation/kind filters should say what the default depth and unfiltered breadth mean.

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 coverage is 57% across 7 parameters; id, kind, relation and direction are documented in the schema itself. The description adds meaning only for `id` (exactness, label fallback) and `mode` (confirm re-reads), and says nothing about `depth`, `project`, or how kind/relation narrow traversal.

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?

Names a specific resource and scope: one symbol's declaration plus its incoming and outgoing edges ("what reaches it, what it reaches"). That is a concrete verb+resource, though it never names which sibling (graph_query, graph_impact, graph_path) covers the multi-symbol or transitive cases.

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 constraint "Resolves EXACTLY (node id, then label), never free text" is genuine usage guidance about acceptable input, and "mode=confirm re-reads its witness" implies a verification flow. But there is no explicit when-to-use versus graph_impact/graph_path, and no statement of when not to use it.

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