Skip to main content
Glama

Archive or Unarchive Notifications

notification_archive
Idempotent

Archive unread notifications or restore archived ones to unread without deleting them; target specific IDs or all notifications, optionally by importance.

Instructions

Archive (hide) or unarchive (restore to unread) notifications — reversible; nothing is deleted (to remove notifications permanently use notification_delete). Target specific ids (from notification_list — archive expects currently-unread ids, unarchive expects archived ids) or all: true (optionally one importance). Reports the action only: the API swallows per-id failures, so an unknown or wrong-bucket id silently succeeds — verify with notification_list.

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": {
      "direction": "<direction>"
    },
    "name": "notification_archive"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNo`true` moves every notification in the source bucket. Use instead of `ids`, never with it.
idsNoNotification ids from notification_list, taken from the bucket being moved out of. Use instead of `all`, never with it.
directionYes`archive` moves unread notifications into the archive; `unarchive` moves archived ones back to unread.
importanceNoLimits an `all: true` move to one importance level; rejected alongside `ids`.
response_formatNo`detailed` returns full JSON instead of readable text.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.1.3
    • addedInput schema / properties / all / description
      Added value: +"`true` moves every notification in the source bucket. Use instead of `ids`, never with it."
    • addedInput schema / properties / direction / description
      Added value: +"`archive` moves unread notifications into the archive; `unarchive` moves archived ones back to unread."
    • addedInput schema / properties / ids / description
      Added value: +"Notification ids from notification_list, taken from the bucket being moved out of. Use instead of `all`, never with it."
    • addedInput schema / properties / importance / description
      Added value: +"Limits an `all: true` move to one importance level; rejected alongside `ids`."
    • addedInput schema / properties / response_format / description
      Added value: +"`detailed` returns full JSON instead of readable text."
  2. First observedv0.1.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare non-destructive, idempotent, non-read-only behavior, and the description adds genuinely new context: reversibility, that the API swallows per-id failures so wrong-bucket or unknown ids silently succeed, and that results should be verified via notification_list. That silent-failure warning is exactly the kind of behavior annotations cannot express.

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?

Information-dense and front-loaded with the action and its reversible/non-destructive nature before the targeting and failure caveats. The heavy use of em-dashes and parentheticals makes it a single dense block, but no sentence is filler.

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?

No output schema exists, and the description covers what matters for a mutation tool: reversibility, selection modes, bucket preconditions, and the fact that the response reports the action only rather than per-id results. Nothing an agent needs in order to call it correctly and interpret the 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 100%, so the baseline is 3; the description still adds value by tying ids to their source (notification_list), specifying which bucket each direction expects, and noting importance applies only to all:true. It largely reinforces rather than extends the schema, which is already quite explicit.

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?

Names a specific verb pair and resource ('Archive (hide) or unarchive (restore to unread) notifications') and immediately distinguishes itself from notification_delete by stating nothing is deleted. An agent can tell this apart from its siblings without opening any 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 routing: use this to archive/unarchive, use notification_delete for permanent removal. It also states the two selection modes (ids vs all:true) and the bucket precondition that archive expects unread ids while unarchive expects archived ids, so the agent knows both when to call it and which ids to supply.

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