Skip to main content
Glama

next_hop

Walk dbt lineage one real edge at a time, returning only existing neighbours ranked by relevance to your goal. Use it to explore upstream or downstream without guessing IDs.

Instructions

Walk the lineage one real edge at a time: returns only neighbours that exist in the graph, ranked by relevance to your goal. Prefer this over guessing ids.

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": {
      "ref": "<ref>",
      "direction": "<direction>"
    },
    "name": "next_hop"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYescolumn id 'table.column', table name, or exposure (dashboard) name
goalNowhat you are looking for, used to rank neighbours
limitNo
directionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose two meaningful traits: traversal is strictly one edge per call, and results are filtered to edges that actually exist in the graph (no fabricated neighbours) and ranked by goal relevance. It says nothing about result shape, pagination, or cost of repeated calls, which matters for an exploratory tool with no output schema.

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, front-loaded with the core behavior (single-edge lineage walk) followed by the differentiator (only real neighbours, ranked by goal). No filler or restatement of the tool name; slightly more compact than needed but nothing wasted.

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?

For a four-parameter traversal tool with no annotations and no output schema, the description covers purpose and the key semantic constraint (one hop, verified edges only). It is still thin on what a returned neighbour looks like and on how direction changes results, which an agent must infer from the schema.

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 50%: ref and goal are documented in the schema, while limit and direction are not. The description partly compensates by explaining that goal drives ranking and that traversal is one edge deep, but it never explains direction (upstream vs downstream) or what limit bounds, leaving half the parameters dependent on the bare schema.

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?

"Walk the lineage one real edge at a time" states a specific verb (traverse) and resource (lineage graph) with an explicit single-hop scope, and "returns only neighbours that exist in the graph" clarifies that it returns verified edges rather than inferred ones. It does not differentiate itself from siblings like path, impact, or describe, so an agent cannot tell from the text alone why it should pick this over a multi-hop traversal.

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?

"Prefer this over guessing ids" gives one concrete usage condition: use it when you do not already know valid ids. There is no guidance on when to stop hopping versus calling path or impact, and no exclusions or prerequisites, so the routing guidance is implied rather than explicit.

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