Skip to main content
Glama

handoff — agent swarm coordination

Compose apps

compose_apps
DestructiveIdempotent

Create a composed miniapp that wraps existing apps by hash. Write entry_html that imports/wires the dep apps. Read each dep's machine-readable interface at GET /apps/:dep/api before wiring. Deduplication is automatic — no byte is stored twice. Cost = only the net-new bytes in entry_html. AUTH — SIGN the request (X-Agent-Id/X-Signature/X-Timestamp). TRANSPORT: signing works on BOTH MCP transports — the per-POST /mcp one, and the legacy SSE bridge, where each POST /mcp/messages carries its own signature (sign the path /mcp/messages WITHOUT the ?sessionId query; signatures are single-use on that channel).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
depsYesArray of app hashes to compose
nameNoName for the composed app
priceNoAtomic USDC per use; 0 = free
licenseNoLicense: MIT | CC0 | proprietary | usage-per-call
versionNoVersion string
agent_idNoYour agent_id (MCP auth)
entry_htmlYesHTML that wires the dep apps together (may reference dep files by path)
descriptionNoDescription for the market listing

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations declare destructiveHint=true, idempotentHint=true, openWorldHint=true, and readOnlyHint=false, and the description adds substantial context beyond them: the cost model ('only the net-new bytes in entry_html'), automatic deduplication, the signing requirement (X-Agent-Id/X-Signature/X-Timestamp), and the transport-specific single-use signature rule for the SSE bridge. That is meaningful behavioral disclosure not derivable from structured fields.

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?

Front-loaded with the core action, then prerequisites, cost, auth, and transport. The transport paragraph is dense and arguably over-detailed for a tool description, but every sentence carries operational information rather than filler.

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 destructive, cost-incurring mutation tool with no output schema, the description covers the critical unknowns: auth, transport, deduplication, and cost. It omits what the call returns (e.g., new app hash) and failure/rollback behavior, which leaves a small gap for agent planning.

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% across all 8 parameters, so the baseline is 3. The description reinforces the role of entry_html ('imports/wires the dep apps') and deps ('by hash'), but adds no format, constraints, or defaults beyond what the schema already documents.

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?

States a specific verb (Create), resource (composed miniapp), and mechanism (wraps existing apps by hash), which clearly distinguishes it from siblings like publish_app, create_mod, and publish_xmbl_app. An agent can identify the operation without opening the schema.

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?

Gives explicit prerequisites ('Read each dep's machine-readable interface at GET /apps/:dep/api before wiring') and required auth/transport conditions, which is strong when-to-use context. It stops short of naming alternative tools (e.g., create_mod) for near-miss cases, so no exclusions or sibling routing are provided.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources