Close an existing Twist thread with an optional closing message. This tool marks a thread as closed, preventing further replies while keeping the thread accessible for reference. A closing message is automatically added to indicate the thread has been closed. Example response: Successfully closed...
AI agents use close_thread to create or update resources in Twist — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Twist environment.
This is a Write operation because it modifies data reversibly—changing a thread's closed status. It does not delete data (Destructive), execute arbitrary code (Execute), move money (Financial), or merely read data (Read). While the effect is permanent during the thread's lifecycle, the action itself is not irreversible in the destructive sense; threads remain accessible and could theoretically be reopened.
From the tool's definition The tool 'close_thread' modifies the state of an existing thread by marking it as closed, which changes the thread's status and prevents future replies. The description states it 'marks a thread as closed' and adds a closing message automatically.
Attacks that exploit this kind of access
Close an existing Twist thread with an optional closing message. This tool marks a thread as closed, preventing further replies while keeping the thread accessible for reference. A closing message is automatically added to indicate the thread has been closed. Example response: Successfully closed thread: - Thread ID: 789012 - Closing message:. It is categorised as a Write tool in the Twist MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
Register the Twist MCP server in PolicyLayer and add a rule for close_thread: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Twist. Nothing to install.
close_thread is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the close_thread rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for close_thread. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
close_thread is provided by the Twist MCP server (twist-mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →