Skip to main content
Glama

end_session

Close a development session by recording its summary, key decisions, and optional next steps for persistent project memory.

Instructions

End a session with summary, decisions, and next steps.

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>",
      "summary": "<summary>",
      "decisions": "<decisions>"
    },
    "name": "end_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
summaryYes
decisionsYes
nextStepsNo
sessionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.7/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 and does not meet it. It never says whether ending a session finalizes or locks it, whether the data is persisted permanently, what happens if the sessionId is invalid or already ended, or what the call returns. 'End' implies an irreversible terminal state but that is never confirmed.

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 front-loaded sentence with no filler or repetition. It is efficient, though the terseness contributes to the gaps in the other dimensions rather than reflecting thoroughness.

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?

This is a 4-parameter mutation with three required fields, zero annotation coverage, no output schema, and 0% schema description coverage — the description should therefore do substantial work, and it does not. It omits the required sessionId, the lifecycle implications of ending a session, and any return behavior, leaving the agent under-informed for a terminal operation.

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?

Schema description coverage is 0% and the description only echoes three of the four parameter names (summary, decisions, nextSteps) without adding format, granularity, or example guidance. Crucially, the required sessionId parameter is not mentioned at all, and nothing indicates how many decisions/next steps are expected or whether empty arrays are acceptable.

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?

States a specific verb and resource ('End a session') and names the content being captured (summary, decisions, next steps), so the agent knows exactly what operation this is. It does not differentiate itself from the obvious counterpart start_session or explain how it relates to add_observation/track_decision, but the core action 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 Guidelines2/5

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

There is no guidance on when to call this versus other session-adjacent tools, no prerequisite that an active session must exist, and no statement about whether it should be called once at the end of work or can be repeated. The agent must infer the timing entirely.

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