Skip to main content
Glama

archive_session

DestructiveIdempotent

Moves a conversation out of the active list and marks it archived, with the option to restore it later.

Instructions

Archive a conversation (leaves the active list; reversible)

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": {
      "session_id": "<session_id>"
    },
    "name": "archive_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYesSession session_id string or UUID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.4
    • changedInput schema / properties / session_id / description
      Previous value: -"session_id (texto) ou id UUID da sessão"New value: +"Session session_id string or UUID"
  2. Addedv2.2.3

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description earns credit for adding the two facts an agent most needs: the session leaves the active list (visible effect) and the operation is reversible. It does not address permissions, effect on an already-archived session, or what is returned, but it adds genuine context beyond the annotations.

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?

One clause plus a parenthetical, front-loaded with the action and immediately followed by its effect and reversibility. Nothing is wasted and nothing important is buried.

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 one-parameter mutation with rich annotations and no output schema, the description covers the essential contract: what it does, the observable change, and that it can be undone. Only minor gaps remain, such as behavior on an already-archived session and whether any bulk or cascading effect applies.

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?

There is a single parameter (session_id) with 100% schema description coverage, so the schema fully documents it and the baseline applies. The description adds no format or identifier-resolution guidance beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Archive a conversation" gives a specific verb and resource, and the parenthetical states exactly what changes for the caller (it drops out of the active list) and that the effect is undoable. That effect-based contrast implicitly separates it from clear_session, though no sibling is named explicitly.

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?

Usage is only implied: the "reversible" note hints that archive is preferable to a permanent clear when the session should be recoverable, and the presence of unarchive_session supports that. The description never states when to choose this over clear_session or what preconditions apply.

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

Deploy Server

Other Tools