Skip to main content
Glama

plur_session_end

End a session by summarizing its content and capturing behavioral, architectural, procedural, and terminological learnings as engram suggestions.

Instructions

End a session. BEFORE calling this tool, review the conversation and extract learnings:

  1. Corrections the user made ("no, use X not Y") → type: behavioral

  2. Preferences stated ("always X", "never Y") → type: behavioral

  3. Codebase patterns discovered (naming, structure, conventions) → type: architectural

  4. Technical facts learned (API quirks, config, gotchas) → type: procedural

  5. Terminology defined or clarified → type: terminological

Include at least one engram_suggestion if ANYTHING was learned. An empty suggestions array means nothing worth remembering happened — this should be rare.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
summaryYesWhat happened in this session (1-3 sentences)
session_idNoSession ID from plur_session_start
engram_suggestionsYesLearnings from this session. Preferred shape is {statement: "...", type?: "..."}; bare strings are also accepted and treated as the statement. Review the conversation for corrections, preferences, patterns, and technical facts before calling.
Behavior3/5

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

The description adds behavioral context beyond annotations by detailing the requirement to supply learnings, which are presumably stored. However, it does not explain side effects of ending the session (e.g., invalidation, cleanup) or clarify the non-destructive nature implied by annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is moderately concise, starting with the core purpose and then listing extraction categories. While each sentence serves a purpose, the list could be streamlined without losing clarity.

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?

Given the tool's simplicity (no output schema, few parameters), the description covers the necessary invocation details: how to fill summary and engram_suggestions. It lacks information about return values or session state after ending, but that is arguably inferable.

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?

The description elaborates on the input schema, providing examples and guidelines for engram_suggestions (object shape with type and statement, bare strings accepted) and summary format (1-3 sentences). This adds value beyond the schema descriptions.

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 clearly states 'End a session' as the primary action, providing a specific verb and resource. While it does not explicitly differentiate from siblings, the sibling list includes plur_session_start, making the counterpart clear.

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?

The description provides explicit guidance on when to use the tool: before calling, the agent must review the conversation and extract learnings. It also specifies conditions for including engram_suggestions (at least one if anything learned, empty array rare). No alternative tools are discussed, but none are relevant for ending a session.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/plur-ai/plur'

If you have feedback or need assistance with the MCP directory API, please join our Discord server