Skip to main content
Glama

Execute commands via DeepSeek Harness

dsh_execute

Run test suites, build scripts, or environment queries on a local DeepSeek Harness agent; get full output and exit codes while source files stay unchanged unless requested.

Instructions

Run commands on the local DeepSeek Harness agent: test suites, build scripts, or environment queries. The agent reports the full output and exit code and is instructed not to touch source files unless the task explicitly asks. Use this for "run the tests and report" style work.

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_execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoOptional absolute workspace path. Usually omit this when running from Claude Code.
taskYesA self-contained task to delegate to DeepSeek Harness.
timeoutMsNoPer-call timeout in milliseconds; overrides DSH_MCP_TIMEOUT_MS for this call. Omit to use the configured default (no timeout by default).
trackChangesNoSnapshot the workspace before and after the delegation and report which files changed. Defaults to true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior3/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 does disclose two useful traits: the agent returns full output and exit code, and it is instructed not to modify source files unless the task asks. It omits other behaviors an agent would want — what happens on timeout, whether environment/workspace state can be mutated by non-source operations, and how this relates to delegate_to_dsh — so disclosure is partial rather than rich.

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?

Three sentences, each earning its place: capability, behavioral guarantees, then the selecting use case. It is front-loaded with the core action and free of filler or restated title text.

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 delegating executor with four parameters and no output schema, the description covers output shape (full output plus exit code), file-safety expectations, and the intended workload type. The main residual gap is the undefined boundary versus delegate_to_dsh, which matters because they appear to overlap closely.

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 cwd, task, timeoutMs, and trackChanges are already documented in the schema. The description adds only indirect meaning for task ("task explicitly asks") and nothing about cwd scoping or trackChanges cost beyond what the schema states; baseline 3 applies when the schema does the heavy lifting.

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 gives a specific verb and target: run commands against the local DeepSeek Harness agent, with concrete examples (test suites, build scripts, environment queries). It differentiates loosely from dsh_fix/dsh_investigate via the "run the tests and report" framing, but never explicitly contrasts with delegate_to_dsh, so sibling disambiguation is only implied.

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 a clear positive trigger — "Use this for 'run the tests and report' style work" — plus example workload categories, which is enough context to select it. However, it names no exclusions or alternatives, so an agent choosing between this and delegate_to_dsh or dsh_fix gets no explicit routing rule.

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