Skip to main content
Glama

dsh_release

Release DSH processes held by sessions to free memory or unlock the session for opening in your own DSH GUI. Pass all=true to release every active session at once.

Instructions

释放会话占用的 DSH 进程(释放写锁,让用户能在自己的 DSH GUI 里打开同一个会话)。会话本体留在磁盘上,之后仍可 resume;forget=true 才会从注册表里摘掉。★ 用完了想一次性腾内存就传 all=true(默认"永不回收"下每个会话约 120MB,全放掉即立刻归零,之后随时 resume)。

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": "dsh_release"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNo忽略 conversation_id,释放**所有**活着的会话进程(腾内存用)。默认 false。
forgetNo同时从本服务的注册表里移除,默认 false。
conversation_idNo会话 id,来自 dsh_start 或 dsh_list。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
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 the important consequences: the session stays on disk and stays resumable; only forget=true removes it from the registry; each session costs about 120MB and the default is never to reclaim. It does not say what happens to in-flight work on a running turn, or how it fails on an already-released session — that is the main remaining gap.

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 purpose is front-loaded correctly, but the single dense paragraph mixes lifecycle, flag semantics, and a memory aside, and repeats the resumability point twice ('之后仍可 resume' and '之后随时 resume'). The ★ callout and the nested parenthetical add emphasis, at some cost to scannability.

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?

Only three boolean/string parameters are optional, and there is no output schema, so the description is nearly complete for the tool's complexity: it explains the state change, what is not destroyed, and how to reset memory. The missing piece is error and edge-case behavior for running versus already-idle sessions.

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 coverage is 100%, so the schema already documents all, forget, and conversation_id, including that they default to false. The description restates the same two flags with added motivation (memory reclaim, registry removal) but contributes no format or interaction detail beyond the schema, so the baseline of 3 applies.

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 names a concrete verb+resource pair (releasing the DSH process holding a session) and states the immediate effect: the write lock is freed, the on-disk session remains resumable. What it doesn't do is distinguish this from siblings like dsh_interrupt or dsh_takeover, which an agent reading only prose must infer from the name alone.

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?

It gives explicit decision guidance for the two flags: pass all=true when you want to reclaim memory in one shot, and forget=true only when you want the entry removed from the registry. It stops short of an exclusion rule (for example, when to prefer interrupt over release), so an agent still has to reason about dsh_interrupt vs dsh_release on its own.

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