Skip to main content
Glama

Build a plan and point to the repo generator

onchain_agent_scaffold_plan
Read-onlyIdempotent

USE WHEN a plan has been agreed and the next question is which repository to start from. Builds the plan (same brain as onchain_agent_build_plan) and returns it with a create pointer to onchain_agent_create_agent, which generates the runnable repo from a nightly-checked template. This tool no longer writes repository files: every door (this server, POST /api/create, the CLI and the Agent Architect) downloads the same repo from the same engine.

WHAT COMES BACK: the plan summary (goal, intent, chain, plan_url, checked_at, stack slugs), the environment names the stack's own deploy specs ask for, any documented install that pipes a remote script into a shell (quarantined_installs, to read before running it), and create: the tool name, the CLI command and the template the goal maps to, or null when no template answers it.

KEPT FOR COMPATIBILITY: files is an empty list and bytes is 0; include_zip is accepted and ignored. mode is "plan_only".

RULE ENFORCED: nothing is generated. Every value is a field of the plan. An install line we were not told is never invented.

NON-CUSTODIAL: nothing here holds keys, signs, deploys or moves anything.

Returns (json): { mode: "plan_only", name, files: [], env_names, quarantined_installs, bytes: 0, plan: { goal, intent, chain, plan_url, checked_at, stack_slugs }, caveat, create: { tool, command, template, note } }.

Example: { goal: "a Base trading agent that swaps USDC to ETH on a signal", chain: "Base" }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
goalYesWhat the user wants to build, in plain words. The plan is built and the matching create_agent template is named.
chainNoChain the agent runs on, e.g. 'Base'. When omitted it is read from the goal.
budget_usdNoRough monthly budget in USD. Restated in the plan; it does not filter the stack.
constraintsNoHard constraints to restate back, e.g. 'self-custody only'.
include_zipNoAccepted for compatibility and ignored: this tool is plan-only. The repo comes from onchain_agent_create_agent.
response_formatNoText format; structuredContent is JSON either way.markdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • changedInput schema / properties / response_format / description
      Previous value: -"Output format: 'markdown' (default) or 'json'."New value: +"Text format; structuredContent is JSON either way."
  3. Changed2 schema fields changed
    • changedInput schema / properties / goal / description
      Previous value: -"What the user wants to build, in plain words. The plan is built first, then written into files."New value: +"What the user wants to build, in plain words. The plan is built and the matching create_agent template is named."
    • changedInput schema / properties / include_zip / description
      Previous value: -"True (default) returns the archive base64-encoded alongside the manifest. False returns each file's contents inline instead."New value: +"Accepted for compatibility and ignored: this tool is plan-only. The repo comes from onchain_agent_create_agent."
  4. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.