Skip to main content
Glama

End Session

kg_session_end

End the current knowledge-graph session while preserving nodes and edges; start a new session before further writes.

Instructions

End the current session. Nodes and edges are kept; a new session must be started before further writes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare non-destructive, non-read-only, non-idempotent. The description adds genuinely useful context beyond them: persisted data survives the end, and subsequent writes are blocked until a new session starts. Missing: behavior when no session is active or whether repeated calls error.

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?

Two short sentences, action first, consequence second. No filler and nothing important buried.

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 zero-param lifecycle tool with annotations covering safety hints and no output schema, this is nearly complete: it tells the agent what survives and what becomes unavailable. Only edge-case behavior (calling without an active session, idempotency of repeated ends) is unstated.

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?

Zero parameters, so the baseline is 4; there is no parameter semantics to explain, and the description correctly avoids inventing any.

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+resource ('End the current session') and clarifies consequences (nodes/edges kept). It does not name the sibling kg_session_start as the counterpart, but the start/end pairing makes the distinction obvious.

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?

Implies the right moment (when finished writing) and states the prerequisite for continuing work: a new session must be started before further writes. It lacks an explicit 'when not to use' or a named alternative, so it stops 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.