Skip to main content
Glama

terminate_session

Terminate a completed collaboration session to formally close it and preserve artifacts for export. Use when all tasks are done and session goal achieved.

Instructions

Terminate and complete a collaboration session. Orchestrator only.

AUTOMATIC TRIGGERS - Call this when:

  • All tasks in the session are completed

  • You want to formally end the collaboration

  • Session goal has been achieved

Only the orchestrator should call this. All artifacts are preserved and can be exported to the main library.

WORKFLOW POSITION: Last tool in collaboration workflow (before export).

PARAMETERS:

  • session_id: Session to terminate

  • orchestrator_id: The orchestrator's agent ID

  • summary: Optional final summary of the session's work

After termination, use export_to_library to persist findings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
summaryNo
session_idYes
orchestrator_idYes
Behavior4/5

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

With no annotations, the description carries the full burden, and it discloses key behaviors: artifacts are preserved, the session can be exported, and export_to_library should follow termination. It also restricts invocation to the orchestrator, giving the agent important side-effect and authorization context.

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 front-loaded and well-structured, but it contains redundancy: 'Orchestrator only' appears twice, and the trigger bullets overlap in meaning. It is informative but not as tight as it could be.

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 no annotations and no output schema, the description covers the essential context: when to call, who may call, artifact preservation, workflow position, and the follow-up export step. It does not describe error behavior or what happens if a non-orchestrator calls it, but the core guidance is complete enough.

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?

Schema description coverage is 0%, so the description must compensate; it does list all three parameters with short definitions. However, 'session_id: Session to terminate' is tautological, and while orchestrator_id and summary gain some meaning, the descriptions remain minimal and add no format or constraint detail.

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 the tool's purpose with a specific verb—'Terminate and complete a collaboration session'—and adds role and workflow context that distinguish it from more general session tools. It does not explicitly differentiate from sibling names like end_session or session_end, which keeps it from a 5.

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 'AUTOMATIC TRIGGERS' section explicitly lists conditions for calling, and the 'WORKFLOW POSITION' entry places it as the final step before export. It does not name alternatives or say when not to use it, but the context is clear enough for most agents.

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/Vedant9500/OpenLMlib'

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