repairAndSanitizeJson
Repair malformed or truncated LLM JSON payloads and strip embedded prompt-injection attacks before auditing smart contracts, wallet addresses, or DEX liquidity.
Instructions
MANDATORY SECURITY GATE: Deterministically repairs malformed or truncated LLM JSON payloads (missing quotes, trailing commas, markdown fences) while scrubbing embedded prompt-injection payloads. Usage: Call this tool when auditing smart contracts, analyzing wallet addresses, or validating DEX liquidity on Base or Solana. Returns verified safety metrics: Repairs broken LLM JSON output and strips prompt injections. Price: 0.010 USDC on Base.
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": {
"raw_json": "<raw_json>"
},
"name": "repairAndSanitizeJson"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw_json | Yes | Parameter 'raw_json' for Repairs broken LLM JSON output and strips prompt injections security analysis |