API & MCP
Everything a person can do on Serverless Performance Explorer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://serverlessperformanceexplorer.usefulweb.site/api/v1/calculate– run Serverless Performance ExplorerGET https://serverlessperformanceexplorer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Serverless Performance Explorer
Paste AWS Lambda REPORT log lines, JSON platform.report records or a CSV/Logs Insights export. Get cold-start rate, init and duration percentiles, memory utilisation with a right-sizing suggestion, and the cost per 1 million invocations on x86_64 and arm64 using the public Lambda prices (overridable).
| Field | Type | Default | Description |
|---|---|---|---|
logs | textarea | — | REPORT lines or CSV. CloudWatch REPORT lines, JSON log-format platform.report records, or CSV with columns like requestId,duration,billedDuration,memorySize,maxMemoryUsed,initDuration[,function,timestamp]. Separate functions with "=== function: name ===". |
file | file | — | Or upload a log/CSV file |
architecture | select (x86_64, arm64) | "x86_64" | Current architecture |
priceGbSecondX86 | number | 0.0000166667 | Price per GB-second (x86_64). Default: us-east-1 first tier, verified 2026-10-14. |
priceGbSecondArm | number | 0.0000133334 | Price per GB-second (arm64) |
pricePerMillionRequests | number | 0.2 | Price per 1M requests |
monthlyInvocations | integer | — | Monthly invocations per function (optional). Adds a monthly cost estimate (free tier not deducted). The same number is applied to every function in the logs; if their volumes differ, analyse each function’s logs separately. |
headroomPercent | number | 20 | Memory headroom. Added to the peak observed memory when suggesting a size. |
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://serverlessperformanceexplorer.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
serverless_performance_explorer - Local stdio connector:
node src/mcp-stdio.ts --tool=serverless-performance-explorer
{
"mcpServers": {
"serverless-performance-explorer": { "type": "http", "url": "https://serverlessperformanceexplorer.usefulweb.site/mcp" }
}
}