Skip to main content
Glama

close_task_session

Close a task with its reported outcome and compact summary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
outcomeYes
summaryNo
request_idYes
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already disclose the key traits (readOnlyHint=false, idempotentHint=false, destructiveHint=false, openWorldHint=true), so the safety profile is covered. However, the description adds nothing beyond the operation name — it does not say whether closing is terminal, whether events can still be recorded afterward, or what happens on a repeated close of a non-idempotent operation.

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; every word earns its place. It is arguably under-specified rather than padded, which is a completeness issue rather than a conciseness one.

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?

For a 4-parameter mutation tool with 3 required params, no output schema, and 0% schema description coverage, the definition does far too little. An agent gets no guidance on session lifecycle, outcome selection, or the relationship to the sibling session tools.

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%, so the description must carry the parameter burden, and it does not. It gestures at 'outcome' and 'summary' but leaves session_id and request_id (both required, with min/max length constraints) entirely unexplained, and gives no meaning to the enum values.

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 ('Close a task session') plus the payload it carries (outcome, summary), so the operation is immediately identifiable. It does not explicitly differentiate itself from create_task_session or get_task_session, but the terminal 'close' semantics are clear enough.

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?

No when-to-use guidance is given: nothing says this is the terminal call for a session created by create_task_session, nor when to choose 'completed' vs 'abandoned' vs 'failed'. No alternatives or preconditions are named.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources