Skip to main content
Glama

Get agent draft

get_agent_draft
Read-onlyIdempotent

Read the saved draft (concept) for a voice agent - the safe way to review or change an agent without touching what is live. Returns draft (the editable snapshot, not yet live), published (what is actually live right now), revision (pass this back as expectedRevision to save_agent_draft/publish_agent_draft/simulate_agent_draft - optimistic concurrency, so you and a human editing the same agent in the volai portal cannot silently overwrite each other), tested (the last simulate_agent_draft result for the current revision, or null if it has not been tested), history (past published revisions, without their snapshots) and operation (a durable operation currently blocking further changes, or null when nothing is blocking - kind is one of update, publish, rollback, outbound_task; status is one of running, uncertain, drift, failed, done). Same data as GET /v1/agents/{id}/draft (response schema in /openapi.json).

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": {
      "id": "<id>"
    },
    "name": "get_agent_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId of the agent whose draft to read, from list_agents. Looks like ag_9f3a2b7c4d1e.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already establish read-only/idempotent/non-destructive, and the description goes well beyond them: it explains the optimistic-concurrency contract for the revision field, why it matters (avoiding silent overwrites with a human in the volai portal), and what a non-null operation means (a durable blocker with enumerated kinds and statuses). That is exactly the behavioral context annotations cannot convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Information density is high with no filler, but the entire definition is one long compound sentence with deeply nested parentheticals, making it hard to parse on first read. The return-field enumeration earns its place given there is no output schema, yet the structure could be split into shorter statements without losing content.

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?

There is no output schema, so the description carries the return-value burden and does so thoroughly, enumerating draft, published, revision, tested, history and operation including their null cases and enum values. Combined with the /openapi.json pointer, an agent has everything needed to call and interpret this tool.

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 a single parameter at 100% schema description coverage, the schema already explains that id comes from list_agents and its format. The description adds nothing about the id itself, so the baseline 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?

States a specific verb and resource ("Read the saved draft (concept) for a voice agent") and immediately scopes it against the live agent ("without touching what is live"), which differentiates it from get_agent and the mutation siblings. An agent can tell what this returns without opening the schema.

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?

Frames the tool as "the safe way to review or change an agent without touching what is live," which gives a clear usage context, and it names save_agent_draft/publish_agent_draft/simulate_agent_draft as consumers of the returned revision. It stops short of an explicit when-not-to-use rule or naming get_agent as the live-read alternative, so it is strong but not complete routing guidance.

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.