Skip to main content
Glama
Discourse Graph MCP Server

Discourse Graph MCP Server

Official

create_discourse_relation

Create a typed discourse relation between two existing nodes, validating the relation and preventing duplicates; use dry_run to preview the resolved link before writing.

Instructions

Create a typed discourse relation between two existing discourse nodes (e.g. assert that a piece of Evidence Supports a Claim). Writes a single stored relation record; the reverse direction is derived automatically and must not be created separately. Validates that the relation is legal between the two node types, and is a no-op if the relation already exists. Use dry_run to preview the resolution first.

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": {
      "source_uid": "<source_uid>",
      "destination_uid": "<destination_uid>",
      "relation": "<relation>"
    },
    "name": "create_discourse_relation"
  }
}

Input Schema

NameRequiredDescriptionDefault
graphNoGraph name or nickname.
dry_runNoResolve and validate everything, report what would be written, but do not write. Default false.
relationYesRelation label, e.g. 'Supports'. May also be a complement label (e.g. 'Supported By'), in which case the stored record is written in the canonical forward direction automatically.
source_uidYesPage UID of the source node.
destination_uidYesPage UID of the destination node.
relation_schema_uidNoUID of a specific relation definition, to disambiguate when the graph defines the same label more than once.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/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 does well: it discloses that exactly one stored record is written, that the complement direction is auto-derived, that legality between node types is validated, and that the call is a no-op when the relation already exists (idempotency). It does not say what happens on an illegal relation (error type) or what a successful write returns, and says nothing about permissions.

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?

Four short sentences, each carrying distinct information: what is created, the single-record/derived-reverse rule, validation and no-op behavior, and the dry_run option. The core action is front-loaded and nothing is redundant.

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 6-parameter mutation tool with no annotations and no output schema, the description covers the important semantics (idempotency, derived reverse, validation, dry_run). The remaining gap is the return value of a successful write, which has no output schema to fall back on, though this is a modest omission.

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% and every parameter, including dry_run, relation labels, complements, and relation_schema_uid disambiguation, is already documented in the schema. The description reinforces dry_run's purpose but adds no new syntax or constraint detail beyond what the schema provides, 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?

States a specific verb and resource — 'Create a typed discourse relation between two existing discourse nodes' — and grounds it with a concrete example ('Evidence Supports a Claim'). This is clearly distinct from canvas-level siblings like canvas_connect or canvas_add_arrow, which operate on canvas geometry rather than typed semantic relations.

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?

Gives a clear when-to-use context (asserting a typed relation between existing nodes) plus an explicit exclusion: the reverse direction is derived automatically and must not be created separately. It also points to dry_run for previewing. It does not route to sibling tools such as get_relationships for inspecting existing relations, so it falls just short of full alternative-naming guidance.

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