Skip to main content
Glama

invoke_sessions_parallel

Fan out multiple tasks across isolated AI sessions in parallel, each with a fresh context window and model tier, to expand effective context capacity while keeping the main session clean.

Instructions

Fan out multiple tasks across separate isolated AI sessions in parallel, each with its own fresh context window and custom model/tier ("fast", "balanced", "heavy"). Multiplies effective context window capacity while keeping the main session clean.

Input Schema

NameRequiredDescriptionDefault
sessionsYesList of isolated sessions to spin up concurrently
await_allNoIf true (default), awaits all parallel sessions and returns their distilled responses together. If false, runs all in background.
parent_session_idNoCalling parent session IDparent-session

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It does disclose isolation and fresh context windows, but says nothing about cost/concurrency limits, what happens if one session fails, whether spawned sessions persist and can use tools unattended, or the difference in return behavior between await_all true/false beyond what the schema states.

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?

Two dense sentences with the core capability front-loaded and no filler. The closing clause about multiplying context capacity is slightly promotional but still conveys a real benefit.

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?

For a session-spawning tool with no annotations and no output schema, the description covers the 'what' but omits failure semantics, resource cost, and what the caller receives when await_all is false. Adequate to select the tool, insufficient to predict its behavior under partial failure.

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 schema already documents every field including tier enums and await_all semantics. The description only restates the tier values ('fast', 'balanced', 'heavy') and adds nothing about await_all, parent_session_id, or the goal/initial_message aliasing.

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?

States a specific verb and resource: fan out multiple tasks across isolated AI sessions in parallel, with fresh context and model tiers. It is clear what the tool does, but it never names the obvious sibling invoke_session (singular) or explains how it differs from start_swarm / run_pipeline, so differentiation is left to inference.

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 phrase 'fan out multiple tasks' implies the multi-task case, but there is no explicit when-to-use versus invoke_session, start_swarm, or run_pipeline, and no guidance on when parallelism is a bad idea (e.g., dependent tasks, shared workspace conflicts).

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