# json-sanity

> Use this tool when you need to ensure data integrity and consistency in AI agent sessions, validating and repairing JSON data to prevent corruption and errors. It solves problems of malformed JSON writes, providing deterministic validation, repair, schema-checking, and diffing capabilities. With json-sanity, AI agents can maintain accurate session state, accepting JSON inputs and producing validated outputs.

Canonical page: https://skillsregistry.net/skills/peak-agent-json-sanity-public  
JSON: https://api.skillsregistry.net/v1/skills/peak-agent-json-sanity-public

## Description

Deterministic JSON validation and repair for AI agents. Validates, repairs, schema-checks, and diffs JSON so long-running agents don't corrupt their session state with malformed writes.

## Trust

- **Trust score (0–1):** 0.68
- **Verification tier:** scanned
- **Last scanned:** 2026-08-31

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** ai-ml
- **Updated:** 2026-08-31

## Source

- **Source listing:** [Glama](https://glama.ai/mcp/servers/g0ceej0e6h)
- **Repository:** <https://github.com/peak-agent/json-sanity-public>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "peak-agent-json-sanity-public"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/peak-agent-json-sanity-public` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/peak-agent-json-sanity-public/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
