Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: NegativeEV bet checker MCP API
version: 1.4.5
summary: Grade MLB, WNBA, PGA, ATP, and NFL bets against play-by-play game simulations.
description: 'NegativeEV runs the actual game thousands of times, play by play, and compares how often a bet would have won with the probability the sportsbook''s price implies. Bets are graded through the MCP or A2A endpoint below; the two GET endpoints report whether there is a slate to grade against and how many checks the caller has left. Anonymous callers are metered per device; a Supabase access token sent as `Authorization: Bearer` raises the allowance.'
termsOfService: https://negativeev.com/terms
contact:
name: NegativeEV
url: https://negativeev.com/contact
servers:
- url: https://negativeev.com
security:
- {}
- supabaseBearer: []
- agentKey: []
tags:
- name: MCP
paths:
/mcp:
post:
operationId: callMcp
summary: MCP (Streamable HTTP, stateless)
description: 'JSON-RPC 2.0. Tools: check_bet, get_slate, get_usage. The server card at /.well-known/mcp/server-card.json carries the protocol versions served.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/JsonRpcRequest'
example:
jsonrpc: '2.0'
id: 1
method: tools/call
params:
name: check_bet
arguments:
bet: Shohei Ohtani over 1.5 total bases -120
responses:
'200':
description: An MCP JSON-RPC response.
content:
application/json:
schema:
$ref: '#/components/schemas/JsonRpcResponse'
'401':
description: The bearer token was invalid or expired. Re-authenticate; do not retry anonymously.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: The caller is out of checks, or sending them too fast. Wait `reset_in` seconds.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
headers:
Retry-After:
schema:
type: integer
description: Seconds to wait before retrying.
'500':
description: The request failed before a response could be produced. Safe to retry.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
tags:
- MCP
components:
schemas:
JsonRpcResponse:
type: object
title: JSON-RPC 2.0 response
description: 'Carries `result` on success and `error` on failure — never both. Both arrive with HTTP 200: a JSON-RPC error is a transport success.'
required:
- jsonrpc
- id
properties:
jsonrpc:
type: string
const: '2.0'
id:
type:
- string
- integer
- 'null'
result:
type: object
description: Present when the call succeeded.
error:
type: object
description: Present when it did not.
required:
- code
- message
properties:
code:
type: integer
description: JSON-RPC error code.
message:
type: string
description: What went wrong.
Error:
type: object
title: Endpoint error
description: What the checking endpoints answer a refused call with. `error` is the stable code to branch on; `message` is written to be shown to a person as-is.
required:
- error
- message
properties:
error:
type: string
description: Stable machine code for the refusal, e.g. `rate_limited`, `invalid_token`, `out_of_checks`. Branch on this, never on the message.
examples:
- rate_limited
message:
type: string
description: One sentence explaining the refusal, safe to relay verbatim.
examples:
- Too many checks too quickly — give it a moment and try again.
reset_in:
type: integer
description: Seconds until the caller's allowance frees up. Present only on a quota or pace refusal; wait this long rather than retrying immediately.
examples:
- 42
Problem:
type: object
title: Problem details (RFC 9457)
description: What a wrong path or an unhandled failure answers with, in the shape RFC 9457 defines, served as application/problem+json.
required:
- type
- title
- status
- detail
properties:
type:
type: string
format: uri
description: Problem type URI. `about:blank` means the status code is the whole story.
examples:
- about:blank
title:
type: string
description: Short human-readable summary of the problem type.
examples:
- Not Found
status:
type: integer
description: The HTTP status code, repeated in the body.
examples:
- 404
detail:
type: string
description: What went wrong on this specific request.
instance:
type: string
description: The path the problem occurred on.
examples:
- /a2a/nope
JsonRpcRequest:
type: object
title: JSON-RPC 2.0 request
description: The envelope both the MCP and the A2A endpoint accept.
required:
- jsonrpc
- method
properties:
jsonrpc:
type: string
const: '2.0'
description: Always "2.0".
id:
type:
- string
- integer
- 'null'
description: Echoed back on the response. Omit only for a notification.
method:
type: string
description: The method being called.
params:
type: object
description: Method arguments.
securitySchemes:
supabaseBearer:
type: http
scheme: bearer
bearerFormat: JWT
description: Supabase access token. See https://negativeev.com/auth.md.
agentKey:
type: http
scheme: bearer
bearerFormat: nev_ agent key
description: An agent key minted at POST /keys by a signed-in member. Carries that account's membership and allowance. See https://negativeev.com/auth.md.
externalDocs:
description: Guide for agents
url: https://negativeev.com/AGENTS.md