Skip to main content
Glama

Get or create agent

create_agent
Idempotent

Create or get a named cloud agent with persistent disk, tools, and memory for accumulating projects. Reusing a name returns the existing agent, letting you reconnect to ongoing work.

Instructions

Get or create an agent by name: a cloud computer 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 plan limits (agent count, model tier); model is ignored when an existing agent is returned (use set_agent_model to change it).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe agent's name. Reusing a previous name returns that existing agent.
modelNoOptional 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.
Behavior5/5

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

The description goes well beyond the annotations by explaining the idempotent behavior in practice: it returns an existing agent marked 'existing': true instead of creating a duplicate. It also discloses plan limits affecting creation and the fact that model is ignored when an existing agent is returned, adding critical behavioral context not inferable from annotations.

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?

The description is longer than the minimal ideal but each sentence earns its place: it front-loads the core purpose, then covers usage guidance, idempotency, plan limits, and model behavior. It is well-structured and free of fluff, though slightly verbose compared to the two-sentence standard.

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 a tool with no output schema, the description thoroughly explains the return behavior (the 'existing': true flag), plan constraints, and when to use this tool. It also handles edge cases like reconnecting to an existing agent, making it complete enough for an agent to invoke correctly.

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?

Since the schema already covers both parameters with 100% description coverage, the description does not need to repeat them. However, it adds a key semantic detail not in the schema: 'model is ignored when an existing agent is returned' and suggests using set_agent_model to change it. This enriches parameter understanding beyond the schema.

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 clearly states the tool's purpose with a specific verb+resource: 'Get or create an agent by name: a cloud computer...' It also distinguishes itself from siblings like get_agent by explaining the get-or-create semantics and mentioning 'instead of a duplicate.' This makes the tool's unique role unambiguous.

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?

The description gives explicit when-to-use and when-not-to-use guidance: 'Create one when the work should accumulate somewhere the user can return to...' and 'You do not need one for a question you can answer yourself or for a one-off script...' It also names an alternative for model changes ('use set_agent_model to change it'), providing clear direction against alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/plori-ai/plori'

If you have feedback or need assistance with the MCP directory API, please join our Discord server