Skip to main content
Glama

end_session

End a work session. This triggers context block generation — your activities are summarized and stored in the knowledge graph for future reference.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
outcomeYesOutcome: success, failure, partial, abandoned
session_idYesSession ID to end
token_usageNoToken usage for this session. JSON object with fields: input_tokens (int), output_tokens (int), total_tokens (int), model (string), estimated_cost_usd (float). Optional — set when the agent can report consumption.

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden of disclosing side effects. It explicitly says that ending the session triggers context block generation, where activities are summarized and stored in the knowledge graph. This is meaningful behavioral context beyond the simple action of ending a session, though it does not mention other potential side effects like irreversibility or permission requirements.

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 sentences, with the primary purpose in the first sentence and a key side effect in the second. It is front-loaded, concise, and contains no extraneous information.

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?

The tool has no output schema, but the description explains the purpose and a significant side effect (context block generation). It provides enough context for an agent to decide when to use the tool and what to expect. It does not detail return values, but with no output schema declared, this is a minor gap given the tool's straightforward nature.

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?

The input schema already provides descriptions for all three parameters (outcome, session_id, token_usage), achieving 100% schema coverage. The description does not add parameter-specific semantics beyond the overall context of summarizing activities, so the baseline of 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 clearly states the tool's function: 'End a work session.' It also adds a distinguishing detail about triggering context block generation, which sets it apart from sibling tools like 'start_session' or 'list_sessions'. The verb+resource combination is unambiguous.

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 description implies the usage context: this should be called when a work session is being ended. However, it does not explicitly state when to use it versus alternatives, nor does it mention any exclusions or prerequisites. The guidance is present but implicit.

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.

TDQS

B3.3/5.0
Disambiguation4/5

Most tools have distinct resource+action pairs (e.g., create_task vs update_task vs delete_task), but the large number of list/get/search tools creates some potential confusion, especially between get_context, search_entities, and find_documents. Descriptions are detailed and help, but the volume makes navigation less clear.

Naming Consistency4/5

The majority of tools follow a consistent verb_noun pattern (create_, delete_, list_, update_, etc.), with clear prefixes like add/remove and link/unlink. Deviations like 'whoami', 'find_documents' vs 'search_entities', and 'setup_organization' prevent a perfect score.

Tool Count1/5

62 tools is far beyond the typical MCP server scope and overwhelms agents with too many choices. Even if each tool is individually useful, the sheer count makes it difficult for an agent to efficiently select the right tool, increasing the likelihood of misselection.

Completeness3/5

The domain is well covered for projects, tasks, teams, sessions, and notifications, but there are notable gaps: no update_document, no get_task (only list/update/delete), no get_user, no reject_invite, and sprint management lacks update/delete operations. Core CRUD is present for many entities, but not all.

Resources