Skip to main content
Glama

Manage DeepSeek Harness sessions

dsh_session

List, resume, or close DeepSeek Harness sessions. Filter by working directory or session ID; operations never start or create sessions implicitly.

Instructions

查看/恢复/关闭 DSH 会话。list/status 始终可答(未启动时返回缓存视图),并可用 cwd/session_id 收窄结果:过滤只作用于已经存在(running 或缓存)的会话行,绝不创建目录、不隐式启动或恢复任何会话,无匹配时返回空数组;不带过滤参数时仍返回完整视图(包含原生错误行)。resume/close 需要 dsh 正在运行。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNolist/status:只保留该目录的会话(规范化路径比较,Windows 忽略大小写)
actionYes会话操作
session_idNolist/status:只保留该会话;resume/close 必填
new_sessionNo仅 resume 之外使用;与 session_id 互斥

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden of behavioral disclosure and does so exceptionally well. It explicitly promises no directory creation, no implicit session start/resume, cached-view behavior before startup, empty array on no match, full view including native error rows, and the runtime requirement for resume/close. These are concrete behavioral guarantees beyond the basic action names.

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?

The description is dense yet efficient: two sentences with no filler. The main verb and resource are front-loaded, followed by edge-case guarantees that an agent needs. Every clause adds value, even though the sentence is information-dense rather than broken into separate sections.

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 tool with no annotations and no output schema, the description covers return behavior, side-effect guarantees, filter semantics, and prerequisites remarkably well. The main gap is not addressing the overlapping dsh_status sibling tool or providing more detail on new_session beyond the schema, which leaves slight ambiguity in a sibling-rich context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds meaningful extra semantics by explaining how filter parameters affect results—only existing running/cached rows are filtered, no match yields an empty array, and omitting filters returns the full view. It also clarifies the runtime prerequisite for resume/close. These additions exceed the schema's brief descriptions, though the schema already covers the enum and mutual exclusion.

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 opens with a specific verb set and resource: 查看/恢复/关闭 DSH 会话 (view/resume/close DSH sessions), and distinguishes list/status from resume/close actions. It is clear what the tool operates on, but it does not explicitly differentiate itself from the sibling dsh_status tool, which could overlap with the status action.

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 description gives concrete usage context: list/status are always answerable and safe, while resume/close require dsh to be running. It also warns that filtering never implicitly starts or resumes sessions and returns empty arrays on no match he. This is clear context, though it does not name sibling alternatives such as dsh_start or dsh_status, so explicit when-not-to-use routing is missing.

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