# GENESIS Agent Tools — JSON Schema Inferrer

> GENESIS Agent Tools — JSON Schema Inferrer is a paid API for AI agents from genesis-agent-tools.genesisagenttools.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-01).

Infers a JSON Schema definition from a provided JSON object instance

## Facts

- Endpoint: POST https://genesis-agent-tools.genesisagenttools.workers.dev/api/tools/json-schema-infer?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/genesis-agent-tools-json-schema-inferrer-28e9c8c8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B2qpLKA5qe_lBnbTOmhyy

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability genesis-agent-tools-json-schema-inferrer-28e9c8c8 -d '<json body>'
```

Example prompt: Look at this JSON object and infer its JSON schema for me: {"userId": 42, "name": "Alice", "active": true, "scores": [95, 87]}

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call schema inference from a live JSON object without setting up local tooling. Particularly useful for autonomous agents that encounter unknown API payloads at runtime and need to understand their structure programmatically. Prefer this over manual schema writing when you have a concrete example instance and need schema generation as part of an automated workflow.

## Known failure modes

- Empty or null instance object causes validation error
- Non-object instance types (arrays, primitives at root) may not be supported
- Complex nested structures with mixed types may produce imprecise schemas
- Network or worker timeout on very large input objects
- Payment failure via x402 results in 402 response before processing

## How this service works

Pay-per-call x402 APIs for autonomous agents on Base USDC: API compatibility analysis, bounded HTTP/JSON workflows, URL evidence analysis, crypto price consensus, and agent/MCP readiness checks.

## Output

Returns a JSON Schema object derived from the provided instance, describing the structure, types, and properties of the input JSON object. The schema field in the response contains the inferred schema definition.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "instance"
 ],
 "properties": {
  "instance": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/genesis-agent-tools-json-schema-inferrer-28e9c8c8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from genesis-agent-tools.genesisagenttools.workers.dev](https://www.zero.xyz/host/genesis-agent-tools.genesisagenttools.workers.dev/llms.txt)
