AgentDiet Deterministic A2A Broken-JSON Repair & Schema Validator
v7.0.17Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
repair_malformed_json
Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash. WHEN TO USE: Call `repair_malformed_json` when your task requires deterministic `json-repair` analysis for `raw_json`; use `get_agent_wallet_status` to check your remaining free trial quota or prepaid balance. WHEN NOT TO USE: Do not use for unrelated domains or binary media. PARAMETER INTERACTIONS: Pass the target `raw_json` as a non-empty string; omit `agent_id` and `tx_hash` during your 5 free trial calls, or supply `agent_id` (`agd_pass_...`) / `tx_hash` f…
| Parameter | Type | Description |
|---|---|---|
raw_json * | string | Malformed, truncated, or markdown-wrapped JSON string to deterministically repair. |
agent_id | string | Optional agent identifier or prepaid agd_pass_ session key. Omit during your 5 free trial calls to use an ID automatically derived from your client IP, or pass your agd_pass_ key after topping up. |
tx_hash | string | Optional on-chain Base Mainnet (0x...) or Solana SPL USDC transaction hash. Omit unless settling an individual call directly on-chain instead of using an agd_pass_ key in agent_id. |
get_agent_wallet_status
Inspect an agent's account ledger: remaining free trial calls (out of 5), prepaid USD balance, cumulative spend, total API calls, and total LLM tokens saved. WHEN TO USE: Call before a batch of paid tool executions or after completing a Stripe or USDC top-up to confirm your balance. WHEN NOT TO USE: Do not use to process web content, execute marketplace tools, or submit payments; use the other tools on this server for execution. PARAMETER INTERACTIONS: Omit agent_id to inspect the default trial account derived from your client IP, or pass your explicit agent_id or agd_pass_ session key to chec…
| Parameter | Type | Description |
|---|---|---|
agent_id | string | Optional Agent ID or agd_pass_ session key to inspect. Omit to check the default wallet derived from your client IP. |