Skip to main content
Glama

reset_session

Discard pooled DeepSeek worker sessions and clean up their process trees. Pass sessionKey to clear one session; omit it to clear all sessions.

Instructions

丢弃会话池会话并清理进程树。传 sessionKey 只清该 key;不传清全部。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "reset_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionKeyNo要清理的 sessionKey;省略=清空全部

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.5.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the important traits: this is destructive (discards a session), it also terminates the process tree, and omitting the key wipes all sessions. It says nothing about irreversibility, whether the call blocks until processes die, what happens for an unknown key, or whether other workers are affected.

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 clauses with zero filler; the core action comes first and the parameter branching is packed into a compact conditional sentence. Nothing is repeated or padded.

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 one-optional-parameter tool with no output schema, the description covers the action, the process-tree side effect, and the scope semantics of the parameter, which is most of what an agent needs. Missing pieces are the reversibility/aftermath details and any note on failure for a nonexistent key.

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 single parameter's schema text ('要清理的 sessionKey;省略=清空全部') already states the same omit-equals-all semantics. The description restates rather than extends that meaning, so the baseline 3 applies; no additional format, casing, or lookup guidance is added.

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 uses a concrete verb pair ('丢弃' discard, '清理进程树' clean the process tree) plus a specific resource ('会话池会话' session-pool session), so an agent knows precisely what operation runs. It does not name any sibling tool, but none of the listed siblings (delegate_*, echo, pool_status, worker_info) perform the same action, so the lack of explicit differentiation costs little.

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

Usage Guidelines3/5

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

The two-branch condition (pass sessionKey → clear only that key; omit → clear everything) tells the agent how to invoke the tool, so the parameter-driven usage is clear. There is no guidance on when this tool is the right choice, no prerequisites, and no caution about when not to omit the key, which is a notable gap for a destructive bulk operation.

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