Make the contract explicit
Define the arguments your tool accepts with JSON Schema. Invalid calls come back with specific errors your agent can correct.
SCHEMA VALIDATION
A test bench for AI agent tools
Build realistic mock endpoints for the tools your AI agent depends on. Validate inputs, exercise edge cases, and replay calls before connecting to production services.
Execution log
issue_refund
{ "user_id": "vip" }
42 ms
issue_refund
{ "reason": "missing id" }
58 ms
Scenario response
POST /api/v1/mock/tool_id
input
{
"user_id": "vip",
"reason": "duplicate"
}
mock response
{ "success": true,
"message": "VIP refund processed." }Why MockAgent
Agent tool calls are hard to test when the service is unfinished, expensive, rate-limited, or capable of real side effects. MockAgent gives each tool a predictable HTTPS endpoint, so you can iterate on schemas and agent behavior in a controlled workspace.
Define the arguments your tool accepts with JSON Schema. Invalid calls come back with specific errors your agent can correct.
SCHEMA VALIDATION
Match inputs to named scenarios and return different responses. Try edge cases without wiring up real services or test accounts.
CONDITIONAL RESPONSES
Replay a saved successful call against the current mock. See whether a prompt, schema, or response change altered the result.
REGRESSION CHECKS
Issue revocable bearer keys, require them per tool, and enforce monthly usage limits at the gateway.
API KEY CONTROLS
A simple loop
Keep the mock endpoint alongside your agent while the real service evolves. Swap the mock for the production tool when you are ready.
Create your first workspaceAdd a name, argument schema, default response, and any conditional scenarios.
Use the generated HTTPS endpoint as the tool handler in your agent or test harness.
Review calls, validation failures, latency, and replay comparisons in one workspace.
Start with one tool
Create a workspace, define a mock contract, and see exactly what your agent sends back.