1. Methodology, Spec Standards & SpecDiff Scoring Rubric (N=26)
Every specification in this cohort is an active, public B2B API contract fetched directly from the vendor's production API documentation endpoint. Across N=26 specs totaling 4,598 REST operations (median 132, mean 176.8, P90 374.5, max 572), SpecDiff scores each contract 0–100 across four deterministic pillars while estimating AI/MCP tool-schema context consumption against a 128,000-token context window at 500 calls/day (15,000/mo, $4.50/1M uncached input tokens).
- Denominator Transparency (N=26 vs. n=22): All N=26 specs carry full aggregate scores, letter grades, spec versions, operation counts, AI/MCP tool-schema token estimates, 128k context overflow ratios, and monthly cost projections. Detailed check-level telemetry (pillar sub-scores, schema-level defect ratios, and savable description token estimates) was archived for n=22 specs while 4 specs (Qdrant, Neon, Notion, Jina AI) store summary telemetry only; denominators are labeled explicitly throughout.
- Spec Format Adoption (N=26): 10/26 (38.5%) publish OpenAPI 3.1.0, 14/26 (53.8%) remain on OpenAPI 3.0.x, and 2/26 (7.7%) still serve legacy Swagger 2.0 (Weaviate & Netlify).
Hygiene Grade Distribution (N=26)
Overall score (N=26): Min 47 · P25 60.5 · Median 68.5 · Mean 68.5 · P75 74.8 · Max 88.
OpenAPI Standard Breakdown (N=26)
| Spec Version | Specs | Med / Mean Score | Med Tokens | Med Ops |
|---|---|---|---|---|
| OpenAPI 3.1.0 | 10 (38.5%) | 74 / 73.1 | 17,251 | 62 |
| OpenAPI 3.0.x | 14 (53.8%) | 68 / 65.9 | 44,579 | 196 |
| Swagger 2.0 (Legacy) | 2 (7.7%) | 64 / 64 | 40,751 | 160 |
4-Pillar SpecDiff Scoring Rubric Breakdown (n=22 Detailed Cohort)
| Rubric Pillar | Max Points | Min | P25 | Median | Mean | P75 | Max | What It Evaluates |
|---|---|---|---|---|---|---|---|---|
| Contract Completeness | 30 | 18 | 25.3 | 27 | 26.5 (88.2%) | 28.5 | 30 | Valid $ref resolution, operationId uniqueness, error response completeness & typed 2xx payloads |
| OWASP API Security | 30 | 10 | 21.3 | 22.5 | 23.3 (77.7%) | 26.8 | 30 | securitySchemes, HTTPS servers[], write auth coverage, 401/403, 429 rate limits & x-sunset |
| Schema Rigor | 20 | 7 | 8 | 9.5 | 9.8 (49.1%) | 11.8 | 15 | additionalProperties: false on input objects, array maxItems & string length/pattern bounds |
| AI / MCP Agent Readiness | 20 | 1 | 4 | 7 | 7.5 (37.7%) | 10 | 17 | Tool-schema token efficiency, concise descriptions (≤400 chars) & HTML-free prompt hygiene |
2. OWASP API Top 10 & Schema Hygiene Defect Prevalence (n=22 Detailed Payloads)
While 21/22 specs declare authentication schemes (ElevenLabs omits securitySchemes entirely across 355 mutating operations), nearly every spec fails schema-level input constraints and AI prompt hygiene. Only 1 of 22 specs (Hookdeck) locked down all request body schemas with additionalProperties: false, and 0 of 22 bounded all input arrays with maxItems.
| Rule / Standard | OWASP / AI Defect Class | Affected Specs (n=22) | Count | Share Bar |
|---|---|---|---|---|
OAD-SCH-MASS-ASSIGNMENTOWASP API3:2023 |
Mass Assignment Risk (Request objects omitting additionalProperties: false) 5,087 / 6,750 (75.4%) request body object schemas lack additionalProperties: false. |
95.5% | 21 / 22 | |
OAD-SCH-UNBOUNDED-ARRAYOWASP API4:2023 |
Unbounded Arrays (Input array schemas omitting maxItems) 3,214 / 3,528 (91.1%) input arrays lack maxItems DoS bounds. |
100% | 22 / 22 | |
OAD-AI-VERBOSE-DESCMCP Context Bloat |
Verbose Descriptions (>400 chars inflating AI/MCP tool schemas) 626 oversized descriptions generate 103,638 directly savable tokens across n=22. |
100% | 22 / 22 | |
OAD-OWASP-MISSING-401-403OWASP API1 / API2 |
Missing 401 / 403 Error Contracts on Protected Operations 1,517 operations omit explicit 401 Unauthorized or 403 Forbidden response schemas. |
72.7% | 16 / 22 | |
OAD-OWASP-DEPRECATED-NO-SUNSETOWASP API9:2023 |
Deprecated Operations Missing x-sunset / Sunset Header Guidance 195 deprecated operations lack retirement timelines or Sunset metadata. |
59.1% | 13 / 22 | |
OAD-SCH-WILDCARD-RESPONSEContract Rigor |
Wildcard / Untyped 2xx Object Responses 58 2xx success responses return untyped object schemas without explicit properties. |
59.1% | 13 / 22 | |
OAD-OWASP-NO-RATELIMITOWASP API4:2023 |
Missing HTTP 429 & RateLimit / Retry-After Contracts No HTTP 429 response or RateLimit/Retry-After header documented anywhere in the spec. |
40.9% | 9 / 22 | |
OAD-OWASP-UNAUTH-WRITEOWASP API2 / API5 |
Unauthenticated Mutating Writes (POST/PUT/PATCH/DELETE) 446 mutating write operations resolve with zero declared security requirement. |
31.8% | 7 / 22 | |
OAD-AI-HTML-DESCMCP Prompt Hygiene |
Raw HTML Tags Embedded Inside Descriptions 155 descriptions embed raw HTML markup that wastes tokens and pollutes LLM tool prompts. |
18.2% | 4 / 22 |
maxLength/enum/pattern/format on 17,351 / 27,477 (63.1%) input strings · 3/22 (13.6%) omit HTTPS servers[] (ElevenLabs, Grafana, Meilisearch) · 3/22 (13.6%) omit operationId on 78 ops · 2/22 (9.1%) permit API keys in URL query strings · 2/22 (9.1%) use legacy OAuth2 flows · 1/22 (4.5%) omit securitySchemes · 1/22 (4.5%) contain broken $ref pointers.
3. AI / MCP Tool-Schema Token Footprint & 128k Context Overflow (N=26)
Auto-converting an OpenAPI spec into AI / MCP tool definitions turns documentation size into an immediate per-turn latency and billing tax. Across all N=26 APIs (1,657,365 combined tool-schema tokens), median pre-prompt footprint is 32,658 tokens (2,204.39$ / month at 500 calls/day), P90 hits 162,853 tokens ($10,992.58/mo), and 5/26 (19.2%) exceed an entire 128,000-token context window before a single user prompt is sent.
| Cohort Percentile (N=26) | AI / MCP Schema Tokens | % of 128k Context | Monthly Uncached ($4.50/1M · 500/day) | 90% Prompt-Cached |
|---|---|---|---|---|
| Min | 1,118 | 0.9% | $75.47/mo | $7.55/mo |
| P25 | 19,296 | 15.1% | $1,302.50/mo | $130.25/mo |
| Median (P50) | 32,657.5 | 25.5% | $2,204.39/mo | $220.44/mo |
| Mean | 63,745 | 49.8% | $4,302.78/mo | $430.28/mo |
| P75 | 74,219 | 58.0% | $5,009.80/mo | $500.98/mo |
| P90 | 162,853 | 127.2% | $10,992.58/mo | $1,099.26/mo |
| Max | 293,349 | 229.2% | $19,801.06/mo | $1,980.11/mo |
4. Interactive 26-API OpenAPI Security & MCP Token Explorer (N=26)
Search, filter, and sort all 26 live-scanned commercial B2B OpenAPI specs locally in your browser (strict connect-src 'none', zero network calls). Audit your own spec privately on SpecDiff → or ship a full OpenAPI 3.1 + OWASP + MCP cleanup PR via the $49 Done-For-You Remediation PR →.
Showing 26 of 26 live-scanned B2B API specs
| Company & Spec | Hygiene / Pain | Operations | MCP Tokens & Cost | OWASP & Schema Gaps | Audit / Fix |
|---|---|---|---|---|---|
| ElevenLabs (elevenlabs.io) Voice Synthesis & Conversational AI API · OpenAPI 3.1.0 ↗ |
47/100 (C) Pain 238 |
572 ops openapi-3.1 |
177,154 tok 138.4% 128k · $11,957.90/mo · -3,357 trim |
||
| Weaviate (weaviate.io) Vector Database API · Swagger 2.0 ↗ |
59/100 (C) Pain 191 |
131 ops swagger-2.0 |
58,634 tok 45.8% 128k · $3,957.80/mo · -581 trim |
||
| Square (squareup.com) Commerce & Payments Fintech API · OpenAPI 3.0.0 ↗ |
49/100 (C) Pain 172 |
332 ops openapi-3.0 |
293,349 tok 229.2% 128k · $19,801.06/mo · -9,275 trim |
||
| Grafana (grafana.com) Observability Platform API · OpenAPI 3.0.3 ↗ |
54/100 (C) Pain 167 |
318 ops openapi-3.0 |
38,047 tok 29.7% 128k · $2,568.17/mo · -979 trim |
||
| Pipedrive (pipedrive.com) B2B CRM API · OpenAPI 3.0.1 ↗ |
59/100 (C) Pain 160 |
213 ops openapi-3.0 |
36,450 tok 28.5% 128k · $2,460.38/mo · -959 trim |
||
| Qdrant (qdrant.tech) Vector Search Engine API · OpenAPI 3.0.1 ↗ |
60/100 (C) Pain 153 |
69 ops openapi-3.0 |
15,251 tok 11.9% 128k · $1,029.44/mo |
||
| ConfigCat (configcat.com) Feature Flag Management API · OpenAPI 3.0.4 ↗ |
68/100 (B) Pain 148 |
123 ops openapi-3.0 |
33,117 tok 25.9% 128k · $2,235.40/mo · -6,902 trim |
||
| Browserless (browserless.io) Headless Browser Automation API · OpenAPI 3.0.0 ↗ |
66/100 (B) Pain 143 |
110 ops openapi-3.0 |
124,076 tok 96.9% 128k · $8,375.13/mo · -2,015 trim |
||
| LaunchDarkly (launchdarkly.com) Feature Management API · OpenAPI 3.0.3 ↗ |
68/100 (B) Pain 139 |
417 ops openapi-3.0 |
152,952 tok 119.5% 128k · $10,324.26/mo · -46,018 trim |
||
| Clerk (clerk.com) Auth & User Management API · OpenAPI 3.0.3 ↗ |
72/100 (B) Pain 135 |
267 ops openapi-3.0 |
67,089 tok 52.4% 128k · $4,528.51/mo · -7,658 trim |
||
| Twilio (twilio.com) Communications API · OpenAPI 3.0.1 ↗ |
59/100 (C) Pain 128 |
197 ops openapi-3.0 |
76,596 tok 59.8% 128k · $5,170.23/mo · -1,672 trim |
||
| PagerDuty (pagerduty.com) Incident Management API · OpenAPI 3.0.2 ↗ |
68/100 (B) Pain 128 |
473 ops openapi-3.0 |
172,754 tok 135% 128k · $11,660.90/mo · -18,221 trim |
||
| Fly.io (fly.io) Edge Compute & Machines API · OpenAPI 3.1.0 ↗ |
62/100 (C) Pain 124 |
104 ops openapi-3.1 |
26,987 tok 21.1% 128k · $1,821.62/mo · -502 trim |
||
| Neon (neon.tech) Serverless Postgres API · OpenAPI 3.0.3 ↗ |
74/100 (B) Pain 123 |
195 ops openapi-3.0 |
51,110 tok 39.9% 128k · $3,449.92/mo |
||
| Netlify (netlify.com) Web Hosting & Deployment API · Swagger 2.0 ↗ |
69/100 (B) Pain 113 |
188 ops swagger-2.0 |
22,867 tok 17.9% 128k · $1,543.52/mo · -190 trim |
||
| Meilisearch (meilisearch.com) Search API & Vector Engine · OpenAPI 3.1.0 ↗ |
65/100 (B) Pain 110 |
113 ops openapi-3.1 |
15,478 tok 12.1% 128k · $1,044.76/mo · -435 trim |
||
| Adyen (adyen.com) Global Payments Fintech API · OpenAPI 3.1.0 ↗ |
72/100 (B) Pain 94 |
28 ops openapi-3.1 |
134,952 tok 105.4% 128k · $9,109.26/mo · -1,967 trim |
||
| Hookdeck (hookdeck.com) Webhook & Event Gateway API · OpenAPI 3.0.1 ↗ |
73/100 (B) Pain 91 |
135 ops openapi-3.0 |
29,197 tok 22.8% 128k · $1,970.80/mo · -283 trim |
||
| CircleCI (circleci.com) CI/CD Automation API · OpenAPI 3.0.3 ↗ |
77/100 (B) Pain 91 |
112 ops openapi-3.0 |
21,898 tok 17.1% 128k · $1,478.12/mo · -1,390 trim |
||
| Deepgram (deepgram.com) Voice & Speech AI API · OpenAPI 3.1.0 ↗ |
69/100 (B) Pain 85 |
50 ops openapi-3.1 |
11,611 tok 9.1% 128k · $783.74/mo · -362 trim |
||
| Supabase (supabase.com) Postgres & BaaS Platform API · OpenAPI 3.0.0 ↗ |
75/100 (B) Pain 84 |
174 ops openapi-3.0 |
22,695 tok 17.7% 128k · $1,531.91/mo · -179 trim |
||
| Finch (tryfinch.com) Unified HRIS & Payroll Fintech API · OpenAPI 3.1.0 ↗ |
76/100 (B) Pain 82 |
55 ops openapi-3.1 |
18,429 tok 14.4% 128k · $1,243.96/mo · -193 trim |
||
| Buttondown (buttondown.com) Developer Newsletter & Email API · OpenAPI 3.1.0 ↗ |
82/100 (A) Pain 77 |
133 ops openapi-3.1 |
32,198 tok 25.2% 128k · $2,173.37/mo · -209 trim |
||
| Notion (notion.so) Workspace & Knowledge API · OpenAPI 3.1.0 ↗ |
85/100 (A) Pain 52 |
68 ops openapi-3.1 |
16,072 tok 12.6% 128k · $1,084.86/mo |
||
| Jina AI (jina.ai) Embeddings & Reranker AI API · OpenAPI 3.1.0 ↗ |
85/100 (A) Pain 50 |
11 ops openapi-3.1 |
1,118 tok 0.9% 128k · $75.47/mo |
||
| AssemblyAI (assemblyai.com) Speech-to-Text AI API · OpenAPI 3.1.0 ↗ |
88/100 (A) Pain 24 |
10 ops openapi-3.1 |
7,284 tok 5.7% 128k · $491.67/mo · -291 trim |
5. Automate Your OpenAPI OWASP & MCP Token Gate (Web, API, MCP & Apify)
Catch mass assignment, unbounded arrays, missing 401/403/429 error contracts, and MCP schema bloat before shipping PRs—via zero-upload browser SpecDiff, our Cluster 9 OWASP scorer, POST /v1/openapi/audit, Official MCP Registry server dev.runglab/devtools (audit_openapi_spec), or our Apify Cloud PPE Actor.
# 1. Zero-Upload Browser Spec Audit + SARIF 2.1.0 Export:
# https://spec.runglab.dev
#
# 2. Client-Side OWASP Quick-Lint & YAML Patch Builder (Cluster 9):
# https://tools.runglab.dev/openapi-owasp/
#
# 3. REST API Audit Gate (RungLab Developer Intelligence API):
curl -sS -X POST https://hub.runglab.dev/v1/openapi/audit \
-H "Content-Type: application/json" \
-d '{"specUrl": "https://api.example.com/openapi.json"}'
# 4. Official MCP Registry Tool (dev.runglab/devtools -> audit_openapi_spec):
# Endpoint: https://mcp-server.runglab.dev/ (Streamable HTTP: https://mcp-server.runglab.dev/mcp)