MCP 服务器

api-payload-auditor

io.github.lazymac2x/api-payload-auditor
开发者工具 公开且可连接 MCP 2026-07-28

此 MCP 可以做什么

Analyzes JSON API payload structure, identifies removable fields, compares optimized payloads, and estimates bandwidth savings.

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.
输入模式
{'type': 'object', 'required': ['payloadSizeBytes'], 'properties': {'region': {'type': 'string', 'description': 'Cloud region: us, eu, ap, sa, af, me, or AWS region codes'}, 'monthlyRequests': {'type': 'number', 'description': 'Monthly API request volume (default 1,000,000)'}, 'payloadSizeBytes': {'type': 'number', 'description': 'Payload size in bytes'}}}
compare_payloads
Compare an original payload to an optimized version. Returns size reduction %, removed field paths, and depth change.
输入模式
{'type': 'object', 'required': ['original', 'optimized'], 'properties': {'original': {'type': 'object', 'description': 'Original (before optimization) payload'}, 'optimized': {'type': 'object', 'description': 'Optimized (after pruning) payload'}}}
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.
输入模式
{'type': 'object', 'required': ['payload'], 'properties': {'payload': {'type': 'object', 'description': 'JSON payload to audit for bloat'}, 'threshold': {'type': 'number', 'description': 'Importance threshold 0-100 (default 60). Fields scored below this are flagged.'}}}
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).
输入模式
{'type': 'object', 'required': ['payload'], 'properties': {'payload': {'type': 'object', 'description': 'JSON API response payload to analyze'}}}
已添加
compare_payloads
2026年9月17日 12:43
已添加
bandwidth_cost_calc
2026年9月17日 12:43
已添加
field_prune_suggest
2026年9月17日 12:43
已添加
payload_analyze
2026年9月17日 12:43