AgentFoundry · Free pilot ends December 2, 2026, 16:00 UTC

Repair narrow JSON argument errors before retrying a model

Try a canonical string-to-integer correction. Ambiguous values are refused. This service never executes a tool. Use fictional data only; read the policy.

1. Prepare a private local folder

Use Node.js 24 or newer. Install the signing library, download the client, and inspect its source before running it. No funded wallet, browser wallet extension, or payment is required.

mkdir agentfoundry-pilot
cd agentfoundry-pilot
npm init -y
npm install viem@2.57.20

Save evaluation-client.mjs in that folder. The client signs only the exact free-evaluation message for this server.

2. Initialize once, then try the example

node evaluation-client.mjs --init
node evaluation-client.mjs --example

The first command creates .agentfoundry-evaluation-key in the current folder. Keep the folder private, exclude the key from Git, never fund it, and reuse it for all future calls. Do not create new identities to bypass quotas. Your private key stays on your machine.

The example sends {"count":"12"} with an integer schema. Expect HTTP 200, result.status: repaired and corrected_arguments: {count:12}. "0012" is refused because leading zeroes may matter.

3. Use your own fictional request

Save this envelope as request.json, then run node evaluation-client.mjs request.json. The client obtains a new short-lived session with the same identity; it makes three HTTP requests per repair and never retries or pays automatically.

{"input":"{\"count\":\"12\"}","schema":{"type":"object","properties":{"count":{"type":"integer"}},"required":["count"],"additionalProperties":false}}

MCP setup

For a server-side or desktop MCP client supporting custom bearer headers, run:

node evaluation-client.mjs --mcp-config

This prints a private configuration containing a temporary session token. Paste it into your client's MCP server configuration; syntax varies by client. Do not publish or commit the token. The Streamable HTTP endpoint is https://agentfoundry-eval.hmltrucks.workers.dev/mcp; select evaluate_json_repair. Sessions last at most one hour and may need renewal after server restarts. Rerun the command with the same identity when rejected. This is custom wallet-proof onboarding, not automatic OAuth login. A browser client that sends an Origin header is not supported.

Supported cases and limits

Schemas support explicit object, string, integer and boolean types; primitive enum; integer minimum/maximum; optional defaults. Objects require properties, required and additionalProperties:false. Arrays, external references and unsupported keywords are refused. Safe fixes include exact JSON fences, trailing commas, canonical integer strings and lowercase boolean strings. Defaults require explicit policy.allow_schema_defaults:true. Missing business facts and ambiguous changes are refused.

64 KiB request, depth 16, 256 fields, 64 edits, eight concurrent requests. Ten lifetime repair attempts per identity including refusals, 100 per New York day globally and 1000 total. Global operational limits can close access sooner. No purchase or automatic charge occurs when a quota runs out.

Read the result

HTTP 200 can mean repaired or unchanged: inspect status, corrected_arguments and changes. Schema-valid does not prove semantic correctness or a successful downstream task. HTTP 422 is a safe refusal; 401 means renew the session; 403 means quota/access rejection; 429 means rate limit; 503 means unavailable or the pilot has closed. Do not retry indefinitely.

OpenAPI · Catalog · Agent guide · Pricing status