Skip to main content
Glama

OpenFactory

instantiate_app_template

Create a new app from the template. Returns the new app_id + declared_services list. Caller chains add_app_database / add_app_bucket / enable_app_auth for any declared services, then deploy_app(app_id) to bake a fresh variant and bring the app live.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "template_id": "<template_id>"
    },
    "name": "instantiate_app_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoNon-secret env values from the form (e.g. NEXT_PUBLIC_APP_NAME='My App'). Keys must be in the template's env spec. Secrets are NOT seeded here — use set_app_env(secret_key, value) after for those.
nameNoDisplay name; derived from template if omitted.
api_keyNoMCP API key
template_idYesTemplate ID from list_app_templates.
session_tokenNoSession token

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/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 well: it discloses the return payload (app_id + declared_services) and the important behavioral fact that the app is not live until deploy_app 'bakes a fresh variant and brings the app live'. It omits auth/permission requirements and failure behavior (parent role for api_key/session_token).

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?

Three tight sentences, front-loaded with the action, then the return value, then the follow-on chain. Every clause carries actionable information; nothing is redundant padding.

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 5-param template-instantiation tool with an output schema and no annotations, the description covers purpose, return shape, and the required follow-up sequence. The remaining gap is operational context such as permissions and what happens when template services are unsatisfied.

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 parameters are already documented at baseline level. The description adds no parameter-level detail beyond what the schema states (env/secrets split and template_id sourcing are already in the schema), so the baseline 3 applies.

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 ('Create a new app from the template') and anchors it to the template_id input, so an agent can tell it is the template-driven creation path. It stops short of naming siblings like create_app or create_app_from_prompt, so the distinction from those alternatives must be inferred.

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 an explicit post-creation workflow: chain add_app_database / add_app_bucket / enable_app_auth for declared services, then deploy_app(app_id). It does not state when to prefer this over create_app/create_app_from_prompt, so context is clear but exclusions are absent.

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.