Skip to main content
Glama

Get or create agent

create_agent
Idempotent

Create or retrieve a named persistent cloud agent with its own disk, tools, and memory for projects, repos, or long jobs that need reusable state. Reuse a name to reconnect.

Instructions

Get or create an agent by name: a persistent cloud environment running plori's agent, with its own disk, tools, and memory. Create one when the work should accumulate somewhere the user can return to: a project with files that build up, a repo to keep checked out, tools to install once and reuse, or a long job to hand off. You do not need one for a question you can answer yourself or for a one-off script with no state worth keeping. If the account already has an agent with this name, that agent is returned (marked "existing": true) instead of a duplicate — safe to call repeatedly, and the right way to reconnect to an agent you used before. Creation is subject to the account's agent-count limit. The Plori Router chooses the model for each task.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe agent's name. Reusing a previous name returns that existing agent.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe Agent's unique identifier; pass it to other tools as agent_id.
urlNoThis Agent's page in the plori web app.
nameYesThe Agent's name, chosen by its owner and unique within the account.
modelYesThe model slug this Agent is configured to use. Empty means no explicit choice, which is not the same as no model — read effective_model for what a run will actually use.
configYesArbitrary JSON owned by the producing engine.
movingNoTrue while this Agent's files are being copied to a new disk; check storage_notice rather than a separate route for the outcome.
statusNoThe live warm-session state: warming, ready, or sleeping; empty when no session is active.
backendYesThe compute backend this Agent runs on.
user_idYesThe identifier of the account that owns this Agent.
deletingNoTrue while this Agent's disk is still being erased; offer no action on it besides retrying the deletion itself.
existingNoWhether create_agent returned an existing same-name agent instead of creating one.
queued_atNoWhen a still-warming attach was accepted; present only while it is queued for node capacity.
created_atYesWhen the Agent was created.
last_run_atNoWhen this Agent last started a run; absent when it has never run.
deleting_sinceNoWhen the deletion was first requested; present only while deleting is true.
storage_noticeNoThe one sentence, if any, telling the owner about a storage move that stopped; show it verbatim, not paraphrased.
effective_modelYesThe model a run on this Agent will actually use. plori-auto means the hosted router chooses per turn.
advisor_max_spend_micro_usdYesOptional maximum advisor-completion spend per turn in micro-US-dollars. Zero disables advisor completions; null leaves no spend cap.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.16.2
    • addedOutput schema / properties / advisor_max_spend_micro_usd
      Added value: +{
      +  "description": "Optional maximum advisor-completion spend per turn in micro-US-dollars. Zero disables advisor completions; null leaves no spend cap.",
      +  "type": [
      +    "null",
      +    "integer"
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "user_id",
      -  "name",
      -  "backend",
      -  "model",
      -  "effective_model",
      -  "config",
      -  "created_at"
      -]New value: +[
      +  "id",
      +  "user_id",
      +  "name",
      +  "backend",
      +  "model",
      +  "advisor_max_spend_micro_usd",
      +  "effective_model",
      +  "config",
      +  "created_at"
      +]
  2. Changed2 schema fields changedv0.16.0
    • removedInput schema / properties / model
      Removed value: -{
      -  "description": "Optional model slug; omitted uses the Plori Router, which picks the cheapest model that fits each task from the pool the account's plan unlocks. An explicit frontier model still requires a paid plan.",
      -  "type": "string"
      -}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "backend": {
      +      "description": "The compute backend this Agent runs on.",
      +      "type": "string"
      +    },
      +    "config": {
      +      "description": "Arbitrary JSON owned by the producing engine."
      +    },
      +    "created_at": {
      +      "description": "When the Agent was created.",
      +      "type": "string"
      +    },
      +    "deleting": {
      +      "description": "True while this Agent's disk is still being erased; offer no action on it besides retrying the deletion itself.",
      +      "type": "boolean"
      +    },
      +    "deleting_since": {
      +      "description": "When the deletion was first requested; present only while deleting is true.",
      +      "type": [
      +        "null",
      +        "string"
      +      ]
      +    },
      +    "effective_model": {
      +      "description": "The model a run on this Agent will actually use. plori-auto means the hosted router chooses per turn.",
      +      "type": "string"
      +    },
      +    "existing": {
      +      "description": "Whether create_agent returned an existing same-name agent instead of creating one.",
      +      "type": "boolean"
      +    },
      +    "id": {
      +      "description": "The Agent's unique identifier; pass it to other tools as agent_id.",
      +      "type": "string"
      +    },
      +    "last_run_at": {
      +      "description": "When this Agent last started a run; absent when it has never run.",
      +      "type": [
      +        "null",
      +        "string"
      +      ]
      +    },
      +    "model": {
      +      "description": "The model slug this Agent is configured to use. Empty means no explicit choice, which is not the same as no model — read effective_model for what a run will actually use.",
      +      "type": "string"
      +    },
      +    "moving": {
      +      "description": "True while this Agent's files are being copied to a new disk; check storage_notice rather than a separate route for the outcome.",
      +      "type": "boolean"
      +    },
      +    "name": {
      +      "description": "The Agent's name, chosen by its owner and unique within the account.",
      +      "type": "string"
      +    },
      +    "queued_at": {
      +      "description": "When a still-warming attach was accepted; present only while it is queued for node capacity.",
      +      "type": [
      +        "null",
      +        "string"
      +      ]
      +    },
      +    "status": {
      +      "description": "The live warm-session state: warming, ready, or sleeping; empty when no session is active.",
      +      "type": "string"
      +    },
      +    "storage_notice": {
      +      "description": "The one sentence, if any, telling the owner about a storage move that stopped; show it verbatim, not paraphrased.",
      +      "type": "string"
      +    },
      +    "url": {
      +      "description": "This Agent's page in the plori web app.",
      +      "type": "string"
      +    },
      +    "user_id": {
      +      "description": "The identifier of the account that owns this Agent.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "user_id",
      +    "name",
      +    "backend",
      +    "model",
      +    "effective_model",
      +    "config",
      +    "created_at"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changedv0.7.0
    • changedInput schema / properties / model / description
      Previous value: -"Optional model slug; omitted uses Auto, the plan-scaled default whose quality follows the account's plan. An explicit frontier model requires a paid plan."New value: +"Optional model slug; omitted uses the Plori Router, which picks the cheapest model that fits each task from the pool the account's plan unlocks. An explicit frontier model still requires a paid plan."
  4. Changed1 schema field changedv0.3.0
    • changedInput schema / properties / model / description
      Previous value: -"Optional model slug; omitted uses the account's tier default. Frontier models require a paid plan."New value: +"Optional model slug; omitted uses Auto, the plan-scaled default whose quality follows the account's plan. An explicit frontier model requires a paid plan."
  5. Changed1 schema field changedv0.1.1
    • changedInput schema / properties / name / description
      Previous value: -"A human-readable name for the agent."New value: +"The agent's name. Reusing a previous name returns that existing agent."
  6. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

The description adds substantial behavioral context beyond the annotations: it explains the agent's persistent state (disk, tools, memory), that repeated calls are safe and return the existing agent marked with 'existing': true, and that creation is subject to the account's agent-count limit. It also notes that the Plori Router chooses the model per task.

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?

The description is front-loaded with the core definition, then proceeds through creation criteria, exclusions, idempotency behavior, quota limits, and model routing. Every sentence contributes actionable context, and there is no filler or repetition.

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?

Given the single parameter, full schema coverage, the presence of an output schema, and annotations that cover safety hints, the description is complete. It explains when to create or reconnect, idempotent behavior, quota constraints, and model routing, leaving no material gaps for correct invocation.

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?

With one parameter and 100% schema description coverage, the schema already documents that 'name' identifies the agent and that reusing a previous name returns the existing agent. The description repeats this semantic without adding format or constraint details beyond what the schema provides, so the baseline of 3 applies.

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?

The description opens with a precise verb and resource: 'Get or create an agent by name', and immediately defines the agent as a persistent cloud environment with disk, tools, and memory. It clarifies that the operation is idempotent and returns an existing agent instead of duplicating, making it distinguishable from pure creation or listing tools.

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?

It gives explicit when-to-use conditions ('a project with files that build up, a repo to keep checked out, tools to install once and reuse, or a long job to hand off') and when-not conditions ('a question you can answer yourself or for a one-off script with no state worth keeping'). It does not name a specific sibling tool as an alternative, but the selection context is clear.

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