Skip to main content
Glama
Discourse Graph MCP Server

Discourse Graph MCP Server

Official

get_node_section

Extract a named section from a discourse node page by UID, returning its content tree; omit the section or use '*' to retrieve all sections.

Instructions

Extract a specific section from a discourse node's page. Discourse nodes are created with templates that define sections (e.g., 'Summary::', 'Evidence::', 'Lab Notes::'). This tool finds the matching section block and returns its content tree. If section is omitted or '*', returns all sections.

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>",
      "section": "<section>"
    },
    "name": "get_node_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesThe page UID of the discourse node.
graphNoGraph name or nickname.
sectionYesThe section name to extract (e.g., 'Summary', 'Evidence', 'Lab Notes'). Matches case-insensitively. Handles Roam attribute syntax (with or without '::').
max_depthNoMaximum child depth to fetch. Default 10. Increase for deeply nested pages.

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?

No annotations are provided, so the description carries the full burden. It discloses that the return value is a 'content tree' and that wildcard retrieval returns all sections, but says nothing about read-only semantics, what happens when the section doesn't match, or how max_depth affects the returned tree.

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?

Four short sentences, front-loaded with the core action, then the template concept, then the wildcard fallback. The template example sentence is slightly explanatory overhead but earns its place by grounding what a 'section' is.

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 read tool with no annotations and no output schema, it covers the return shape and wildcard case but omits the graph parameter's role, the max_depth interaction, and behavior on a non-matching section. The 'omitted section' wording also contradicts the schema's required list, leaving an agent unsure whether section is truly optional.

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 100%, so the schema already documents uid, graph, section, and max_depth. The description adds only the '*' wildcard behavior for section; that is genuine added meaning, but the claim that section may be 'omitted' conflicts with the schema marking it required, and the graph parameter is never mentioned.

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: 'Extract a specific section from a discourse node's page,' and explains the section/template concept with concrete examples. It is clear what it does relative to a generic page fetch, though it never explicitly contrasts itself with the sibling get_node.

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?

Gives one useful usage rule — omit section or pass '*' to get all sections — but offers no guidance on when to choose this over get_node or get_node_neighborhood, nor on prerequisites such as needing a discourse node UID rather than an arbitrary page.

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