Skip to main content
Glama
Discourse Graph MCP Server

Discourse Graph MCP Server

Official

get_node_neighborhood

Performs breadth-first traversal from a discourse node, following page references up to N hops to return nodes grouped by hop distance for neighborhood exploration.

Instructions

Perform a breadth-first traversal from a node, following page references up to N hops deep. Returns nodes organized by hop distance. Useful for exploring the neighborhood of a discourse node.

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": {
      "uid": "<uid>"
    },
    "name": "get_node_neighborhood"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesThe starting page UID for traversal.
depthNoNumber of hops to traverse (1-4). Default 1.
graphNoGraph name or nickname.
directionNoDirection of traversal. Default: both.both

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 present, the description must carry the full behavioral burden. It does disclose the traversal strategy and the shape of the result (organized by hop distance), which is genuinely useful, but it says nothing about result-size limits, pagination, behavior on a missing or non-page uid, or permissions.

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 sentences with the core behavior front-loaded and no filler. The closing sentence is close to restating the tool name, which keeps it from being maximally tight, but overall the text is efficient and well ordered.

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 the algorithm and the grouping of results but leaves output volume, limits, and error behavior unaddressed. It is adequate to call the tool, but not complete.

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 description coverage is 100%, so all four parameters including the direction enum and depth bounds are already documented in the schema. The description only restates the depth concept as 'up to N hops deep' and says nothing about direction or the graph parameter, so it adds little beyond the schema baseline.

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 names a specific algorithm and resource: breadth-first traversal from a node along page references, returning nodes grouped by hop distance. An agent can picture exactly what comes back. It does not distinguish this from plausible siblings such as get_linked_nodes or get_relationships, so it stops short of a 5.

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?

Usage is only implied by the trailing sentence 'Useful for exploring the neighborhood of a discourse node.' There is no statement of when this is preferable to a single-hop or relationship-listing sibling, and no exclusions or prerequisites are given.

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