Skip to main content
Glama

Study panel: archive

panel_archive
Idempotent

Used by Flash's study panel only; never call it yourself. Takes the card on screen out of study after the user tapped Archive (or puts it back on Undo) and returns the cards the panel shows next.

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": {
      "card_id": "<card_id>",
      "archived": "<archived>",
      "window": "<window>"
    },
    "name": "panel_archive"
  }
}

Input Schema

NameRequiredDescriptionDefault
windowYesThe session and the cards the panel holds, for the cards it shows next.
card_idYesThe card on screen.
archivedYesTrue takes the card out of study; false puts it back (Undo).

Output Schema

NameRequiredDescriptionDefault
acksYes
windowNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed33 schema fields changed
    • addedInput schema / $defs
      Added value: +{
      +  "HeldArgs": {
      +    "properties": {
      +      "based_on": {
      +        "format": "int64",
      +        "type": "integer"
      +      },
      +      "card": {
      +        "format": "int64",
      +        "type": "integer"
      +      },
      +      "rev": {
      +        "format": "int64",
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "card",
      +      "based_on",
      +      "rev"
      +    ],
      +    "type": "object"
      +  },
      +  "WindowArgs": {
      +    "properties": {
      +      "held": {
      +        "items": {
      +          "$ref": "#/$defs/HeldArgs"
      +        },
      +        "type": "array"
      +      },
      +      "need": {
      +        "default": [],
      +        "items": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "type": "array"
      +      },
      +      "session": {
      +        "format": "int64",
      +        "type": "integer"
      +      },
      +      "showing": {
      +        "default": null,
      +        "format": "int64",
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "session"
      +    ],
      +    "type": "object"
      +  }
      +}
    • removedInput schema / properties / session_id
      Removed value: -{
      -  "description": "The session the panel is showing.",
      -  "format": "int64",
      -  "type": "integer"
      -}
    • addedInput schema / properties / window
      Added value: +{
      +  "$ref": "#/$defs/WindowArgs",
      +  "description": "The session and the cards the panel holds, for the cards it shows next."
      +}
    • changedInput schema / required
      Previous value: -[
      -  "session_id",
      -  "card_id",
      -  "archived"
      -]New value: +[
      +  "card_id",
      +  "archived",
      +  "window"
      +]
    • addedOutput schema / $defs / AckOut
      Added value: +{
      +  "properties": {
      +    "from": {
      +      "format": "int64",
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "id": {
      +      "type": "string"
      +    },
      +    "rating": {
      +      "format": "int64",
      +      "type": "integer"
      +    },
      +    "revision": {
      +      "format": "uint32",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "took": {
      +      "type": "string"
      +    },
      +    "why": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "rating",
      +    "revision",
      +    "took"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / $defs / PanelCardOut
      Removed value: -{
      -  "properties": {
      -    "card_id": {
      -      "format": "int64",
      -      "type": "integer"
      -    },
      -    "front_html": {
      -      "type": "string"
      -    },
      -    "front_lang": {
      -      "description": "The front's language, for its `lang`; absent when nothing says it.",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "card_id",
      -    "front_html"
      -  ],
      -  "type": "object"
      -}
    • addedOutput schema / $defs / PanelContentOut
      Added value: +{
      +  "properties": {
      +    "back": {
      +      "$ref": "#/$defs/PanelFaceOut"
      +    },
      +    "comes_back_ms": {
      +      "description": "How long until the card comes back after each grade, Again, Hard,\nGood, Easy, in ms: what the grade buttons say.",
      +      "items": {
      +        "format": "int64",
      +        "type": "integer"
      +      },
      +      "maxItems": 4,
      +      "minItems": 4,
      +      "type": "array"
      +    },
      +    "front": {
      +      "$ref": "#/$defs/PanelFaceOut"
      +    },
      +    "preload": {
      +      "description": "Signed links to the card's pictures, to fetch before it shows.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "type_answer": {
      +      "description": "The answer a card asks to have typed, when it asks for one.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "front",
      +    "back",
      +    "type_answer",
      +    "comes_back_ms",
      +    "preload"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / $defs / PanelFaceOut
      Added value: +{
      +  "properties": {
      +    "html": {
      +      "type": "string"
      +    },
      +    "lang": {
      +      "description": "The side's language, for its `lang`; empty when nothing says it.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "html",
      +    "lang"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / $defs / PanelFinishOut
      Added value: +{
      +  "description": "The finished screen of a session whose queue is empty.",
      +  "properties": {
      +    "again": {
      +      "format": "uint32",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "easy": {
      +      "format": "uint32",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "goal": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/PanelGoalOut"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "The goal the session counted toward."
      +    },
      +    "good": {
      +      "format": "uint32",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "hard": {
      +      "format": "uint32",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "held_by_limit": {
      +      "description": "Cards today's limits hold back.",
      +      "format": "uint32",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "next_due": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/NextDueOut"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "When the next cards come."
      +    },
      +    "reminders_offer": {
      +      "description": "Whether the finished screen offers reminders (panel_reminders):\nonly when the server can send this account reminders it has not\nturned on.",
      +      "type": "boolean"
      +    },
      +    "reviewed": {
      +      "description": "Reviews recorded in this session, by grade, in the panel or the chat.",
      +      "format": "uint32",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "state": {
      +      "description": "`held` (today's limits hold the rest back), `caught_up` (nothing\ndue), or `empty` (no cards in the scope at all).",
      +      "type": "string"
      +    },
      +    "took_ms": {
      +      "description": "From the session's first review to its last, in ms.",
      +      "format": "int64",
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "week": {
      +      "description": "The seven study days after today and the cards due on each, for the\nfinished screen's week.",
      +      "items": {
      +        "$ref": "#/$defs/DayAheadOut"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "state",
      +    "held_by_limit",
      +    "reviewed",
      +    "again",
      +    "hard",
      +    "good",
      +    "easy"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / $defs / PanelWindowCardOut
      Added value: +{
      +  "properties": {
      +    "based_on": {
      +      "description": "The card's last review, 0 for a new card: a grade of it names this.",
      +      "format": "int64",
      +      "type": "integer"
      +    },
      +    "card": {
      +      "format": "int64",
      +      "type": "integer"
      +    },
      +    "content": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/PanelContentOut"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "rev": {
      +      "description": "Changes whenever what the card shows changes.",
      +      "format": "int64",
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "card",
      +    "based_on",
      +    "rev"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / $defs / PanelWindowOut
      Added value: +{
      +  "description": "The cards the study panel shows next, in the order they come: the\nstudy page's window, its media links signed. A card the panel said\nit holds at the same `rev` and `based_on` comes without content.",
      +  "properties": {
      +    "cards": {
      +      "items": {
      +        "$ref": "#/$defs/PanelWindowCardOut"
      +      },
      +      "type": "array"
      +    },
      +    "finish": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/PanelFinishOut"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "What the finished screen shows, once the queue is empty."
      +    },
      +    "refreshed": {
      +      "description": "The cards the panel asked for again (`need`), as they now read.",
      +      "items": {
      +        "$ref": "#/$defs/PanelWindowCardOut"
      +      },
      +      "type": "array"
      +    },
      +    "remaining": {
      +      "description": "Cards in the queue after the round, the one on screen included.",
      +      "format": "uint32",
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "remaining",
      +    "cards",
      +    "refreshed"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / acks
      Added value: +{
      +  "items": {
      +    "$ref": "#/$defs/AckOut"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / card
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "$ref": "#/$defs/PanelCardOut"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • removedOutput schema / properties / deck
      Removed value: -{
      -  "description": "The session's deck and tags as asked for: the tags are the header's\nchips, and both let the panel start the session again after\nallowing more new cards; start only.",
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / deck_label
      Removed value: -{
      -  "description": "The deck as the site shows it (`Cardio › ECG`), for the panel's\nheader; start only.",
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / goal
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "$ref": "#/$defs/PanelGoalOut"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "The goal the session counted toward, once the queue is empty."
      -}
    • removedOutput schema / properties / held_by_limit
      Removed value: -{
      -  "description": "Cards today's limits hold back.",
      -  "format": "uint32",
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / next_card
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "$ref": "#/$defs/PanelCardOut"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "The card expected after this one, its front only, so the panel can\nshow it the moment a grade is tapped and record the grade behind\nit. The grade's own answer still says which card really comes."
      -}
    • removedOutput schema / properties / next_due
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "$ref": "#/$defs/NextDueOut"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "When the next cards come, once the queue is empty."
      -}
    • removedOutput schema / properties / preload
      Removed value: -{
      -  "description": "Signed links to warm: this card's back and the next card's front.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / recorded
      Removed value: -{
      -  "description": "False only from panel_grade, when the card had already been graded\nelsewhere (in the chat) and this grade was not recorded.",
      -  "type": "boolean"
      -}
    • removedOutput schema / properties / remaining
      Removed value: -{
      -  "description": "Cards in the queue, this one included.",
      -  "format": "uint32",
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / reminders_offer
      Removed value: -{
      -  "description": "Whether the finished screen offers reminders (panel_reminders):\nonly once the queue is empty, and only when the server can send\nthis account reminders it has not turned on.",
      -  "type": "boolean"
      -}
    • removedOutput schema / properties / reviewed
      Removed value: -{
      -  "description": "Reviews recorded in this session so far, in the panel or the chat:\nwith `remaining`, the panel's progress (\"2 / 10\").",
      -  "format": "uint32",
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / session_id
      Removed value: -{
      -  "format": "int64",
      -  "type": "integer"
      -}
    • removedOutput schema / properties / site_url
      Removed value: -{
      -  "description": "The site's front page, for the finished screen's \"Study on the\nweb\": the cards live there too.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / state
      Removed value: -{
      -  "description": "`card` (one to show), `held` (today's limits hold the rest back),\n`caught_up` (nothing due), or `empty` (no cards in the scope at all).",
      -  "type": "string"
      -}
    • removedOutput schema / properties / tags
      Removed value: -{
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / ui_lang
      Removed value: -{
      -  "description": "The language the account reads Flash in (`panel_lang`); start\nonly.",
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / view
      Removed value: -{
      -  "description": "Which of the panel's views this is: always `study`.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / week
      Removed value: -{
      -  "description": "The seven study days after today and the cards due on each, once\nthe queue is empty, for the finished screen's week.",
      -  "items": {
      -    "$ref": "#/$defs/DayAheadOut"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / window
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/PanelWindowOut"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "view",
      -  "session_id",
      -  "state",
      -  "card",
      -  "remaining",
      -  "reviewed",
      -  "held_by_limit",
      -  "preload",
      -  "recorded",
      -  "site_url"
      -]New value: +[
      +  "acks"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / required
      Previous value: -[
      -  "view",
      -  "session_id",
      -  "state",
      -  "remaining",
      -  "reviewed",
      -  "held_by_limit",
      -  "preload",
      -  "recorded",
      -  "site_url"
      -]New value: +[
      +  "view",
      +  "session_id",
      +  "state",
      +  "card",
      +  "remaining",
      +  "reviewed",
      +  "held_by_limit",
      +  "preload",
      +  "recorded",
      +  "site_url"
      +]
  3. Changed2 schema fields changed
    • addedOutput schema / $defs / PanelGoalOut
      Added value: +{
      +  "description": "The goal a finished session counted toward, for the panel's finished\nscreen: the web's done-screen block, its words in the account's\nlanguage.",
      +  "properties": {
      +    "behind": {
      +      "description": "Behind its plan: the ring in amber.",
      +      "type": "boolean"
      +    },
      +    "caption": {
      +      "description": "How much is learned, then the days left or how to catch up.",
      +      "type": "string"
      +    },
      +    "catch_up": {
      +      "description": "New cards \"Study N more\" adds to the deck today; 0 for no button.",
      +      "format": "uint32",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "deck": {
      +      "description": "The deck the goal is on, as boost_new_today names it.",
      +      "type": "string"
      +    },
      +    "head": {
      +      "description": "\"On track for Dec 18\", \"15 cards behind for Dec 18\".",
      +      "type": "string"
      +    },
      +    "percent": {
      +      "description": "How much of the deck is learned, out of 100: the ring.",
      +      "format": "uint32",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "percent_label": {
      +      "description": "The share learned as text (\"40%\"), shown when there is no button.",
      +      "type": "string"
      +    },
      +    "study_more": {
      +      "description": "The button's words.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "deck",
      +    "percent",
      +    "behind",
      +    "head",
      +    "caption",
      +    "percent_label",
      +    "catch_up",
      +    "study_more"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / goal
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/PanelGoalOut"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The goal the session counted toward, once the queue is empty."
      +}
  4. Changed2 schema fields changed
    • addedOutput schema / $defs / PanelCardOut / properties / front_lang
      Added value: +{
      +  "description": "The front's language, for its `lang`; absent when nothing says it.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / ui_lang
      Added value: +{
      +  "description": "The language the account reads Flash in (`panel_lang`); start\nonly.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  5. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false; the description corroborates this by explaining that the mutation is reversible (Undo re-adds the card) and that the call returns the next cards the panel shows. The remaining gap is not explaining what happens to the held/window state on undo, but the mutation profile is well covered.

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?

Two sentences with zero filler, and the most important constraint (panel-only, do not call yourself) is front-loaded before the behavioral explanation.

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?

With an output schema and full parameter coverage, the description only needs to establish scope and effect, which it does. Minor gap: it does not clarify whether the returned cards depend on the supplied window state or how failures are surfaced, though the caller is stated to be the panel itself.

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?

Schema description coverage is 100%, so the schema already documents card_id, archived and window. The description restates the archived=true/false meaning and hints that window carries the cards shown next, but adds no syntax or constraint detail beyond the schema — baseline 3.

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?

The description names a specific effect (takes the card on screen out of study, or restores it on Undo) and states the panel-only ownership, which separates it from the archive_deck/unarchive_deck siblings. An agent can tell exactly what this tool does without reading the schema.

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

Usage Guidelines4/5

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

"Used by Flash's study panel only; never call it yourself" is an explicit and unusually strong when-not-to-use exclusion, and it ties the call to a user UI action (Archive/Undo). It stops short of naming which sibling to use instead for direct archiving, so it is a 4 rather than a 5.

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.