Skip to main content
Glama

create_task

Create a repo-scoped coding task from a plan or built-in template, with optional pre-assessment for risk evaluation and controlled execution.

Instructions

Create a repo-scoped task from exactly one source. For ChatGPT, prefer the guarded inspect_only, feature_small, or fix_tests template when it fits. A stale watcher preserves the task but returns execution_blocked and directs the client to health_check; otherwise call wait_for_task until terminal. Use execution_mode=assess_only to pre-assess risk and get an assessment_id without creating a task; then invoke the returned next_tool_call using only execution_mode=execute and the full assessment_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
goalNoRequired task goal when template is supplied.
agentNoConfigured local agent name. Available agents: "codex", "opencode". run_task_loop also accepts "auto" for bounded routing.
plan_idNoPlan ID from save_plan
templateNoBuilt-in guarded task template. ChatGPT should prefer inspect_only for diagnosis, feature_small for a scoped change, and fix_tests for known failing verification. Use with goal; rollback_scope_violation also requires source_task_id.
repo_pathNoRequired repository path inside workspaceRoot. No implicit workspace-root fallback is allowed.
plan_titleNoOptional title used when inline_plan is supplied.
inline_planNoInline Markdown plan. It is safety-checked and persisted as an auditable saved plan before task creation.
test_commandNoOptional exact-match verification command. Allowed: "cargo test", "npm run build", "npm run dist", "npm run doctor", "npm run format:check", "npm run lint", "npm run test", "npm test", "pnpm run build", "pnpm run dist", "pnpm run doctor", "pnpm run format:check", "pnpm run lint", "pnpm run test", "pnpm test", "pytest"
assessment_idNoAssessment ID from a prior assess_only call. When provided with execution_mode=execute, task parameters are loaded from the assessment record and locked to it. The full 128-bit ID (32 hex chars) must be provided; short IDs are display-only.
execution_modeNoassess_only: run deterministic risk checks and return an assessment_id without creating a task. execute (default): create and queue the task. When combined with assessment_id, the task parameters are loaded from the assessment record and freshness is revalidated.execute
source_task_idNoRequired source task for rollback_scope_violation review.
timeout_secondsNoTotal task timeout in seconds (default 900, max 3600)
verify_commandsNoRecommended exact-match commands PatchWarden runs independently after the agent exits. Repository-scoped commands are re-authorized after repo_path is resolved.
Behavior4/5

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

With no annotations, the description discloses key behaviors: stale watcher behavior, execution_blocked handling, and the assess_only pre-assessment flow. This adds significant context 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.

Conciseness4/5

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

The description is concise with four dense sentences that front-load the core purpose. Every sentence adds value, though it could be slightly more streamlined.

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?

Given 13 parameters, no output schema, and no annotations, the description covers all critical aspects: purpose, templates, execution modes, and error handling. It is complete for the tool's complexity.

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 coverage is 100%, so baseline is 3. The description adds workflow context (assess_only then execute) but does not deepen understanding of individual parameter meanings beyond the schema.

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 clearly states the tool creates a repo-scoped task from exactly one source, which is specific. However, it does not explicitly distinguish this tool from sibling tools like create_subgoal_task, limiting full clarity.

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?

The description provides guidance on preferring certain templates and using assess_only mode, but it does not contrast with alternatives such as run_task_loop or explain when not to use this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jiezeng2004-design/PatchWarden'

If you have feedback or need assistance with the MCP directory API, please join our Discord server