Skip to main content
Glama

Start study session

start_study_session

Use this when the user wants to study, review, practice, be quizzed on or drill their flashcards, including cards made moments ago. Starts a spaced-repetition session over the cards due now: all of them, one deck (with its subdecks), or the cards carrying every given tag (list_tags has the names). Progress counts only for cards asked here and graded with submit_review, so ask each card from this session, never from the conversation. To make new cards use create_cards. Returns the first card's front (ask it and wait for the user's answer), how many cards are due, and grading_mode. Render front_html for display or interpret it for speech; present cloze gaps without revealing answers, and never read raw markup or URLs aloud. Fetch media URLs with the connector Bearer token if needed. Follow grading_mode for the whole session. Internal fields (ids, counts) are never read aloud.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "start_study_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoOne tag to study, e.g. "exam-2": the same as a `tags` of one.
deckNoDeck name to study (omit to study everything due). A deck includes its subdecks; name Parent::Child to study one subdeck.
tagsNoTags the cards must all carry, e.g. ["exam-2", "cardio"], at most ten. With a deck they narrow that deck. Names come from list_tags.

Output Schema

NameRequiredDescriptionDefault
noteNoPresent only when the queue is empty: why, and what to do next.
next_dueNoPresent only when the queue is empty and more cards are coming: when the next ones are due.
cards_dueYesCards in this session's queue right now.
first_cardYesFirst card to ask, or null when nothing is due.
session_idYes
grading_modeYesHow to report grades for the whole session; follow it exactly.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / required
      Previous value: -[
      -  "session_id",
      -  "cards_due",
      -  "grading_mode"
      -]New value: +[
      +  "session_id",
      +  "cards_due",
      +  "grading_mode",
      +  "first_card"
      +]
  2. Changed2 schema fields changed
    • addedOutput schema / $defs / NextDueOut
      Added value: +{
      +  "description": "When the next cards come, for a session with nothing left to study.",
      +  "properties": {
      +    "at_ms": {
      +      "description": "When the first of them is due, in ms since the epoch.",
      +      "format": "int64",
      +      "type": "integer"
      +    },
      +    "cards": {
      +      "description": "How many come that day.",
      +      "format": "uint32",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "in_days": {
      +      "description": "Study days away: 1 is tomorrow, 0 later today.",
      +      "format": "uint32",
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "at_ms",
      +    "in_days",
      +    "cards"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / next_due
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/NextDueOut"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Present only when the queue is empty and more cards are coming:\nwhen the next ones are due."
      +}
  3. Changed1 schema field changed
    • removedOutput schema / properties / study_panel
      Removed value: -{
      -  "description": "Present when this host shows Flash's study panel: how to run the\nsession alongside it.",
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
  4. Changed1 schema field changed
    • addedOutput schema / properties / study_panel
      Added value: +{
      +  "description": "Present when this host shows Flash's study panel: how to run the\nsession alongside it.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  5. Changed2 schema fields changed
    • changedInput schema / properties / tag / description
      Previous value: -"Tag to study, e.g. \"exam-2\" (ignored when deck is set)."New value: +"One tag to study, e.g. \"exam-2\": the same as a `tags` of one."
    • addedInput schema / properties / tags
      Added value: +{
      +  "default": null,
      +  "description": "Tags the cards must all carry, e.g. [\"exam-2\", \"cardio\"], at most\nten. With a deck they narrow that deck. Names come from list_tags.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "array",
      +    "null"
      +  ]
      +}
  6. Changed1 schema field changed
    • changedInput schema / properties / deck / description
      Previous value: -"Deck name to study (omit to study everything due)."New value: +"Deck name to study (omit to study everything due). A deck includes\nits subdecks; name Parent::Child to study one subdeck."
  7. 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"
      +}
  8. 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"
      +]
  9. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare non-read-only, non-destructive, closed-world, but the description adds substantial behavior: it returns the first card's front, due count and grading_mode, progress only accrues via submit_review on this session's cards, grading_mode governs the whole session, media requires the connector Bearer token, and internal ids/counts must never be spoken. The one gap is that it does not state whether a session is resumable or what happens if start is called twice.

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 trigger is front-loaded and the sentence order follows the agent's decision flow: when to use, what scope, what alternative, what it returns, how to present it. It is long for a tool description and includes a few presentation directives (cloze gaps, no raw markup, no URLs aloud) that dilute the core selection signal, though they remain relevant to correct use.

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 session-based tool with three optional params, an output schema and non-obvious workflow coupling to submit_review, the description covers selection, return shape, grading_mode, and presentation rules. Nothing an agent needs to call it correctly and hand off to the grading loop is missing.

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 deck/tag/tags are already documented in detail (deck includes subdecks, Parent::Child syntax, at most ten tags). The description adds only the compositional note that a deck narrows the tag filter and that tag names come from list_tags, which the schema already says. Baseline 3 is appropriate.

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 opens with an explicit trigger list ('study, review, practice, be quizzed on or drill their flashcards') and states exactly what starts: a spaced-repetition session over the cards due now. It then scopes the three mutually exclusive selection modes (everything, one deck plus subdecks, or all given tags) and names create_cards as the tool for the contrasting job.

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 explicit when-to-use (user wants to study), when-not/alternative (to make new cards use create_cards), and the cross-tool workflow: progress counts only for cards asked here and graded with submit_review, so cards must come from this session, never from conversation. It also points to list_tags for tag names, leaving little 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.