Skip to main content
Glama

Dsh run

dsh_run

Execute a task on DeepSeek Harness and return the final result. Automatically starts the harness and reuses the current session when needed.

Instructions

把任务交给 DeepSeek Harness 执行并返回最终答复。若 dsh 尚未启动会自动启动;默认复用当前 cwd 的会话。这是一个同步的 tools/call:保持 pending,直到原生回合给出最终结果(或超时/取消),不要轮询、不要并发重复提交。仅当客户端提供 progressToken 时才回传 progress 通知(起始/阶段/空闲心跳),它只是活动信息,不代表完成,也不改变客户端超时或配额。web transport 下若原生回合在等待权限审批,进度会显示 waiting_for_approval;审批只在原生 Web UI(dsh_start 返回的 web_url)里回答,本桥不会自动批准、也不会修改原生权限配置;因等待审批而超时时,错误里会说明并且不会重发任务。较长或预计耗时不确定的任务优先用 dsh_submit + dsh_job,避免同步调用被客户端期限截断。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNo绝对工作区路径;不同 cwd 使用不同会话
taskYes完整、自包含的任务描述(上限 16000 字符)
session_idNo续跑指定会话(与 new_session 互斥)
timeout_msNo本轮超时,默认取 DSH_BRIDGE_TIMEOUT_MS
new_sessionNotrue = 强制开新会话
open_browserNoWeb 模式自动打开正确服务;false 关闭,true 强制打开

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and delivers extensively: it discloses auto-start behavior, default cwd session reuse, synchronous pending semantics, progress notification conditions and meaning, approval waiting behavior in web transport, and timeout handling without resubmission. This is exemplary transparency.

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 front-loaded with its purpose and every sentence adds important behavioral context, from synchronous semantics to progress notifications and approval handling. It is somewhat long, but the density of critical guidance justifies the length; no sentence feels wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having no output schema and no annotations, the description covers all operational aspects an agent needs: sync behavior, polling prohibition, progress notification semantics, approval flow, timeout consequences, and alternative routing. The only minor gap is the exact return payload shape, but '返回最终答复' is sufficient for a task-execution tool.

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 baseline is 3. The description adds only marginal parameter-related context, such as '默认复用当前 cwd 的会话', which largely restates the existing cwd schema description. It does not materially enhance understanding of parameters beyond what the schema already provides.

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 opens with a specific verb and resource: '把任务交给 DeepSeek Harness 执行并返回最终答复' – clearly stating it submits a task to DeepSeek Harness and returns the final answer. It also distinguishes itself from siblings by explicitly contrasting with dsh_submit + dsh_job for long-running tasks.

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

Usage Guidelines5/5

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

The description explicitly states when to use this tool ('这是一个同步的 tools/call'), what not to do ('不要轮询、不要并发重复提交'), and when to prefer an alternative ('较长或预计耗时不确定的任务优先用 dsh_submit + dsh_job'). This provides clear routing guidance with no ambiguity.

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