Skip to main content
Glama
Discourse Graph MCP Server

Discourse Graph MCP Server

Official

get_linked_nodes

Find outgoing references and incoming backlinks for a page UID, with optional direction filtering, to map connections in a Roam discourse graph.

Instructions

Find all nodes linked to/from a given page. Returns outgoing references (pages this node links to) and/or incoming backlinks (pages that link to this 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_linked_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesThe page UID to find links for.
graphNoGraph name or nickname.
directionNoDirection of links. Default: both.both

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the shape of the result (outgoing references and incoming backlinks), which is genuinely useful, but says nothing about read-only safety, permissions, result volume, or pagination for a node that may have many links.

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

Conciseness5/5

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

Two tight sentences with the core action first and the return semantics second. Every clause earns its place, and the parenthetical glosses on references and backlinks remove ambiguity efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple three-parameter read tool with fully documented schema and no output schema, the definition covers purpose and return content adequately. Minor gaps remain around result limits and how the graph parameter interacts with the page UID.

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 the schema already documents uid, graph, and direction including the enum and default. The description reinforces the direction semantics but adds no new detail about what 'graph' accepts (name vs. nickname) beyond the 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?

States a specific verb and resource ('Find all nodes linked to/from a given page') and clarifies scope via the outgoing/incoming distinction. It does not differentiate itself from plausible siblings like get_node_neighborhood or get_relationships, which an agent would need to choose between.

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 phrasing 'linked to/from a given page' and the direction explanation. There is no explicit statement of when to prefer this over get_node_neighborhood or get_relationships, and no prerequisites or exclusions are given.

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