Skip to main content
Glama
Discourse Graph MCP Server

Discourse Graph MCP Server

Official

search_nodes

Search discourse nodes by keywords in their titles, ranked by BM25 relevance. Returns matching pages with UIDs, titles, scores, creation times, and authors.

Instructions

Search for discourse nodes by keywords in their titles, ranked by BM25 relevance (titles matching only some query words are included, ranked lower). Returns matching pages with their UIDs, titles, relevance scores, creation times, and authors.

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": {
      "query": "<query>"
    },
    "name": "search_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
graphNoGraph name or nickname.
limitNoMax results to return. Default 50.
queryYesSearch keywords. Results are ranked by BM25 relevance — titles matching more (and rarer) query words rank higher. Not every word must appear.
node_type_formatNoOptional regex pattern to filter by node type format (e.g., '\\[\\[CLM\\]\\]' for claims).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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 BM25 ranking, partial-word matching behavior, and the exact fields returned (UIDs, titles, relevance scores, creation times, authors). It omits minor details like case sensitivity or authentication needs, but covers the important observable behavior.

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?

The description is two tight sentences, front-loading the search action and ranking, then listing return fields. The parenthetical about partial-word matching is useful, and no sentence is wasted.

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, and the description compensates by enumerating the returned fields. Combined with the fully documented input schema, this is complete enough for an agent to call the tool correctly, though it could mention graph scoping more explicitly.

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 four parameters are already documented. The description reinforces the query and ranking semantics but adds little beyond what the schema already says about parameters; it does not explain graph scoping or the node_type_format regex filter.

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?

The description states a specific verb (Search) and resource (discourse nodes), plus the search scope (keywords in titles) and ranking method (BM25). It is clear what the tool does, but it does not differentiate itself from siblings like get_all_discourse_nodes or get_candidate_nodes.

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 implied by 'Search for discourse nodes by keywords,' so an agent can infer this is the keyword-search tool. However, there is no explicit guidance on when to use this versus listing or candidate-retrieval tools, and no exclusions are stated.

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