Skip to main content
Glama

Delete an agent conversation

delete_agent_session
DestructiveIdempotent

Permanently deletes one Studio, Workflow Agent, or deployed-agent session and resets its memory so the next message starts fresh; previews deletion unless confirmed.

Instructions

Permanently delete one conversation (session) with Studio, the Workflow Agent or one of your deployed agents, and reset the agent's memory of it so the next message in that session starts fresh. Without confirm: true it only describes what would be deleted; ask the user before confirming. A turn that is still running is deleted too; to stop it instead, cancel it first with cancel_agent_message (get_agent_conversation with the session shows whether one is running). Studio keeps a display name the session was given on wiro.ai. The Workflow Agent's "default" session cannot be deleted. The files models made and saved workflows stay. Deleting a Studio session can also take its model runs out of list_studio_results, so read their results and costs first if they are still needed.

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": {
      "agent": "<agent>",
      "session": "<session>"
    },
    "name": "delete_agent_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentYesWhich agent: "studio" (Wiro Studio, the media agent that runs models for you), "workflow-agent" (the Workflow Agent, which designs Wiro workflows) or the guid of one of your deployed agents (from list_my_agents).
confirmNoSet to true only after the user agreed to the permanent deletion.
sessionYesThe session to delete (from get_agent_conversation).

Output Schema

NameRequiredDescriptionDefault
agentYes
deletedYes
sessionYes
summaryYes
agentKindYes
nextActionNo
memoryResetYes
messageCountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.5.3
    • addedOutput schema / properties / nextAction / properties / arguments / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. Addedv1.4.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint and readOnlyHint=false, but the description adds substantial context beyond them: the confirm:true gate makes the call a dry-run preview otherwise, running turns are deleted rather than stopped, model files and saved workflows survive, and deleting a Studio session can remove its model runs from list_studio_results. These are exactly the consequences an agent must know before invoking a destructive tool.

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 permanence, then the confirm gate, then consequences and exceptions in a logical order. It is dense but nearly every sentence carries a distinct constraint; the closing list_studio_results sentence is long but conveys a genuine data-loss warning.

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 destructive, open-world tool with an output schema and full annotation coverage, the description covers safety gating, sibling routing, irreversible side effects, and explicit exclusions. Nothing an agent needs to call this correctly 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 100%, so the baseline is 3, and the description adds real meaning on top: "confirm" is described as a preview-vs-execute switch ("Without confirm: true it only describes what would be deleted"), which the schema only frames as an agreement flag. It also clarifies where session and agent values come from (get_agent_conversation, list_my_agents). It stops just short of enumerating the acceptable agent values the way the schema does.

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 up front: "Permanently delete one conversation (session) with Studio, the Workflow Agent or one of your deployed agents." It also names the scope of effect (resetting the agent's memory of that session) and distinguishes itself from cancel_agent_message and get_agent_conversation, so an agent can pick it without opening a sibling schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use and when-not-to-use guidance: if a turn is still running, use cancel_agent_message instead, and get_agent_conversation shows whether one is running. It also states a hard exclusion (the Workflow Agent's "default" session cannot be deleted) and a prerequisite workflow (read results in list_studio_results before deleting a Studio session).

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