Skip to main content
Glama

Simulate agent draft

simulate_agent_draft

Try a text conversation against the SAVED DRAFT, not the live agent - a cheap way to check wording (a system prompt or dataFields change) before publishing. Runs on a fixed Anthropic model (its name is not returned), with no tools and no audio - it checks what the agent would say, not a real call. Not billed to the customer (free) and NOT required before publish_agent_draft - simulation is entirely optional, capped at 20 calls per hour per account across all agents. expectedRevision must equal the current draft revision from get_agent_draft. message is the next thing the caller says (1 to 4000 characters); messages is optional prior turns (role user or assistant, at most 8 entries, 2000 characters per message, 8000 characters total combined) WITHOUT the current message. On success this sets the draft's tested marker to the current revision, returned in the response. Same data as POST /v1/agents/{id}/simulate (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>",
      "expectedRevision": "<expectedRevision>",
      "message": "<message>"
    },
    "name": "simulate_agent_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId of the agent whose draft to simulate, from list_agents. Looks like ag_9f3a2b7c4d1e.
messageYesThe next thing the caller says to the agent, 1 to 4000 characters.
messagesNoPrior turns of the conversation, oldest first, WITHOUT the current message - at most 8 entries, 8000 characters combined. Omit for the start of a conversation.
expectedRevisionYesRevision of the draft as returned by get_agent_draft. The simulation is rejected with revision_conflict when it changed since - reload with get_agent_draft.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare it is non-read-only, non-idempotent and non-destructive, but the description adds substantial context beyond them: fixed Anthropic model with name withheld, no tools or audio, free of charge, 20 calls/hour per account, and the side effect of stamping the draft's tested marker to the current revision. It also discloses the revision_conflict failure mode. Only the exact response shape is left to /openapi.json.

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-loads the core distinction (draft vs live agent) before operational detail, and most sentences carry unique information. It is dense and leans on parentheticals heavily, with some restatement of schema constraints such as lengths and message counts.

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?

With no output schema, the description does explain the observable return effect (tested marker set to current revision, returned in the response) and points to /openapi.json for the full schema. That covers the essentials for a 4-parameter tool, though the exact response payload remains an external lookup.

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 still reinforces the cross-parameter contract that expectedRevision must match the revision from get_agent_draft and that messages excludes the current message. Most of this duplicates the schema, so the added meaning is modest rather than decisive.

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 ('Try a text conversation against the SAVED DRAFT, not the live agent') and immediately contrasts it with the live agent, so an agent can distinguish it from publish_agent_draft or get_agent_draft without opening a schema.

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 explicit when-to-use ('a cheap way to check wording ... before publishing') and explicit when-not ('NOT required before publish_agent_draft - simulation is entirely optional'), plus the rate cap that limits use. The alternative path (publishing without simulating) is named directly.

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.