Skip to main content
Glama

dispatch

Delegates independent tasks to a chosen provider agent, sends only approved materials, and returns results to the original conversation.

Instructions

按用户指定或候选能力委派独立工作,只发送获准分享的材料。同类走调用方的原生子代理。Codex 只可选服务已批准的权限组合,省略用原生默认。默认 Kimi yolo、DSH auto-approve。constraints 限 DSH,reasoning_effort 供 DSH/Codex。

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": {
      "provider": "<provider>",
      "workspace": "<workspace>",
      "instruction": "<instruction>",
      "request_key": "<request_key>"
    },
    "name": "dispatch"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNo
modelNo
contextNo
providerYes
workspaceYes
constraintsNo
instructionYes
permissionsNo
request_keyYes
reasoning_effortNo
progress_interval_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.5
    • addedInput schema / properties / label
      Added value: +{
      +  "maxLength": 40,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / permissions
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "approval_policy": {
      +      "enum": [
      +        "untrusted",
      +        "on-request",
      +        "never",
      +        "native"
      +      ]
      +    },
      +    "sandbox": {
      +      "enum": [
      +        "read-only",
      +        "workspace-write",
      +        "danger-full-access",
      +        "native"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / progress_interval_seconds
      Added value: +{
      +  "minimum": 300,
      +  "type": "integer"
      +}
  2. First observedv0.2.4

TDQS

B3.2/5.0
Behavior4/5

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

Annotations only declare destructiveHint=false, so the description carries most of the burden and it does add real behavior: materials not approved for sharing are never sent, Codex permissions are constrained to approved combinations with native defaults on omission, and the default autonomy levels (Kimi yolo, DSH auto-approve) are disclosed. It still omits whether dispatch is blocking or returns a handle, and what happens if the provider rejects the request.

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?

Purpose is front-loaded and there is little filler, but the provider-rule sentences are telegraphic, dropping subjects and using unexplained jargon ('yolo', 'auto-approve') that an agent must guess at. Four terse clauses about provider defaults could be consolidated into one clearer statement.

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

Completeness2/5

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

With 11 parameters, a nested permissions object, no output schema and only a single weak annotation, the description should explain the dispatch lifecycle, what request_key is for, and how delegated work is later retrieved via result/status/wait. None of that is covered, so an agent knows the intent but not how to invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 11 parameters, including a nested permissions object, so the description must compensate and only partly does. It clarifies constraints (DSH-only) and reasoning_effort (DSH/Codex) and touches permissions, but label, context, workspace, request_key and progress_interval_seconds get no explanation at all, leaving half the surface undefined.

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 opens with a specific verb+resource: delegate independent work on behalf of the user to a chosen provider, restricted to material approved for sharing. Naming Kimi, DSH and Codex later makes the external-delegation scope recognizable and separable from siblings like steer/followup. It never states the tool's role in the async task lifecycle, so differentiation is not complete.

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

Usage Guidelines3/5

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

One genuine exclusion is given: same-kind work should go to the caller's native sub-agent rather than here, and Codex must use service-approved permission combinations. However there is no guidance on when to choose dispatch over tasks/steer/followup/result, and no stated prerequisites or follow-up flow once work is delegated.

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