Skip to main content
Glama

recursive_agent_execute

Executes an objective recursively by spawning bounded subagents, enforcing resource and context limits, and managing delegation within a finite rollout.

Instructions

Run a true recursive Lightbulb agent with bounded subagents and REPL work.

This is distinct from legacy RLM context chunking. Child and grandchild agents inherit tenant/company/project/workspace authority and receive a disjoint finite rollout allocation. root_budget_fraction reserves the root's initial share of the tree-wide provider budget. Delegation context is compacted per child and also capped across the complete tree by the two context-byte settings. Use allowed_agent_ids as a comma-separated allowlist when only specific marketplace/domain workers may be delegated. An approved runtime-authored workspace may be named only by its server-returned runtime_agent.<uuid> reference; Spring rechecks its exact scope and approval before the run.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputsNo{}
max_depthNo
objectiveYes
max_tokensNo
execution_idNo
max_childrenNo
max_cost_usdNo
max_repl_stepsNo
max_total_nodesNo
allowed_agent_idsNo
max_runtime_secondsNo
root_budget_fractionNo
child_budget_fractionNo
max_delegation_context_bytesNo
max_total_delegation_context_bytesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv0.1.1

TDQS

A3.7/5.0
Behavior4/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 substantial work: it discloses authority inheritance (tenant/company/project/workspace), disjoint rollout allocation, root vs. child budget fraction semantics, per-child compaction plus tree-wide context-byte caps, the allowlist mechanism, and Spring's re-check of runtime workspace scope and approval. This is rich governance context beyond anything the schema exposes, though it stops short of describing what happens on budget exhaustion or whether execution is asynchronous.

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 front-loaded with the action sentence and every subsequent sentence earns its place by explaining governance semantics. It is dense (~130 words) but not padded. It loses a point for reliance on unexplained jargon ('disjoint finite rollout allocation', 'RLM context chunking', 'provider budget') that an agent may not decode on first read.

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?

For a high-complexity tool with 15 parameters and zero annotations, the description covers the hardest dimensions well: authority inheritance, budget reservation, delegation context caps, allowlist restriction, and workspace approval revalidation. The output schema covers return values. Gaps remain around the execution lifecycle (how execution_id is obtained, status/cancel companion tools) and what 'REPL work' concretely entails, but the core correctness-critical semantics are present.

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 0%, so the description must compensate. It adds real meaning for some of the most opaque parameters: root_budget_fraction (root's initial share of the tree-wide provider budget), allowed_agent_ids (comma-separated allowlist semantics), and the two context-byte settings (per-child compaction and tree-wide cap). But most of the 15 parameters (execution_id, inputs format, max_total_nodes, max_children, max_repl_steps) receive no semantic explanation beyond their names.

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 opening sentence states a specific verb and resource: 'Run a true recursive Lightbulb agent with bounded subagents and REPL work.' It also distinguishes the approach from 'legacy RLM context chunking,' which helps an agent understand this is genuinely recursive execution rather than a chunking wrapper. It falls short of 5 because it never names the sibling execution tools (backbone_execute, dispatch_domain_agent) it should be compared against.

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 gives some contextual signals, notably 'This is distinct from legacy RLM context chunking' and a conditional hint for allowed_agent_ids ('when only specific marketplace/domain workers may be delegated'). However, there is no explicit when-to-use versus when-not-to-use guidance naming sibling tools, and no mention of the execution lifecycle partners (new_recursive_execution_id before, get_recursive_agent_execution_status after).

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/RPasquale/lightbulb-mcp'

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