Skip to main content
Glama

end_session

DestructiveIdempotent

End a live presentation session and finalise the per-slide times. Required: code or session_id.

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": "end_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoCode of the live presentation session (alternative to session_id)
session_idNoID of the session

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / code / description
      Added value: +"Code of the live presentation session (alternative to session_id)"
    • addedInput schema / properties / session_id / description
      Added value: +"ID of the session"
  2. First observed

TDQS

A3.7/5.0
Behavior3/5

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

The annotations already disclose that this is destructive and idempotent, so the description does not need to carry the full safety burden. It adds useful behavioral context by saying the per-slide times are finalised, which signals a persistent write beyond merely 'ending' a session. It still does not explain whether the session can be resumed, whether finalised times are locked, or what happens on repeated calls beyond the idempotent hint.

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?

The description is two short sentences with zero wasted wording. The core action is front-loaded, and the identifier requirement follows immediately.

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?

For a low-complexity, two-parameter tool with complete schema coverage and annotations covering destructiveness and idempotency, the description is largely complete. It names the action, its main effect, and the identifier requirement. A little more detail about what happens if the session is not live or already ended would make it fully complete.

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 baseline would be 3, but the description adds a meaningful constraint not explicit in the schema: at least one of code or session_id must be supplied. The property descriptions already indicate that code is an alternative to session_id, and the description reinforces that mutual exclusivity. The wording 'Required' contrasts with the schema's empty required list, but it usefully clarifies the intended invocation contract.

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: ending a live presentation session. It also adds the side effect of finalising per-slide times, making the operation understandable without opening the schema. It stops short of explicitly distinguishing itself from sibling start_presentation_session or get_session_state, so it is clear but not fully sibling-differentiated.

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?

Usage is implied by the verb 'End' and by 'live presentation session', which suggests this applies only to an active session. However, there is no explicit statement about when not to use it, what to do if the session is already ended, or how it relates to start_presentation_session or get_session_state. The requirement of 'code or session_id' is invocation guidance rather than alternative-tool guidance.

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.