Skip to main content
Glama

agent

Create, dispatch, and manage persistent project-scoped AI workers: update configs, send async prompts, inspect turn history, and cancel, close, or reopen runs.

Instructions

Manage persistent project-scoped Agents: inspect project overview, create/update configs, dispatch async prompts, inspect turns, and control Agent lifecycle. Call with op=, params={...} (use op='help' for full schema):

  • list(status?, created_by?, include_closed?): Return compact live snapshot of current project's active agents, defaults, presets, and selectable available_mcps.

  • create(name?, preset_id?, model?, system_prompt?, inherit_mcp?, catalog_refs?, mcp_servers?, mcp_server_names?): Create a persistent Agent strictly bound to the current project cwd.

  • update(agent_id, name?, model?, system_prompt?, inherit_mcp?, catalog_refs?, mcp_servers?, mcp_server_names?): Update an idle project Agent's model, prompt, or MCP config.

  • send(agent_id, prompt, interrupt?, wait?, timeout_sec?): Dispatch a prompt asynchronously (default interrupt=true, wait=false) and return turn_id + wait_command.

  • messages(agent_id, session_id?, turn_id?, limit?, include_trace?): Read turn history and optional trace records for a project Agent.

  • cancel(agent_id, reason?): Cancel a project Agent's currently running turn.

  • close(agent_id): Close a project Agent (stops agy process & profile, preserves history).

  • reopen(agent_id): Reopen a closed project Agent (rebuilds isolated profile & marks idle).

  • delete(agent_id): Permanently delete a project Agent, its isolated profile, and history.

  • help(op?): Return single-source parameter specs and examples for agent ops.

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": {
      "op": "<op>"
    },
    "name": "agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes
paramsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations at all, the description carries the full disclosure burden and does reasonably well: it states send's defaults (interrupt=true, wait=false) and return values (turn_id + wait_command), that close stops the process but preserves history, that reopen rebuilds an isolated profile, and that delete is permanent and destroys profile plus history. It omits permissions/authorization requirements, concurrency behavior when a turn is already running, and error/failure modes, which matters for a tool containing destructive operations.

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?

Purpose is front-loaded in one sentence, followed by a clean one-line-per-op dispatch table where every line names a distinct action and its arguments — no filler prose. The bullets are dense but each is load-bearing; minor cost is that the caller must parse a long block to find the op it needs.

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 ten-operation lifecycle tool this covers the essentials: creation scope (bound to project cwd), async dispatch semantics, history inspection, and the full close/reopen/delete lifecycle, and an output schema already exists so return shapes needn't be restated. The remaining gap is cross-tool context — nothing explains how this relates to mcp, hub, or session, leaving the agent to infer when this tool rather than a sibling is appropriate.

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 description coverage is 0% and params is an untyped free-form object, so the schema provides essentially no meaning — the description does the heavy lifting by enumerating each op's parameter names and flagging defaults like interrupt=true and wait=false. It still leaves most individual parameter meanings undefined (what inherit_mcp or catalog_refs actually do) and defers to a separate op='help' call, which prevents a 5.

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?

The opening sentence gives a specific verb and resource ('Manage persistent project-scoped Agents') and the bullet list enumerates every supported sub-operation from list through help, so an agent can see the full surface without opening the schema. It stops short of 5 because it never distinguishes itself from the sibling tools (mcp, hub, session) — 'project-scoped' and 'available_mcps' hint at the boundary but never state it.

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?

Each op carries an implicit when-to-use cue: update is scoped to an 'idle project Agent', messages is for reading history/traces, close preserves history while delete destroys it, and op='help' is explicitly the escape hatch for full specs. There is no exclusion guidance or routing advice relative to the sibling tools, so it falls short of a 5.

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

Deploy Server

Other Tools