Skip to main content
Glama

Archive Items

item.archive
DestructiveIdempotent

Archive (archived: true) or unarchive (archived: false) up to 50 rows of a sheet. An archived row keeps all its data but leaves default reads and search, sends no reminders and fires no workflows; unarchiving brings it back. Read archived rows with sheet.read and archived: "only". Confirm with the user before calling it. When the agent this app signs in as has Ask first on for this, the call waits for its manager's approval and returns status: "pending_approval"; nothing changes until they approve. Pass reason (and targetNotes per target) so the approver sees why.

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": {
      "sheetId": "<sheetId>",
      "itemIds": "<itemIds>",
      "archived": "<archived>"
    },
    "name": "item.archive"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoWhy you are doing this, in one sentence the approver reads if Ask first holds the call
itemIdsYesIds of the rows to archive or unarchive (1–50)
sheetIdYes
archivedYestrue archives the rows; false unarchives them
targetNotesNoA short note per target, keyed by the id or Index you pass

Output Schema

NameRequiredDescriptionDefault
statusNoThe call waits for a person's approval; nothing has changed
changedNoIds now in the requested state, including ones that already were
messageNo
approverNoWho decides it
notFoundNoIds that are not rows of this sheet
approvalIdNoThe approval the call waits on

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / reason
      Added value: +{
      +  "description": "Why you are doing this, in one sentence the approver reads if Ask first holds the call",
      +  "type": "string"
      +}
    • addedInput schema / properties / targetNotes
      Added value: +{
      +  "additionalProperties": {
      +    "type": "string"
      +  },
      +  "description": "A short note per target, keyed by the id or Index you pass",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
  2. Changed5 schema fields changed
    • addedOutput schema / properties / approvalId
      Added value: +{
      +  "description": "The approval the call waits on",
      +  "type": "string"
      +}
    • addedOutput schema / properties / approver
      Added value: +{
      +  "description": "Who decides it",
      +  "type": "string"
      +}
    • addedOutput schema / properties / message
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / status
      Added value: +{
      +  "const": "pending_approval",
      +  "description": "The call waits for a person's approval; nothing has changed",
      +  "type": "string"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "changed",
      -  "notFound"
      -]
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations by explaining what archiving actually does: data is retained, the row leaves default reads and search, reminders stop and workflows do not fire, and unarchiving restores it. It also discloses the Ask-first approval gate, that nothing mutates until a manager approves, and returns `status: "pending_approval"` — none of which annotations convey.

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 immediately followed by the effect, then the retrieval path, then the approval caveat — a sensible ordering. It is dense and mostly earns its length, but the `archived: true`/`false` mapping is restated in the description and again in the schema, a minor redundancy.

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, approval-gated batch mutation with an output schema, the description covers consequences, reversibility via unarchive, the approval branch, and the follow-up read path. Nothing an agent needs in order to call it safely or interpret a delayed result 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 80%, so the structured fields already carry most parameter meaning. The description adds non-obvious intent by telling the agent to pass `reason` and per-target `targetNotes` specifically because a human approver reads them, which reframes those optional fields as operationally important rather than cosmetic.

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 pair (archive/unarchive), the exact resource (rows of a sheet), the mechanism (`archived: true`/`false`) and the batch limit of 50. It also names the sibling that reads archived rows, so an agent can separate this from `sheet.read` and the `item.update_*` family without inspecting schemas.

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 context ('Confirm with the user before calling it'), names the alternative for retrieval ('Read archived rows with `sheet.read` and `archived: "only"`'), and describes the conditional approval path including the `pending_approval` status. An agent knows both the trigger and the excluded path.

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.

Resources