Skip to main content
Glama

Study panel: save edit

panel_save_edit
Idempotent

Used by Flash's study panel only; never call it yourself (use update_cards). Saves the panel's quick edit of a card's two fields.

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>",
      "front_html": "<front_html>",
      "back_html": "<back_html>"
    },
    "name": "panel_save_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
card_idYesThe card the panel is showing.
back_htmlYes
front_htmlYesThe note's two fields as the quick edit left them.

Output Schema

NameRequiredDescriptionDefault
card_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • removedInput schema / properties / next_card_id
      Removed value: -{
      -  "default": null,
      -  "description": "The card the panel expects after it, which the edit may also have\nchanged (a sibling of the same note).",
      -  "format": "int64",
      -  "type": [
      -    "integer",
      -    "null"
      -  ]
      -}
    • removedOutput schema / $defs
      Removed value: -{
      -  "PanelAnswerOut": {
      -    "description": "The back of a card for the panel, its media links signed.",
      -    "properties": {
      -      "back_html": {
      -        "type": "string"
      -      },
      -      "back_lang": {
      -        "description": "The back's language, for its `lang`; absent when nothing says it.",
      -        "type": "string"
      -      },
      -      "card_id": {
      -        "format": "int64",
      -        "type": "integer"
      -      },
      -      "comes_back_in_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",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "card_id",
      -      "back_html"
      -    ],
      -    "type": "object"
      -  },
      -  "PanelCardOut": {
      -    "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"
      -  }
      -}
    • removedOutput schema / properties / answer
      Removed value: -{
      -  "$ref": "#/$defs/PanelAnswerOut"
      -}
    • removedOutput schema / properties / card
      Removed value: -{
      -  "$ref": "#/$defs/PanelCardOut"
      -}
    • addedOutput schema / properties / card_id
      Added value: +{
      +  "format": "int64",
      +  "type": "integer"
      +}
    • removedOutput schema / properties / next_card
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "$ref": "#/$defs/PanelCardOut"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • removedOutput schema / properties / preload
      Removed value: -{
      -  "description": "Images to fetch ahead, as a study view's.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "card",
      -  "answer",
      -  "preload"
      -]New value: +[
      +  "card_id"
      +]
  2. Changed2 schema fields changed
    • addedOutput schema / $defs / PanelAnswerOut / properties / back_lang
      Added value: +{
      +  "description": "The back's language, for its `lang`; absent when nothing says it.",
      +  "type": "string"
      +}
    • addedOutput schema / $defs / PanelCardOut / properties / front_lang
      Added value: +{
      +  "description": "The front's language, for its `lang`; absent when nothing says it.",
      +  "type": "string"
      +}
  3. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuine context beyond that by disclosing that this is a panel-internal write path that should not be invoked directly. It stops short of saying the two fields are wholly replaced rather than merged, which would matter for a non-destructive-labeled write.

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 short clauses, zero filler, with the caller restriction front-loaded before the description of the action. Every element earns its place.

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?

An output schema and rich annotations exist, so the description needn't explain return values or safety. For a three-required-param panel-internal write, the remaining gap is small: it doesn't state whether the supplied HTML overwrites existing field content entirely.

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 coverage is 67%: card_id and front_html are described, back_html is not. The phrase 'a card's two fields' loosely implies the front/back pair but adds no format or replacement semantics beyond the schema, so it neither compensates for nor deepens the existing documentation.

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 states a specific verb and resource ('Saves the panel's quick edit of a card's two fields') and explicitly distinguishes itself from the sibling update_cards, which is the tool an agent should normally reach for.

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?

It gives an explicit when-to-use restriction ('Used by Flash's study panel only'), an explicit when-not ('never call it yourself'), and names the alternative ('use update_cards'). Nothing is left to inference.

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.