Skip to main content
Glama

dsh_start

Create a persistent DSH coding-agent session for a workspace so sessions survive restarts and resume automatically; returns an ID and title for dispatching tasks.

Instructions

新建一个 DSH 会话(一个可长期共事的编码 agent)。会话活在磁盘上,进程只是缓存;进程被回收或崩溃后会自动用 ACP session/resume 复活,对话不丢。返回 conversation_id 与对话标题。建好后用 dsh_send 派活。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "cwd": "<cwd>"
    },
    "name": "dsh_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdYes工作区绝对路径。决定 agent 的工作目录、AGENTS.md/技能的发现范围、以及沙箱可写根。
modelNo模型名(如 deepseek-flash)。指定时必须同时给 provider。
providerNo模型提供方名(如 deepseek-official)。留空用 profile 默认。
permissionNo权限档。默认 danger-full-access。read-only 适合分析不信任样本(如恶意软件);workspace-write 越界操作会冒泡为待决审批。**档位在创建时定下**:DSH 设计上"resume 的会话保留它自己记录的权限",所以事后改这个参数不会改变已有会话,要换档需新建。(本档位是**真实生效**的 —— 由启动时传入的 env 决定,并有 test/permission.mjs 对着会话自己的记录逐档核验。)
title_hintNo可选的标题提示(DSH 的标题由首条消息自动生成,这里只是兜底显示)。
on_approvalNo审批处理策略。默认按权限档推导:read-only → auto-deny,其余 → auto-allow。ask 会把审批挂起,需用 dsh_approval_decide 裁决。
reasoning_effortNo思考深度,默认 max。注意 ACP 自身的默认是"Provider default"(不设),本服务会显式设成 max。想省钱可调低。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations present, the description carries the full disclosure burden, and it explains several key behaviors: the session is disk-backed, the process is only a cache, and a reaped or crashed process revives automatically via ACP session/resume with conversation intact. That is important behavioral context not present in any structured field. It still omits some traits an agent might care about, such as costs, whether duplicate sessions are created for the same cwd, or authorization requirements beyond the permission schema.

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?

The description is short and front-loaded, with purpose first, then persistence semantics, then return values, then the next action. The two clauses about the on-disk session versus the process as cache are slightly redundant, but no sentence is wasted.

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 7-parameter creation tool with no output schema, the description mentions the return values and the key lifecycle behavior, so an agent knows what it gets back and why the session survives. It is not fully complete, since it does not discuss failure modes (such as an invalid cwd) or the interaction between on_approval and dsh_approval_decide, which the schema alone would have to carry.

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%, so the schema already documents every parameter in detail, including permission tiering and approval derivation. The description adds no parameter-level meaning beyond mentioning that it returns a conversation_id and title, so the baseline 3 applies.

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?

The description names a concrete verb and resource ("新建一个 DSH 会话(一个可长期共事的编码 agent)") and immediately frames the session as a persistent coding-agent entity rather than a one-shot call. It also states the return values (conversation_id 与对话标题) and the follow-up action, which lets an agent distinguish dsh_start from siblings such as dsh_send.

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 clear context for when to use it: it is the creation step, and "建好后用 dsh_send 派活" explicitly routes the agent to the next tool. It does not state exclusions or when to use alternatives (for example, how it relates to dsh_takeover or dsh_list), so it stops short of full when-to-use/when-not-to-use guidance.

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