Skip to main content
Glama

create_subgoal_task

Creates a subgoal within a goal session and atomically launches a linked task, with support for dependencies on other subgoals.

Instructions

v0.8.0: Create a subgoal within a Goal Session and immediately launch an associated task. Atomically: addSubgoal → create_task → linkTask → mark subgoal running. The subgoal depends_on other subgoals (by id) which must be accepted before suggest_next_subgoal returns it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
goalNoTask goal when template is supplied.
agentNoAgent name.
scopeNoAllowed file/directory scope.
goal_idYesGoal ID to add the subgoal to.
plan_idNoPlan ID from save_plan. One of plan_id/inline_plan/template+goal is required.
templateNoBuilt-in task template. Use with goal.
forbiddenNoForbidden file/directory paths.
repo_pathYesRepository path inside workspaceRoot.
depends_onNoSubgoal IDs this subgoal depends on. Dependencies must be accepted before this subgoal is suggested.
plan_titleNoOptional title for inline_plan.
inline_planNoInline Markdown plan.
test_commandNoVerification command.
verificationNoAcceptance verification commands.
done_evidenceNoRequired done evidence files.
subgoal_titleYesTitle of the new subgoal.
timeout_secondsNoTask timeout in seconds.
verify_commandsNoAdditional verification commands.
isolate_worktreeNov1.0.0: If true (default), create the task in an isolated git worktree under _workspacetrees/. Set false to run in the main workspace (v0.8.0 behavior).
Behavior4/5

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

With no annotations, the description provides good behavioral transparency by detailing the atomic sequence (addSubgoal → create_task → linkTask → mark subgoal running) and the dependency constraint. This goes beyond the input schema.

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?

The description is extremely concise with two sentences. The first sentence sets purpose and atomicity, the second explains dependencies. No wasted words.

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?

Given the complexity (18 parameters, atomic operation) and no output schema, the description adequately explains the operation sequence and dependency condition. However, it does not mention what the tool returns (e.g., subgoal ID), which would be helpful.

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 the baseline is 3. The description does not add per-parameter details but provides overall context for the atomic operation. It adds value but not significantly beyond the schema.

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 description clearly states it creates a subgoal within a Goal Session and immediately launches an associated task. It distinguishes from sibling tools like create_task or accept_subgoal by highlighting the atomic combined operation and dependency handling.

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?

The description implies when to use this tool (to create a subgoal with a task atomically) and mentions dependency requirements. It does not explicitly state when not to use it or list alternatives, but the context is clear.

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