Skip to main content
Glama

dsh_task

Delegates a self-contained task to the locally installed DeepSeek Harness coding agent and returns its final answer. Use it to offload research, scoped implementation, test runs, or a second opinion.

Instructions

Delegate one task to the DeepSeek Harness (DSH) agent installed on this machine and return its final answer. DSH runs as a separate coding agent with its own tools, model route, workspace, and sandbox; this call blocks until it finishes. Use it to offload research, a scoped implementation, a test run, or a second opinion, and to reach tools or skills that exist only in DSH. Each call opens a fresh DSH session unless session_id is supplied; call dsh_continue to keep working in the same session. Call dsh_list_workspaces first to choose a registered project folder.

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": {
      "task": "<task>"
    },
    "name": "dsh_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoAbsolute working directory for the DSH session. Relative paths resolve against this MCP server's own working directory. Omit to use the directory Codex launched the server in.
taskYesThe complete task for the DSH agent. Write it as a self-contained instruction: DSH starts a fresh session with no knowledge of this conversation, so include the goal, the constraints, and what a finished result looks like.
add_dirsNoExtra absolute directories granted to DSH under workspace-write, for example a shared .git directory. Each entry is an explicit grant, so list only what the task needs. Existing-session ACP resumes keep the directories already stored in DSH.
session_idNoContinue this existing DSH session instead of starting a new one (same as dsh_continue).
timeout_secNoWall-clock limit for this task in seconds (30-3600, default 900).
workspace_idNoID returned by dsh_list_workspaces. When supplied, the registered DSH workspace path is used as cwd.
permission_modeNoPermission preset for the DSH session. Default "workspace-write": DSH may edit files inside the working directory but not outside it. Use "read-only" for pure research. Existing-session ACP resumes keep the permission settings already stored in DSH and cannot change them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.7

TDQS

A4.6/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full behavioral burden, and it discloses a lot: the call blocks until completion, DSH's isolation and sandbox, the default workspace-write permission, and that resumed sessions keep stored directories and permissions. It does not say what happens on timeout or task failure, which matters for a blocking call with a 900s default.

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?

Four sentences, front-loaded with what the tool does and its blocking behavior, then use cases, then session semantics, then the workspace prerequisite. Every sentence carries information an agent needs, with no restatement of the schema.

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 complex 7-parameter blocking delegation tool with no output schema, the description covers purpose, isolation, session reuse, and prerequisites well, and it names what is returned (the final answer). Only timeout and failure behavior are left unaddressed.

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 coverage is 100%, so the baseline is 3; the description adds genuine meaning on top by explaining that session_id continues an existing DSH session (same as dsh_continue) and that workspace_id comes from dsh_list_workspaces. Those cross-tool relationships are not derivable from the schema alone.

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?

States a specific verb and resource: delegate one task to DSH and return its final answer, plus the key scoping fact that DSH is a separate coding agent with its own tools, model route, workspace, and sandbox. It is clearly distinguished from dsh_continue by noting that each call opens a fresh session unless session_id is supplied.

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?

Gives concrete use cases (research, a scoped implementation, a test run, a second opinion) and names alternatives explicitly: dsh_continue to keep working in the same session, dsh_list_workspaces first to choose a project folder. The condition for choosing the alternative is stated rather than inferred.

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