Skip to main content
Glama

Submit review

submit_review

Use this after the user answers the card just asked in a study session: records how well they knew it, which sets when the card comes back, and returns the next card. Grade STRICTLY against the card's back: facts, numbers, doses, and units must match precisely. An imprecise answer is 1 (Again), never 'close enough'; only phrasing may differ. Part of an answer is a miss, so '60' for '60 to 100 bpm' is 1. 1=Again (wrong, blank, or anything the card asks for left out), 2=Hard (the whole answer, but slowly or unsurely), 3=Good (the whole answer), 4=Easy (the whole answer at once). 2, 3 and 4 all record that the user knew it. State the exact answer on a miss, then immediately ask next_card's front. A null next_card ends the session. Wrap up briefly.

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>",
      "card_id": "<card_id>",
      "rating": "<rating>"
    },
    "name": "submit_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
ratingYes1=Again 2=Hard 3=Good 4=Easy
card_idYesThe card just asked: the card_id of the front the user answered.
session_idYesThe session_id start_study_session returned.

Output Schema

NameRequiredDescriptionDefault
noteNoPresent only when the queue is empty: why, and what to do next.
recordedYes
next_cardYesNext card to ask immediately, or null when the session is finished.
remainingYesCards left in the queue.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / required
      Previous value: -[
      -  "recorded",
      -  "remaining"
      -]New value: +[
      +  "recorded",
      +  "next_card",
      +  "remaining"
      +]
  2. Changed2 schema fields changed
    • addedInput schema / properties / card_id / description
      Added value: +"The card just asked: the card_id of the front the user answered."
    • addedInput schema / properties / session_id / description
      Added value: +"The session_id start_study_session returned."
  3. Changed7 schema fields changed
    • changedOutput schema / $defs / CardFrontOut / description
      Previous value: -"One card front for the assistant to ask."New value: +"Rich question only. Editable source is deliberately absent during study."
    • removedOutput schema / $defs / CardFrontOut / properties / front
      Removed value: -{
      -  "description": "The question side; ask it and wait for the user's answer.",
      -  "type": "string"
      -}
    • addedOutput schema / $defs / CardFrontOut / properties / front_html
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / $defs / CardFrontOut / properties / media
      Added value: +{
      +  "items": {
      +    "$ref": "#/$defs/MediaOut"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / $defs / CardFrontOut / properties / spoken_front
      Removed value: -{
      -  "description": "The question as it should be read aloud: a cloze gap is the word\n\"blank\", a picture is described, a formula is named. Speak this\nrather than `front` when talking.",
      -  "type": "string"
      -}
    • changedOutput schema / $defs / CardFrontOut / required
      Previous value: -[
      -  "card_id",
      -  "front",
      -  "spoken_front"
      -]New value: +[
      +  "card_id",
      +  "front_html",
      +  "media"
      +]
    • addedOutput schema / $defs / MediaOut
      Added value: +{
      +  "properties": {
      +    "filename": {
      +      "type": "string"
      +    },
      +    "media_id": {
      +      "format": "int64",
      +      "type": "integer"
      +    },
      +    "mime": {
      +      "type": "string"
      +    },
      +    "size": {
      +      "format": "uint64",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "url": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "media_id",
      +    "url",
      +    "mime",
      +    "filename",
      +    "size"
      +  ],
      +  "type": "object"
      +}
  4. Changed2 schema fields changed
    • addedOutput schema / $defs / CardFrontOut / properties / spoken_front
      Added value: +{
      +  "description": "The question as it should be read aloud: a cloze gap is the word\n\"blank\", a picture is described, a formula is named. Speak this\nrather than `front` when talking.",
      +  "type": "string"
      +}
    • changedOutput schema / $defs / CardFrontOut / required
      Previous value: -[
      -  "card_id",
      -  "front"
      -]New value: +[
      +  "card_id",
      +  "front",
      +  "spoken_front"
      +]
  5. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations declare this is a non-read-only, non-destructive, closed-world operation, and the description adds useful behavior: it records the grade, reschedules the card, and returns the next card, with 2/3/4 all counting as 'knew it'. It does not address edge behavior such as re-submitting a grade for the same card or session validity, which keeps it short of a 5.

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?

The triggering condition and the grading policy are front-loaded, and most sentences carry decision-relevant content. The 1–4 legend partially restates the schema's rating description, which is mild redundancy, but the surrounding strictness rules justify keeping it inline.

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?

With annotations, a full-coverage three-parameter schema, and an output schema covering the next-card return, the description supplies the only remaining essentials: when to call, how to grade, and what to do after the response. Nothing an agent needs to invoke it correctly 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 schema already documents session_id, card_id and rating, setting the baseline at 3. The description goes beyond it by defining how to assign rating values (strict factual matching, partial answer = 1), which is genuine semantic guidance the enum label alone does not give.

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 verb and resource ('submit_review' → records the grade for the card just asked), plus the side effect ('which sets when the card comes back') and the return ('returns the next card'). It clearly is not show_answer or panel_grade, since it is tied to answering the card in a study session.

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?

Timing is explicit ('after the user answers the card just asked in a study session'), with a full when-to-use rubric for the four ratings and concrete exclusion rules ('an imprecise answer is 1, never close enough'; 'part of an answer is a miss'). It also prescribes the follow-up flow ('state the exact answer on a miss, then immediately ask next_card's front') and the termination condition ('a null next_card ends the session').

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.