Skip to main content
Glama

Create instance

create_instance

Create (deploy) a new AgentsPodium instance. Returns the instance id and, when enableA2A is true, the a2aUrl and a2aToken the caller should keep. After creating, poll get_instance_health until it is serving, then call set_llm_key to give it a working LLM key. To deploy an app your agent built, set engine to "app" and pass the app object (repo, and outputDir and/or startCommand): the repository is cloned and built INSIDE the pod, so the plan is also the build machine (tier small or larger), a static build is served over HTTPS at endpointUrl, a startCommand runs as a long-running process that is restarted if it exits, /data is a persistent disk that survives rebuilds, and only linux/amd64 is supported. Put secrets in app.env (values come back masked) and private-repo tokens in app.repoToken. For an app, no persona, chat or LLM key is involved: poll get_app_build instead of get_instance_health.

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": {
      "tier": "<tier>"
    },
    "name": "create_instance"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNoWhat to deploy. Required when engine is app, refused for every other engine. The repository is cloned, built and run inside the pod; set outputDir, startCommand, or both.
nameNoDisplay name for the instance. For engine app it defaults to the repository name.
tierYesHosting plan controlling RAM/CPU/disk. See list_platforms for prices.
modelNoDefault LLM model id for the engine.
domainNoCustomer-owned domain to serve the instance from.
engineNoRuntime engine id (e.g. hermes, openclaw, n8n, app). See list_platforms for what's available. Use app to deploy a git repository: then the app object is required.hermes
channelsNoChannels to enable (web, telegram, ...).
enableA2ANoTurn on the A2A toolset and issue an a2aUrl/a2aToken for this instance.
extraSoulNoExtra system-prompt instructions appended to the persona.
personaIdNoPersona/template id; defaults to the general-purpose persona (personal-assistant). Not needed for engine app.
webhookUrlNoPublic http(s) URL to receive signed pod events (agent.running, agent.stopped, agent.failed, agent.deleted, payment.confirmed, deletion.warning) instead of polling. The signing secret comes back once as webhookSecret.

Output Schema

