Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Schemathesis

$ schemathesis Community Med Risk
Schemathesis · Code & DevOps · MIT · macos / linux / windows

schemathesis automatically generates Hypothesis-powered edge-case requests from OpenAPI and GraphQL schemas to uncover 500 errors and contract violations. Supports --checks all, --report json,junit, --max-examples, and --no-color for deterministic CI and agent verification.

FCRS-1.0 Score
82 /100
Good
Medium Confidence
Zero-Friction Install
brew install schemathesis
CLI vs MCP Decision CLI Only

Property-based API fuzzer driven by OpenAPI/GraphQL schemas; executes hundreds of generated HTTP test cases locally.

Agent-Readiness Checklist

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Headless execution with --report json,junit, --no-color, --include-method scoping, and reproducible --seed values.

  • Structured --report json / ndjson / junit exports
  • Operation filters (--include-method, --include-path)
Trust & Safety 19 / 25

Fuzzing sends randomized payloads to POST/PUT/DELETE endpoints by default unless constrained via --include-method GET; v4 removed --dry-run.

  • Mutating HTTP methods fuzzed unless explicitly filtered
  • Legacy --dry-run flag removed in Schemathesis v4
Setup & Portability 12 / 15

Available via Homebrew, pip, and uvx across macOS, Linux, and Windows (plus Docker images).

  • Cross-platform Python package and Homebrew formula
Utility & Efficiency 13 / 15

Finds edge-case crashes and schema drift automatically from OpenAPI/GraphQL without hand-written tests.

  • Stateful and property-based fuzzing via Hypothesis
Maintenance & Lineage 9 / 10

Actively maintained by the Schemathesis team (schemathesis/schemathesis) under MIT license.

  • Rapid active development and v4 releases
Docs & Verifiability 8 / 10

Thorough documentation covering CLI options, checks, and reports, plus crisp --help.

  • Detailed CLI guide on Read the Docs

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key
Credential Storage

No built-in credential store; pass API tokens via --header "Authorization: Bearer ..." or --auth.

Side Effects
Read-Only Remote Write Destructive
Cost & Quotas

MIT open-source Python CLI; free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Schemathesis Agent Rules
- Restrict read-only probes with `--include-method GET` when testing shared environments.
- Never run full fuzzing (`POST`/`DELETE`) against production APIs—only target `localhost` or disposable test environments.
- Always pass `--no-color` and `--report json --report-json-path <file>` when parsing failures.

Agent-Ready Command Recipes

Safe Read-Only Queries

Fuzz only GET endpoints of a local OpenAPI server
schemathesis run --include-method GET --checks all --max-examples 20 --no-color http://127.0.0.1:8000/openapi.json

Limits property-based fuzzing to read-only GET operations with 20 examples per operation.

Controlled Writes & Previews

Run full contract checks and save JSON + JUnit reports
schemathesis run --checks all --report json,junit --report-json-path report.json --report-junit-path junit.xml --no-color http://127.0.0.1:8000/openapi.json

Tests all schema endpoints including mutations against a local test instance and exports JSON and JUnit reports.

Strengths for Agents

  • + Automatically fuzzes OpenAPI and GraphQL specs to uncover 5xx crashes and schema mismatches.
  • + Rich filtering (--include-method, --include-path) and --report json,junit output.
  • + Reproducible seeds (--seed) allow deterministic regression re-runs.

Caveats & Pitfalls

  • ! Fuzzes mutating endpoints (POST, DELETE) by default unless scoped to GET.
  • ! Schemathesis v4 removed --dry-run, so requests are always dispatched unless filtered.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI