Skip to main content

Simulation run on this device. Scenario values are not sent anywhere — the engine is fully local.

agents studio · free

Tool Mock Server

Serve canned success/timeout/error variants and watch the loop cope.

What does your agent do when the tool 500s?

Engine 1.0.0 · studio
Tool
create_refund
Args detected
3
Mock shapes
3

Three responses to stub into a test: success, retryable timeout, malformed body.

{
  "ok": true,
  "tool": "create_refund",
  "result": {
    "id": "create_refund_001",
    "status": "created"
  },
  "args": {
    "order_id": "\"order_id_123\"",
    "amount": "42.5",
    "reason": "\"refund succeeds, then a \""
  }
}
{
  "ok": false,
  "tool": "create_refund",
  "error": {
    "type": "timeout",
    "retryable": true,
    "after_ms": 5000,
    "message": "upstream create_refund did not respond"
  }
}
{"ok": true, "tool": "create_refund", "result": { "id": "create_refund_001", "status": "cre", "args": {"order_id": 

Always stub the malformed case — clients that only handle the happy path break on the first truncated body.

Method

  • Parses a tool signature and emits three shaped responses — success, retryable timeout, and a truncated body — for use as test stubs.
  • The malformed shape is the important one: clients that only handle the happy path break on the first truncated body.