Skip to main content
Glama

End session

end_session
Idempotent

Use this when the user wants to stop studying before the cards run out, or after the last card. Closes the session and returns its summary (cards reviewed, counts by rating); give the user a one-sentence recap. Every review already recorded stays, and ending a session again changes nothing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYesThe session_id start_study_session returned.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
easyYes
goodYes
hardYes
noteYesWhere the user can study next time, on their own.
againYes
reviewedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / note
      Added value: +{
      +  "description": "Where the user can study next time, on their own.",
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "reviewed",
      -  "again",
      -  "hard",
      -  "good",
      -  "easy"
      -]New value: +[
      +  "reviewed",
      +  "again",
      +  "hard",
      +  "good",
      +  "easy",
      +  "note"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / session_id / description
      Added value: +"The session_id start_study_session returned."
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, and the description reinforces this concretely: 'Every review already recorded stays, and ending a session again changes nothing.' That adds specificity about persistence and repeat-call behavior beyond the bare hint, though it largely restates what the annotations imply.

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?

Three sentences, front-loaded with the usage condition followed by effects and the recap instruction; nothing is wasted. It is slightly longer than the tool's simplicity demands, and the idempotency sentence partly overlaps the annotations.

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 an output schema present, the return values need not be detailed, and the description still names them briefly. Usage condition, side effects, and idempotency behavior are all covered for a one-parameter session-ending tool with full annotation coverage.

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% and the single session_id parameter is documented as the value start_study_session returned. The description adds no parameter meaning beyond the schema, so the baseline of 3 applies for a fully documented single-parameter schema.

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?

States a specific verb and resource ('Closes the session') and its scope, plus what it returns ('its summary (cards reviewed, counts by rating)'). An agent can distinguish it from siblings like start_study_session, submit_review, and panel_grade without opening a 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?

'Use this when the user wants to stop studying before the cards run out, or after the last card' gives an explicit triggering condition covering both natural end states. No alternative tool is named for comparison, and no when-not case is given, so it falls short of 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.