Skip to main content
Glama
Discourse Graph MCP Server

Discourse Graph MCP Server

Official

canvas_types

Lists discourse node and relation types with IDs, labels, formats, shortcuts, and source→destination mappings so you can author canvases and supply valid IDs to canvas_add_node or canvas_connect.

Instructions

List the discourse node types (id, name, format, shortcut, color) and relation types (id, label, source→destination) available for canvas authoring in a graph. Ids are needed by canvas_add_node / canvas_connect.

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": "canvas_types"
  }
}

Input Schema

NameRequiredDescriptionDefault
graphNoGraph name or nickname. Auto-selects if only one graph is configured.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/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 disclose the relevant behavioral facts: this is a read-only enumeration ('List') and the exact shape of what comes back, which matters because there is no output schema. It omits edge-case behavior such as what happens for an unknown graph name or whether custom vs. built-in types are both included.

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 sentences, zero waste: the resource and returned fields come first, and the consumer pointer (canvas_add_node / canvas_connect) is front-loaded at the end. Nothing is repeated from the schema.

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 single-parameter lookup with no annotations and no output schema, the definition covers the essential ground by describing the return contents and the follow-up tools. The remaining gap is disambiguation from get_discourse_node_types rather than any missing invocation detail.

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 the single graph parameter is documented there, including the auto-select behavior when only one graph is configured. The description only gestures at it with 'in a graph', adding no syntax or format detail beyond the schema, so the baseline of 3 applies.

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 — 'List the discourse node types ... and relation types' — and enumerates the returned fields (id, name, format, shortcut, color) plus the relation shape (id, label, source→destination). It clearly positions itself as a lookup that feeds canvas_add_node / canvas_connect. It does not, however, differentiate itself from the similarly named sibling get_discourse_node_types, which an agent could plausibly confuse it with.

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 final sentence gives concrete when-to-use guidance: the ids returned are required inputs for canvas_add_node and canvas_connect, so an agent knows to call this before authoring. There are no exclusions and no mention of when to prefer get_discourse_node_types instead, so it stops short of full routing guidance.

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