Skip to main content
Glama
Discourse Graph MCP Server

Discourse Graph MCP Server

Official

get_candidate_nodes

Retrieve candidate discourse blocks tagged for a node type but not yet promoted to formal node pages; filter by type, tag, graph, or edit date.

Instructions

Get candidate discourse nodes: blocks tagged with a node type's candidate tag (e.g. #evd-candidate) that have not been promoted to formal node pages. These are invisible to get_all_discourse_nodes, which only matches formal [[TYPE]] - … pages. Tags come from each node type's configured candidate tag. Each result includes the block text, uid, page, author, timestamps, and a references_formal_node heuristic (true when the block's text already contains a reference matching the type's title format — often a sign it was promoted in place).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_candidate_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoQuery one explicit candidate tag (page title, `#` optional) even if no configured node type declares it. Overrides `type`.
typeNoRestrict to one node type: type id, name (e.g. Evidence), format tag (e.g. EVD), or the candidate tag itself (e.g. evd-candidate).
graphNoGraph name or nickname. Auto-selects if only one graph is configured.
sinceNoISO date string. Only return candidate blocks edited after this date. Defaults to all time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/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, and it does substantial work: it discloses that tags derive from each node type's configured candidate tag and explains the `references_formal_node` heuristic as a signal of in-place promotion. It omits ordering, pagination, and any permission/visibility constraints beyond 'invisible to get_all_discourse_nodes', which keeps it below a 5.

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?

Front-loaded with the core definition and then the sibling contrast, the return fields, and the heuristic. The second sentence about 'Tags come from each node type's configured candidate tag' partially restates the first sentence's opening clause, a small redundancy in an otherwise dense, waste-free description.

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?

There is no output schema, so the description usefully enumerates the returned fields (block text, uid, page, author, timestamps, references_formal_node) and explains the non-obvious flag's meaning. What remains missing — result ordering, pagination/limits, and behavior when no candidate tag is configured — is modest for a zero-required-parameter read tool.

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 parameters are already documented (including tag overriding type, type accepting id/name/format tag/candidate tag, graph auto-select, and since as ISO date). The description adds no parameter-specific syntax or constraints beyond what the schema states, so the baseline of 3 applies.

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

Purpose5/5

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

Specific verb+resource with scope stated precisely: 'blocks tagged with a node type's candidate tag … that have not been promoted to formal node pages.' It explicitly separates this from the sibling get_all_discourse_nodes by noting those only match formal `[[TYPE]] - …` pages, so an agent can choose correctly without opening either schema.

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

Usage Guidelines4/5

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

The contrast with get_all_discourse_nodes gives clear context for when this tool is the right pick (finding unpromoted, candidate-tagged blocks). It does not state explicit exclusions or prerequisites, such as what happens when no node types are configured, but the selection context is unambiguous.

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