Skip to main content
Glama

Get portal discussion

get_portal_discussion
Read-onlyIdempotent

Look up a portal's discussion thread without creating it. Returns threadId and roomId for the chat tools (list_chat_messages, send_chat_message), or threadId null before anyone opened it. Fails with not found when the portal is closed or its discussion is off. Readable by owners, admins, and members, like the discussion in the app.

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": {
      "portalId": "<portalId>"
    },
    "name": "get_portal_discussion"
  }
}

Input Schema

NameRequiredDescriptionDefault
portalIdYesPortal ID, or the slug of a public portal.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnly/idempotent annotations, it discloses the side-effect question directly (does not create the thread), the null case (threadId null before anyone opened it), the not-found failure mode, and the permission model (owners, admins, members). With no output schema, the description carries return-shape duty and does so by naming threadId and roomId.

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?

Three sentences, front-loaded with the action, then return values, then failure and permission notes — nothing is buried. The closing clause "like the discussion in the app" is mildly decorative but reinforces access expectations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter read tool with annotations but no output schema, the description covers what it returns, when it returns nothing, when it errors, who may call it, and what it does not do. Nothing an agent needs in order to call it correctly is missing.

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% and the schema already explains that portalId accepts an ID or a public portal slug. The description adds no further parameter meaning such as ID format or where to obtain the value, so the baseline 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 ("Look up a portal's discussion thread") and immediately scopes it with "without creating it", which separates it from any create/open-thread counterpart. It also names the downstream consumers (list_chat_messages, send_chat_message), so an agent can see where its output goes.

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?

Clear about when the result is useful: it returns threadId/roomId expressly for the chat tools, which is an explicit routing hint. It also states the failure condition (portal closed or discussion off), telling the agent when the call is pointless. It stops short of an explicit "use X instead when you want to create the thread" exclusion, so a 4 rather than 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources