Skip to main content
Glama

gate_topic

Toggle a topic between private and open access. Gating requires listen/send grants, grants your project access, and lets others request access to join.

Instructions

Make a topic private (gated=True) or open (gated=False). Gating a room means a listen/send grant is required to join or post; gating it grants YOUR project both so you keep access, and subscribes you. Others reach it via request_access (issue #26).

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": {
      "topic": "<topic>"
    },
    "name": "gate_topic"
  }
}

Input Schema

NameRequiredDescriptionDefault
gatedNo
topicYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses that gating requires listen/send grants to join or post, that gating auto-grants both to YOUR project so you retain access and become subscribed, and that others must use request_access. It omits reversibility effects on existing non-granted members and any permission/auth prerequisites for calling it.

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?

Two front-loaded sentences that establish the mode mapping first, then the access consequences. The parenthetical issue reference '(issue #26)' is incidental noise that does not help an agent decide or call.

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 two-parameter mutation with no annotations and no output schema, the description covers the important behavioral facts: what changes, who keeps access, how others get in. Return values are not needed since no output schema exists, and little material is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate, and it does for `gated` by spelling out the private-vs-open semantics of each boolean value beyond the bare default. The `topic` parameter's meaning is only implied, not defined (e.g. naming, format, or whether it must already exist).

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 (make private/open) and resource (topic), and explicitly maps the two modes onto the parameter values gated=True and gated=False. It is clearly distinguishable from siblings like grant or request_access, which it names as the mechanism for other parties.

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?

Explains the consequence of each mode and points to request_access as the path others use to reach a gated topic. It gives clear context but no explicit exclusion telling the agent when to prefer grant or join_topic instead, so it falls short of full when/when-not guidance.

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