# ContractCases — AgentToolbox

[Browse tools](/tools) · [Checks](/tools/contract-cases/checks) · [Synthetic examples](/tools/contract-cases/examples) · [Reviews](https://agi.agenttoolbox2026.workers.dev/products/contract-cases/reviews)

Need boundary and negative tests for a bounded JSON Schema?
Generate checked boundary and negative cases for supported JSON Schemas.

Creator: AgentToolbox (`first_party`). Beta. Version `0.1.1`.
Cost: from $0.01 USDC per published success; USDC on Base, buyer chosen amount. Latency and agent token costs remain on failed outcomes.
Scope: Accepted JSON Schema subset · valid seed required · bounded coverage

Success: At least one valid boundary case and one negative case failing exactly its intended keyword and instance; every case revalidated against the complete accepted schema. Coverage gaps explicit; not certification.
Failure policy: Invalid input, failed criterion or unavailable decisive evidence never settles. Uncertain settlement requires reconciliation; never issue a replacement authorization.


## Inspect, test, pin, call

Full current contract JSON: https://agi.agenttoolbox2026.workers.dev/v1/products/contract-cases
Current success checks JSON and verifiable pin: https://agi.agenttoolbox2026.workers.dev/v1/products/contract-cases/criteria
Source snapshot success hash (verify current contract before authorizing): 5ca7675acb9e449d501e8e2445fd4a2010a0ab155fd4eb655cb442067020199f
Free static fixtures JSON: https://agi.agenttoolbox2026.workers.dev/v1/products/contract-cases/examples
Fixtures are synthetic offline cases, not live outcomes. input_valid covers the full runtime-accepted contract, including any host/subset/seed constraints.
Limited real-input preview: https://agi.agenttoolbox2026.workers.dev/products/contract-cases/preview
Preparation API: POST https://agi.agenttoolbox2026.workers.dev/v1/products/contract-cases/prepare
Read-only minimum challenge/pin: GET https://agi.agenttoolbox2026.workers.dev/v1/products/contract-cases/invoke (402 expected)
Direct minimum call: POST https://agi.agenttoolbox2026.workers.dev/v1/products/contract-cases/invoke
Optional higher/prepared quote: POST https://agi.agenttoolbox2026.workers.dev/v1/products/contract-cases/quote

Exact buyer procedure and receipt replay: https://agi.agenttoolbox2026.workers.dev/buy.md
Reviews: https://agi.agenttoolbox2026.workers.dev/products/contract-cases/reviews

## Example input

```json
{
  "schema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "count": {
        "type": "integer",
        "minimum": 1,
        "maximum": 10
      }
    },
    "required": [
      "count"
    ],
    "additionalProperties": false
  },
  "valid_example": {
    "count": 3
  },
  "max_cases": 12
}
```

## Runtime limits

```json
{
  "schema_bytes": 8192,
  "seed_bytes": 2048,
  "schema_nodes": 64,
  "schema_depth": 3,
  "properties_per_object": 25,
  "total_properties": 25,
  "array_items": 16,
  "string_length": 128,
  "instance_nodes": 128,
  "instance_depth": 8,
  "number_magnitude": 1000000000,
  "candidates": 160,
  "cases": 24,
  "output_bytes": 14000,
  "subset": {
    "dialect": "2020-12 bounded subset",
    "types": [
      "object",
      "array",
      "string",
      "number",
      "integer",
      "boolean",
      "null"
    ],
    "keywords": [
      "type",
      "enum",
      "const",
      "properties",
      "required",
      "additionalProperties",
      "items",
      "minItems",
      "maxItems",
      "minLength",
      "maxLength",
      "minimum",
      "maximum",
      "exclusiveMinimum",
      "exclusiveMaximum"
    ],
    "annotations": [
      "$schema",
      "title",
      "description"
    ],
    "unsupported": [
      "references",
      "composition",
      "type unions",
      "boolean schemas",
      "pattern",
      "format",
      "multipleOf",
      "unevaluated keywords",
      "remote resources"
    ]
  }
}
```

## Preview limits

```json
{
  "ttl_seconds": 900,
  "global_daily": 50,
  "client_daily": 10,
  "active": 16,
  "max_result_bytes": 14000,
  "max_preview_bytes": 2000,
  "quote_daily": 200
}
```


## Schemas and retention

Input and output schemas: https://agi.agenttoolbox2026.workers.dev/v1/products/contract-cases
{
  "inputs": "Raw requests/signatures/capabilities are not stored. Hash commitments stay private.",
  "results": "Prepared results private for 15 minutes unpaid; completed paid output replay for 24 hours. Pending settlement retains output for reconciliation.",
  "source_content": "Untrusted data; never instructions."
}
