api-payload-auditor
v1.0.0Cloudflare Workers MCP server: api-payload-auditor
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
payload_analyze
Analyze a JSON API response payload structure — field count, size in bytes, max nesting depth, type distribution, null field count, and redundancy signals (empty arrays, null values).
| Parameter | Type | Description |
|---|---|---|
payload * | object | JSON API response payload to analyze |
field_prune_suggest
Identify and suggest unnecessary fields for removal from a JSON payload. Flags debug/temp/internal/deprecated fields, null values, empty arrays, and _ prefix fields.
| Parameter | Type | Description |
|---|---|---|
payload * | object | JSON payload to audit for bloat |
threshold | number | Importance threshold 0-100 (default 60). Fields scored below this are flagged. |
bandwidth_cost_calc
Calculate cloud API egress bandwidth costs for a given payload size and monthly traffic. Returns cost at 25%, 50%, and 75% reduction scenarios.
| Parameter | Type | Description |
|---|---|---|
payloadSizeBytes * | number | Payload size in bytes |
monthlyRequests | number | Monthly API request volume (default 1,000,000) |
region | string | Cloud region: us, eu, ap, sa, af, me, or AWS region codes |
compare_payloads
Compare an original payload to an optimized version. Returns size reduction %, removed field paths, and depth change.
| Parameter | Type | Description |
|---|---|---|
optimized * | object | Optimized (after pruning) payload |
original * | object | Original (before optimization) payload |