Skip to main content
Glama

dsh_send

Sends a self-contained task or reply to DeepSeek Harness, returning a run_id and wait hint so you can track or continue the session.

Instructions

Hand a task to DeepSeek Harness, or continue a session: returns at once with a run_id and a hint saying how to wait for the reply; follow it. Call it directly, no need to list anything first. A new session starts in the folder this conversation works in, or in cwd or workspace_id (a new cwd is registered first); session_id continues that session. Without session_id, a task for a folder where this conversation already has an idle Harness session continues that session, so it keeps the earlier context (continued_session in the result says so; new_session: true starts a fresh one); a busy session is never reused, so parts sent in parallel still get a session each. message arrives verbatim as a user message, and Harness does not see this conversation: make it self-contained, in the user's language, the full, explicit spec, asking for tests that cover each requirement. Keep a leading /goal (it sets a Harness goal) and the user's goal text as written. For a large task, write a concrete spec (goal, modules and the files each owns, level of detail, acceptance criteria) rather than passing the user's words on, and send independent parts to separate sessions in parallel, each owning its own files; wait for them together as each send's hint says, review each as it returns and send its fixes at once. With checks, a short request for a sub-agent review table is appended. To a busy session, mode followup queues the message and steer adds it to the running turn; left out, the Harness setting decides.

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": {
      "message": "<message>"
    },
    "name": "dsh_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoWorkspace folder for a new session; leave out to use the folder this conversation works in
