api-payload-auditor

v1.0.0
io.github.lazymac2x/api-payload-auditor Checked 15 hours ago Published 6 months ago

Cloudflare 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).

ParameterTypeDescription
payload *objectJSON 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.

ParameterTypeDescription
payload *objectJSON payload to audit for bloat
thresholdnumberImportance 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.

ParameterTypeDescription
payloadSizeBytes *numberPayload size in bytes
monthlyRequestsnumberMonthly API request volume (default 1,000,000)
regionstringCloud 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.

ParameterTypeDescription
optimized *objectOptimized (after pruning) payload
original *objectOriginal (before optimization) payload