Skip to main content
Glama

End session

end_session

Finish a certification practice session early or after the last question to return a score report with answer explanations.

Instructions

Finish a session early (or after the last question) and return the score report with explanations.

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": {
      "sessionId": "<sessionId>"
    },
    "name": "end_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the outcome (a score report with explanations) but says nothing about whether ending is irreversible, whether unsubmitted answers are lost, whether it can be called multiple times, or what happens on a nonexistent session — significant gaps for a terminal-state operation.

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?

A single tight sentence with no filler, and the primary action leads. The trailing parenthetical is compact but slightly muddies the trigger condition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations, no output schema, and an undocumented required parameter, the description should do more than one line. It never explains the session id, whether the session must be active, or what the agent should do with the returned report, leaving real operational questions unanswered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is one required parameter, sessionId, at 0% schema coverage, and the description never mentions it. The reader must infer that the id refers to the currently active practice session rather than a certification or historical session id.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 ('Finish a session early') and even names the return payload ('score report with explanations'), so the purpose is unambiguous. It does not explicitly contrast itself with siblings such as submit_answer or reset_progress, keeping it below a 5.

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

Usage Guidelines3/5

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

The parenthetical '(or after the last question)' gives implicit guidance on when the tool applies, indicating it is optional if the session runs to completion. However, it never addresses edge cases like an already-ended session, an invalid session id, or why one would choose this over reset_progress, so usage is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.