Skip to main content
Glama

close_thread

Close an open coordination thread under opener or campaign-coordinator authority to finalize collaboration and free resources.

Instructions

Close a thread under opener or campaign-coordinator authority.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
thread_idYes
binding_tokenNoOpaque token returned by this agent's join_session or plan_session. Required for reliable identity when logical agents share an MCP connection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the burden and does disclose an important authorization requirement and a mutating state change. It does not reveal side effects on subscribers or messages, reversibility, or failure behavior, leaving transparency partial.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler. The core action and the key authorization constraint appear immediately.

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

Completeness3/5

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

For a simple mutation with no annotations or output schema, it covers purpose and authorization but omits postconditions, return/error behavior, and interactions with related thread tools. It is minimally viable but not complete.

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?

binding_token is already well documented in the schema, and thread_id is evident from the word 'thread'. The description adds no parameter-specific format or context details, but the required parameter remains understandable.

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?

Directly states the action ('Close') and the resource ('a thread'), and adds the authorization scope. This clearly distinguishes it from lifecycle siblings like create_thread, poll_thread, and ack_thread.

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?

The authority constraint ('under opener or campaign-coordinator authority') gives useful context for who may call it, and the verb implies the lifecycle moment. However, it does not explicitly name alternatives or state when not to use it, so usage must be inferred.

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