modeNofollowup queues after the current turn; steer injects into a running turn. Omit to follow Harness's busy-send setting
teamNoOnly when the user asks for Agent Teams: true turns them on for this session, false off
modelNoOnly when the user names a model for this run (e.g. "DeepSeek-V4 Pro"); else the session keeps its own; a new one takes the plugin page's default. Matched ignoring case, spaces, hyphens and a leading DeepSeek; no match or several fails the send with the list (provider/model picks one). Sets this session only
checksNoThe project's own test commands, e.g. npm test, or python -m pytest (a bare pytest is often not on PATH, on Windows especially); never check scripts you write yourself. dsh-baton runs them in the folder when the run ends and returns exit codes and the last output lines as evidence.
messageYesThe task or reply to send
session_idNoExisting session to continue
new_sessionNoStart a new session even though this conversation has an idle session in that folder: only for an unrelated task, or one that must not see the earlier work
workspace_idNoHarness workspace for a new session (from dsh_list_workspaces)
reasoning_effortNoOnly when the user names a reasoning effort, e.g. high; one of the efforts dsh_list_models shows for the model

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.17
    • addedInput schema / properties / new_session
      Added value: +{
      +  "description": "Start a new session even though this conversation has an idle session in that folder: only for an unrelated task, or one that must not see the earlier work",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changedv0.6.15
    • changedInput schema / properties / model / description
      Previous value: -"Only when the user names a model for this run (e.g. \"DeepSeek-V4 Pro\"); otherwise the session keeps its own, or Harness's default for a new one. Matched ignoring case, spaces, hyphens and a leading DeepSeek; no match or several fails the send with the list (provider/model picks one). Sets this session only"New value: +"Only when the user names a model for this run (e.g. \"DeepSeek-V4 Pro\"); else the session keeps its own; a new one takes the plugin page's default. Matched ignoring case, spaces, hyphens and a leading DeepSeek; no match or several fails the send with the list (provider/model picks one). Sets this session only"
  3. Changed2 schema fields changedv0.6.13
    • changedInput schema / properties / model / description
      Previous value: -"Only when the user names a model for this run (e.g. \"DeepSeek-V4 Pro\", \"v4-pro\"); leave out otherwise and the session uses its own model, or Harness's default model for a new session. Matched against Harness's model list ignoring case, spaces, hyphens and a leading DeepSeek; a name that matches no model or several fails the send with the list (provider/model picks one). Sets this session only; Harness's default model is left as it was"New value: +"Only when the user names a model for this run (e.g. \"DeepSeek-V4 Pro\"); otherwise the session keeps its own, or Harness's default for a new one. Matched ignoring case, spaces, hyphens and a leading DeepSeek; no match or several fails the send with the list (provider/model picks one). Sets this session only"
    • addedInput schema / properties / team
      Added value: +{
      +  "description": "Only when the user asks for Agent Teams: true turns them on for this session, false off",
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / checks / description
      Previous value: -"The project's own test commands, e.g. npm test; never check scripts you write yourself. dsh-baton runs them in the folder when the run ends and returns exit codes and the last output lines as evidence."New value: +"The project's own test commands, e.g. npm test, or python -m pytest (a bare pytest is often not on PATH, on Windows especially); never check scripts you write yourself. dsh-baton runs them in the folder when the run ends and returns exit codes and the last output lines as evidence."
  5. Changed6 schema fields changedv0.6.4
    • addedInput schema / properties / checks
      Added value: +{
      +  "description": "The project's own test commands, e.g. npm test; never check scripts you write yourself. dsh-baton runs them in the folder when the run ends and returns exit codes and the last output lines as evidence.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / cwd / description
      Previous value: -"Workspace folder for a new session"New value: +"Workspace folder for a new session; leave out to use the folder this conversation works in"
    • removedInput schema / properties / mode / default
      Removed value: -"followup"
    • changedInput schema / properties / mode / description
      Previous value: -"followup queues after the current turn (default); steer injects into a running turn"New value: +"followup queues after the current turn; steer injects into a running turn. Omit to follow Harness's busy-send setting"
    • addedInput schema / properties / model
      Added value: +{
      +  "description": "Only when the user names a model for this run (e.g. \"DeepSeek-V4 Pro\", \"v4-pro\"); leave out otherwise and the session uses its own model, or Harness's default model for a new session. Matched against Harness's model list ignoring case, spaces, hyphens and a leading DeepSeek; a name that matches no model or several fails the send with the list (provider/model picks one). Sets this session only; Harness's default model is left as it was",
      +  "type": "string"
      +}
    • addedInput schema / properties / reasoning_effort
      Added value: +{
      +  "description": "Only when the user names a reasoning effort, e.g. high; one of the efforts dsh_list_models shows for the model",
      +  "type": "string"
      +}
  6. First observedv0.5.4

TDQS

A4.3/5.0
Behavior3/5

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

The annotations only declare it is not read-only and not idempotent; the description adds real substance on top of that: the call is non-blocking with a run_id and a wait hint, a busy session is never reused so parallel sends each get their own, message arrives verbatim, and Harness cannot see this conversation. Those are genuine behavioral facts an agent needs, though the text does not cover failure modes beyond the model-match failure or the lifetime of a run.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The action and return shape are front-loaded, but the body is a dense block of semicolon-chained clauses with nested parentheticals that is hard to scan. Most sentences carry real information, yet a short bulleted split for session selection, message authoring, and parallelism would preserve the content with far less parsing cost.

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?

There is no output schema, and the description compensates by naming what comes back (run_id, the wait hint, continued_session, new_session) plus the checks evidence returned at run end. Given ten parameters and implicit session state, the definition supplies everything needed to call it correctly the first time.

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 each parameter is already documented individually; the description's added value is the interaction rules the schema cannot express, notably how cwd/workspace_id/session_id/new_session resolve to a session and that a new cwd is registered first. It also explains the /goal convention on message that no individual parameter description carries.

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 opening states a specific verb and resource ('Hand a task to DeepSeek Harness, or continue a session') and immediately gives the return contract ('returns at once with a run_id and a hint'). It also pre-empts the obvious sibling confusion by saying 'no need to list anything first', so an agent can separate it from dsh_list_sessions/dsh_wait without opening a schema.

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 spells out the selection rules in detail: session_id continues a session, new_session is reserved for unrelated work, an idle Harness session in the folder is reused while a busy one is never reused, and mode followup vs steer is tied to a running turn. It also routes a large task into parallel sends to separate sessions and explains how to wait on them.

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