Skip to main content
Glama

Close a chat conversation

close_conversation
Destructive

IRREVERSIBLE: Close a chat conversation

Closes a chat conversation and finalises it: the closing time is stamped and the response time and duration figures of the thread are recomputed, which is what the analytics endpoints then report. Chat threads only, a voice call id is rejected with 400. This endpoint takes no request body. Closing an already closed conversation runs the finalisation again rather than failing. The closed conversation is returned in data.

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": {
      "id": "<id>"
    },
    "name": "close_conversation"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesIdentifier of the chat conversation.
confirmNoLeave out on the first call. EchoCall then answers with a confirmation value. Ask the user for a clear yes, then repeat the call with the same arguments and this value.

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?

Goes well beyond the destructive/irreversibleHint-style annotations: it discloses the analytics side effect (closing time stamped, response time and duration recomputed for the endpoints that report them), the 400 failure mode for voice call ids, and that repeat closes re-run finalisation instead of erroring. That last point is consistent with idempotentHint=false rather than contradicting 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?

The warning is front-loaded in capitals and the follow-on sentences each carry distinct facts (scope, body, repeat behavior, return). The opening clause slightly restates the title before adding the 'finalises it' detail, which is minor waste.

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 two-parameter mutation with no output schema, the description covers side effects, error behavior, repeat-call behavior, and where the result appears (`data`). Only auth/permission requirements are unaddressed, which is a modest gap given how much else is covered.

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 `confirm` parameter is already thoroughly documented in the schema, so the description only adds the constraint that no request body is accepted. That is a small but real addition; baseline 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 (close a chat conversation) and immediately scopes the resource type: chat threads only, with a voice call id rejected with 400. That scoping distinguishes it from call-oriented siblings without needing to read the 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 clear conditions: works on chat conversations, not voice calls; takes no request body; re-closing an already closed thread is allowed. It does not name an alternative sibling for the voice-call case (e.g. a call-close tool), so guidance is clear but not complete routing.

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.