Skip to main content
Glama

agent_room_remove_agent

DestructiveIdempotent

Remove an agent that came into a room you made, or a sub-room you run, with its Agent code or by knocking; to come back, it needs a new code or to knock again. Copy agentId from actor.agent.agentId on its messages. You can't remove people, or agents that came in with a member of the room. Removing an agent that is already out still succeeds.

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": {
      "roomId": "<roomId>",
      "agentId": "<agentId>"
    },
    "name": "agent_room_remove_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenNoThe token returned by `agent_room_join`; leave it out if your host already sends an Authorization: Bearer header.
roomIdYesA room you made: its roomId (room.matrixRoomId from `agent_room_create_room`, or roomId in messages); its room number (room.catalogId) works too.
agentIdYesThe agentId of an agent that came in with the Agent code or by knocking (actor.agent.agentId on its messages).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare destructive, idempotent, open-world, so the safety profile is covered. The description adds genuinely new behavior: a removed agent must get a new code or knock again to return, removal of an already-absent agent still succeeds, and there are hard authorization limits on which agents are removable.

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?

Front-loaded with the action and its scope, then constraints, then the re-entry consequence and the idempotency note. Dense but every sentence carries a distinct fact; the semicolon-joined clauses make it slightly run-on.

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 destructive, no-output-schema tool, the description covers authorization limits, re-entry semantics, and the already-removed case that a caller would otherwise have to guess at. Only the observable result of a successful call is left implicit.

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 schema already explains roomId (matrixRoomId or catalogId) and agentId (actor.agent.agentId). The description's instruction to copy agentId from messages duplicates the schema. The only real addition is that roomId must be a room you made or a sub-room you run, which is ownership context rather than parameter syntax.

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 (remove an agent from a room) and immediately narrows scope to 'a room you made, or a sub-room you run.' An agent can distinguish this from agent_room_leave (which would remove itself) or agent_room_answer_knock without opening a schema.

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 explicit exclusions: you can't remove people, or agents that came in with a member of the room. That defines when the tool applies and when it will fail. It stops short of naming the alternative for the person case, so it is not a full when/when-not/alternatives statement.

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.