Skip to main content
Glama
sbl-sdsc

MCP GeneLab Server

by sbl-sdsc

end_session

Idempotent

Terminate a session immediately to free server memory and discard its output directory and plots. Call when done; after this, create a new session for further tool calls.

Instructions

End a session immediately, discarding its output-directory setting and all plots it holds. Optional — sessions also expire on their own. Call it when the user is done, to free server memory promptly. After this, a new create_session() is needed before further tool calls.

Input Schema

NameRequiredDescriptionDefault
session_idNoSession id returned by `create_session()`. This server serves many users from one process; the session id is what keeps your output directory and generated plots private to you. Pass the SAME value on every tool call. If the server replies that the session is unknown or expired, call `create_session()` again and use the new id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, openWorldHint=false and idempotentHint=true. The description adds the key behavioral facts the annotations omit: what is destroyed (output-directory setting and held plots), that termination is optional because sessions self-expire, and the follow-up requirement to re-create a session.

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?

Three short sentences, the destructive effect front-loaded, then optionality, then the follow-up requirement. No filler or redundant restatement of the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A simple one-parameter lifecycle tool with no output schema and adequate annotations; the description covers the effect, destructiveness, optionality, and postcondition, leaving nothing an agent needs before calling it.

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 100% and the session_id parameter is thoroughly documented in the schema itself (identity semantics, privacy, reuse across calls, re-creation on expiry). The description adds no parameter-level detail, so the baseline 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?

Specific verb+resource ("End a session") plus the exact consequences of the action (discards the output-directory setting and all plots it holds). An agent can distinguish this from sibling create_session without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicitly states when to call it ("when the user is done, to free server memory promptly") and when it is unnecessary ("Optional — sessions also expire on their own"), plus the postcondition that a new create_session() is required for further calls. The alternative to calling it is named.

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