NameRequiredDescriptionDefault
idYesNewly created instance id.
nextYesSuggested next step for the caller.
a2aUrlYesA2A endpoint, or null if A2A was not enabled.
statusYesInitial lifecycle status.
a2aTokenYesA2A bearer token to keep, or null if A2A was not enabled.
endpointUrlYesPublic HTTPS endpoint, or null until assigned.
webhookSecretYesHMAC key for webhook signatures when webhookUrl was given (shown once), else null.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / app
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "What to deploy. Required when engine is app, refused for every other engine. The repository is cloned, built and run inside the pod; set outputDir, startCommand, or both.",
      +  "properties": {
      +    "apiPrefix": {
      +      "description": "Requests under this path go to the backend; everything else is served from outputDir. Defaults to /api.",
      +      "maxLength": 100,
      +      "type": "string"
      +    },
      +    "appPort": {
      +      "description": "Port the backend listens on inside the pod, 1024-65535. Defaults to 3000.",
      +      "maximum": 65535,
      +      "minimum": 1024,
      +      "type": "integer"
      +    },
      +    "branch": {
      +      "description": "Branch to build and deploy. Defaults to main.",
      +      "maxLength": 100,
      +      "type": "string"
      +    },
      +    "buildCommand": {
      +      "anyOf": [
      +        {
      +          "maxLength": 500,
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Runs once per deploy, inside the pod, from rootDir (e.g. 'npm ci && npm run build'). Omit for the default of the detected runtime."
      +    },
      +    "env": {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "description": "Environment variables for the app (at most 50; names like [A-Za-z_][A-Za-z0-9_]*). Put secrets here. Values are stored as-is but come back masked (***abcd) on every read; a value sent back in that masked form means 'keep the stored one'.",
      +      "type": "object"
      +    },
      +    "outputDir": {
      +      "anyOf": [
      +        {
      +          "maxLength": 200,
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Folder with the static build output, relative to rootDir (e.g. dist), served by nginx. Set this, startCommand, or both."
      +    },
      +    "repo": {
      +      "description": "https git URL of the repository to deploy, e.g. https://github.com/owner/project. SSH remotes and URLs with credentials are refused; use repoToken for a private repository.",
      +      "maxLength": 300,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "repoToken": {
      +      "anyOf": [
      +        {
      +          "maxLength": 500,
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Access token for a private repository. Stored encrypted and never returned. Use a token scoped to that one repository."
      +    },
      +    "repoUser": {
      +      "anyOf": [
      +        {
      +          "maxLength": 100,
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Username to pair with repoToken. Usually omit it: the pod picks the form the git host expects (GitHub x-access-token, GitLab oauth2, ...)."
      +    },
      +    "rootDir": {
      +      "anyOf": [
      +        {
      +          "maxLength": 200,
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Directory inside the repository where the build runs (a monorepo's app folder). Relative path, no leading / and no ..; omit for the repository root."
      +    },
      +    "runtime": {
      +      "anyOf": [
      +        {
      +          "enum": [
      +            "node",
      +            "python",
      +            "go",
      +            "static",
      +            "docker"
      +          ],
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "node, python, go, static or docker. Omit to let the pod detect it from the repository (node and static output are the proven paths)."
      +    },
      +    "startCommand": {
      +      "anyOf": [
      +        {
      +          "maxLength": 500,
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Long-running backend process (e.g. 'node server/index.js'); restarted if it exits. It must listen on appPort. Set this, outputDir, or both."
      +    }
      +  },
      +  "required": [
      +    "repo"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / properties / engine / description
      Previous value: -"Runtime engine id (e.g. hermes, openclaw, n8n). See list_platforms for what's available."New value: +"Runtime engine id (e.g. hermes, openclaw, n8n, app). See list_platforms for what's available. Use app to deploy a git repository: then the app object is required."
    • changedInput schema / properties / name / description
      Previous value: -"Display name for the instance."New value: +"Display name for the instance. For engine app it defaults to the repository name."
    • removedInput schema / properties / personaId / default
      Removed value: -"personal-assistant"
    • changedInput schema / properties / personaId / description
      Previous value: -"Persona/template id from list_platforms; defaults to the general-purpose persona."New value: +"Persona/template id; defaults to the general-purpose persona (personal-assistant). Not needed for engine app."
  2. Changed3 schema fields changed
    • addedInput schema / properties / webhookUrl
      Added value: +{
      +  "description": "Public http(s) URL to receive signed pod events (agent.running, agent.stopped, agent.failed, agent.deleted, payment.confirmed, deletion.warning) instead of polling. The signing secret comes back once as webhookSecret.",
      +  "maxLength": 500,
      +  "type": "string"
      +}
    • addedOutput schema / properties / webhookSecret
      Added value: +{
      +  "description": "HMAC key for webhook signatures when webhookUrl was given (shown once), else null.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "status",
      -  "endpointUrl",
      -  "a2aUrl",
      -  "a2aToken",
      -  "next"
      -]New value: +[
      +  "id",
      +  "status",
      +  "endpointUrl",
      +  "a2aUrl",
      +  "a2aToken",
      +  "webhookSecret",
      +  "next"
      +]
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "a2aToken": {
      +      "description": "A2A bearer token to keep, or null if A2A was not enabled.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "a2aUrl": {
      +      "description": "A2A endpoint, or null if A2A was not enabled.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "endpointUrl": {
      +      "description": "Public HTTPS endpoint, or null until assigned.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "id": {
      +      "description": "Newly created instance id.",
      +      "type": "string"
      +    },
      +    "next": {
      +      "description": "Suggested next step for the caller.",
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "Initial lifecycle status.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "status",
      +    "endpointUrl",
      +    "a2aUrl",
      +    "a2aToken",
      +    "next"
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Only openWorldHint is annotated, so the description carries the load and does so well: it discloses the returned id, the one-time surfacing of a2aUrl/a2aToken, secrets masked on read, repoToken encrypted and never returned, /data persisting across rebuilds, and the linux/amd64-only constraint. It stops short of describing failure modes or what happens on partial build failure, which keeps it below a 5.

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 and return values, then the app-deploy path; nearly every sentence carries operational information. The app paragraph is a long run-on with many semicolon-joined clauses, which costs it a point on readability but not on substance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter tool with a nested app object, the description covers the full lifecycle (create → poll → set key), the build/runtime model, secret handling and platform limits. With an output schema present it correctly avoids describing return payload shapes in detail.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3; the description earns extra by adding cross-parameter meaning the schema does not state — that engine=app maps to the app object, and that the hosting tier doubles as the build machine (tier small or larger) for in-pod builds. Some detail (env masking, repoToken) merely restates schema text.

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?

Specific verb+resource ("Create (deploy) a new AgentsPodium instance") plus an explicit second mode (engine=app deploys a git repo). It also names the sibling this tool hands off to (get_instance_health vs get_app_build), so an agent can place it precisely in the workflow.

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

Usage Guidelines5/5

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

Gives an explicit post-create sequence (poll get_instance_health until serving, then set_llm_key) and an explicit exception path ("For an app, no persona, chat or LLM key is involved: poll get_app_build instead"). When-to-use and when-not-to-use are both stated.

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.