Skip to main content
Glama
noosxe
by noosxe

spawn_pi_session

Spawn a new pi coding agent session in a specified workspace directory for secure code execution with customizable risk-based auto-approval policy.

Instructions

Spawn a new pi coding agent session in the specified workspace directory.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdYesThe absolute directory path where the pi agent will execute.
modelNoLLM model name override (e.g. ollama/qwen2.5-coder:7b or anthropic/claude-3-5-sonnet).
sessionIdYesA unique identifier for the session.
riskPolicyNoRisk-based auto-approval policy. Controls which tool calls are auto-approved based on risk level. If not specified, defaults to auto-approve LOW risk and notify on MEDIUM risk.
systemPromptNoCustom system instructions to append/override.
Behavior2/5

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

With no annotations, the description must fully disclose behavioral traits. It only states the spawning action but omits details like potential failures, required permissions, side effects on existing sessions, or what happens if the workspace directory is invalid. This is insufficient for a sensitive operation.

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?

A single, concise sentence with no redundant information. It is front-loaded with the core action and context. No wasted words.

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?

For a tool with 5 parameters, nested objects, and no output schema, the description is too sparse. It does not explain return values, the purpose of riskPolicy, or how the session interacts with other tools. The agent may not understand how to use this tool effectively without additional context.

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?

The input schema covers all 5 parameters with descriptions (100% coverage). The description adds no new semantics beyond refrencing 'cwd', which is already clear in the schema. Baseline score of 3 is appropriate as the schema does the heavy lifting.

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 the action ('Spawn a new pi coding agent session') and the target resource ('in the specified workspace directory'). This distinguishes it from sibling tools like send_pi_command or terminate_pi_session.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives (e.g., when to spawn a new session vs. list or terminate existing ones). The description implies usage contexts but does not provide explicit conditions or exclusions.

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/noosxe/worker-mcp'

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