Skip to main content
Glama
@event4u/agent-config

@event4u/agent-config

Official

graph_query

Read-onlyIdempotent

Trace a symbol's incoming and outgoing relations with confidence and mechanism, or pack task-relevant facts from the graph.

Instructions

A symbol's outgoing relations with confidence and mechanism. kind/relation/direction/depth: a tree with witnesses. mode=pack: facts for a task.

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": {
      "symbol": "<symbol>"
    },
    "name": "graph_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoComma-separated kinds.
modeNo
depthNo
limitNo
budgetNo
symbolYesNode id, label, or free text.
projectNo
relationNo
directionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 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 / depth
      Added value: +{
      +  "maximum": 3,
      +  "type": "integer"
      +}
    • addedInput schema / properties / direction
      Added value: +{
      +  "enum": [
      +    "in",
      +    "out",
      +    "both"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / kind
      Added value: +{
      +  "description": "Comma-separated kinds.",
      +  "type": "string"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "type": "integer"
      +}
    • addedInput schema / properties / mode
      Added value: +{
      +  "enum": [
      +    "relations",
      +    "pack"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / project
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / relation
      Added value: +{
      +  "type": "string"
      +}
  2. Addedv14.22.0

TDQS

C2.4/5.0
Behavior3/5

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

The annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds some behavioral flavor beyond that – results carry confidence and mechanism/witnesses, and pack mode returns task-oriented facts – but with no output schema these hints are too vague to tell an agent what it actually receives or how large it may be.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short, but it is short by omission: the second sentence is a slash-delimited fragment ("kind/relation/direction/depth: a tree with witnesses") that reads as shorthand rather than prose. Compactness without parseable structure is under-specification, not conciseness.

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?

This is a 9-parameter traversal tool with no output schema and thin schema descriptions, so the description carries a heavy burden and meets almost none of it. Mode semantics, returned structure, budget/limit behavior, and the project scope are all unaddressed.

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 coverage is only 22% across 9 parameters, so the description needs to compensate and largely does not. It name-drops kind/relation/direction/depth and explains mode=pack in five words, but says nothing about symbol, project, limit, or budget, and the cryptic phrase "a tree with witnesses" does not clarify how depth or limit shape the result.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"A symbol's outgoing relations" identifies a resource and an operation, but the qualifier "outgoing" is misleading because the schema's direction enum includes "in" and "both". Sibling routing is absent: an agent cannot tell from this text why it would pick graph_query over graph_node, graph_path, or graph_area.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use, when-not-to-use, or alternative-tool guidance. "mode=pack: facts for a task" hints at one branch of usage but gives no criteria for choosing between relations and pack, nor when to prefer a sibling traversal tool.

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