Skip to main content
Glama

start_task

Launch a detached BoteX task and immediately return a task_id so you can poll progress and retrieve structured results.

Instructions

Start a detached BoteX task and return its task_id immediately.

Runs the same engine as run_subagent, but returns instantly with a task_id for polling via get_task_status. Concurrency is bounded by engine.max_concurrent_tasks and the queue by engine.max_queued_tasks — a full queue returns status TOO_MANY_QUEUED.

The capability/limits arguments are identical to run_subagent — same contracts, same pre-authorization semantics:

  • mode: capability preset — 'readonly' (read tools only; the contract is an analysis report), 'edit' (read + write; default), 'destructive' (+ delete/move), 'full' (+ run_command). Empty = engine.default_mode.

  • allow_destructive / allow_exec / allow_net widen ordinary presets, never narrow them. 'readonly' and 'chat' are hard read-only modes and cannot gain local writes, destructive operations, or command execution. allow_exec additionally requires exec.enabled=true in the config. None of these is a sandbox: grant them only with the user's consent.

  • output_path makes the contract file_output: DONE requires the file to exist, be non-empty, and pass the syntax gate (mutating mode).

  • verify_command is an allowlisted command that must pass before DONE is accepted — it runs even when the task made no writes. Requires exec authorization.

  • recipe: Optional operational persona / workflow prompt (e.g. 'planner', 'code-explorer', 'reviewer', 'security-reviewer', 'build-resolver', 'tdd').

  • max_turns / max_tokens / max_duration_s / budget_limit_usd: 0 (negative for budget) = config value; a non-positive max_turns is clamped to 1.

  • net_allowed_hosts / net_allowed_urls narrow or replace the net scope per run according to net.policy (see run_subagent).

  • allow_non_zdr: per-run consent to relax Zero Data Retention — needed for free (:free) models whose endpoints may log or train on prompts. Same semantics as in run_subagent.

  • approval_policy: Operator approval policy for risky operations: 'none', 'high_risk', 'mutations', or 'all_risky'.

Returns: {"task_id": str, "status": "QUEUED"} — poll with get_task_status. The finished task's result_data carries the full engine result (status, failure_kind, ok, files_touched, exec_ran, rollback_verified, attempts[], cost_usd, ...).

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": "start_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
taskYes
filesNo
modelNo
originNo
recipeNo
api_keyNo
profileNo
providerNo
allow_netNo
max_turnsNo
allow_execNo
max_tokensNo
output_pathNo
allow_non_zdrNo
workspace_dirNo
max_duration_sNo
verify_commandNo
approval_policyNo
budget_limit_usdNo
net_allowed_urlsNo
allow_destructiveNo
net_allowed_hostsNo
allow_expensive_modelNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.1.0
    • addedInput schema / properties / allow_expensive_model
      Added value: +{
      +  "default": false,
      +  "title": "Allow Expensive Model",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / approval_policy
      Added value: +{
      +  "default": "",
      +  "title": "Approval Policy",
      +  "type": "string"
      +}
    • addedInput schema / properties / origin
      Added value: +{
      +  "default": "",
      +  "title": "Origin",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv1.1.1
    • changedInput schema / properties / workspace_dir / default
      Previous value: -"."New value: +""
  3. Changed1 schema field changedv1.0.1
    • addedInput schema / properties / allow_non_zdr
      Added value: +{
      +  "default": false,
      +  "title": "Allow Non Zdr",
      +  "type": "boolean"
      +}
  4. First observedv1.0.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: detached execution plus polling, concurrency and queue limits with the specific error, 'none of these is a sandbox' security framing, the rule that allow_* flags widen but never narrow presets, the hard read-only property of 'readonly'/'chat', the config prerequisite for allow_exec, and the ZDR consent requirement. That is genuine behavior beyond the schema.

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?

Front-loaded and bullet-structured, which helps at this length, but the body is long and repeatedly defers to run_subagent ('same contracts', 'see run_subagent', 'same semantics'), forcing the agent to hold knowledge of a second tool. It also mentions a 'chat' mode that is not in the schema, and the nested explanation of mode presets is more verbose than needed.

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

Completeness3/5

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

Returns are covered by a real output schema, so the description's return section is a bonus rather than a requirement. For a 24-parameter tool with zero schema coverage, though, it leaves the required 'task' parameter, file targeting, workspace_dir, and model/provider/profile selection completely undocumented in either location.

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 0% across 24 params, so the description must compensate and mostly does: it defines mode presets, the three allow_* widening flags, output_path's contract implications, verify_command's allowlist and always-run behavior, recipe personas, the four budget knobs including the clamping rule and the -1 sentinel, net scoping, allow_non_zdr and approval_policy values. Unaddressed are some high-traffic params, notably the required 'task', plus files, model, provider, profile, workspace_dir, origin, api_key and allow_expensive_model.

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?

Opens with a specific verb and resource: 'Start a detached BoteX task and return its task_id immediately.' It explicitly distinguishes itself from the sibling run_subagent ('same engine ... but returns instantly') and names get_task_status as the follow-up.

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?

Clear routing signal: this is the non-blocking variant of run_subagent, and polling goes through get_task_status. The queue-full condition returning TOO_MANY_QUEUED tells the agent what failure to expect. It never states the inverse case ('use run_subagent when you want to wait for the result inline'), which leaves a small inference gap.

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