Protocol

Quotas & Rate Limits

The MCP server draws on the same monthly call quota as the REST API: one allowance per organisation, shared by every key. See Quotas & Rate Limits for API packs and how the month resets.

Plan API + MCP calls per month Organisation tools
Free 1,000 Not included
Essentials 10,000 Not included
Professional 100,000 Included
Enterprise By contract Included

What counts

Method / tool Counts?
initialize Free
tools/list Free
ping Free
notifications/* Free
tools/call → account_status Free
tools/call → any other tool 1 call

For every counted tools/call:

  1. The server checks your key, then counts 1 call against the month before running the tool.
  2. The tool runs (with a 15-second timeout).
  3. On success, the result comes back with quota.counted: 1.
  4. On error or timeout, the call is given back automatically: the result has isError: true, quota.counted: 0 and quota.released: true. A failed lookup is never counted.

Arguments are validated before anything is counted, so malformed requests never use the quota.

Reading your quota

Every tools/call result carries the quota after the call in result._meta.edgeprotect.quota:

"quota": {
  "key": "api.calls",
  "counted": 1,
  "limit": 10000,
  "used": 5180,
  "remaining": 4820,
  "reset_at": "2026-11-01T00:00:00.000Z"
}

limit and remaining are null when your plan has no monthly limit. The HTTP response also carries the x-quota-limit, x-quota-remaining and x-quota-reset headers.

For a free check, call the account_status tool. It returns your plan, the month's quota (limit, used, remaining, reset date), the rate limit and whether your plan includes your own data.

curl -s https://api.edgeprotect.io/functions/v1/mcp \
  -H "Authorization: Bearer $EDGEPROTECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"account_status","arguments":{}}}'

When the quota is used up

Counted tool calls return HTTP 429 with JSON-RPC error -32099:

{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32099,
    "message": "quota_exceeded",
    "data": {
      "reason": "quota_exceeded",
      "key": "api.calls",
      "limit": 10000,
      "used": 10000,
      "reset_at": "2026-11-01T00:00:00.000Z",
      "message": "Your organisation has used all 10,000 API and MCP calls in its plan this month. The quota resets on 2026-11-01. Add an API pack or upgrade in Settings → Plan & usage."
    }
  }
}

The response has a Retry-After header with the seconds until reset_at. -32099 is also used for the per-minute rate limit; data.reason tells them apart (quota_exceeded or rate_limited). An agent that gets quota_exceeded should stop and tell the user rather than retrying. Free methods and account_status keep working, so the agent can still report when the quota resets.

Rate limit

Every API key gets 60 requests per minute on every plan, the same limit as the REST API. It is counted per key and is separate from the monthly allowance. Over the limit, the server returns HTTP 429 with JSON-RPC error -32099, data.reason: "rate_limited" and a Retry-After header. Rate-limited requests are not counted against the month.

Organisation tools need Professional

Tools that read your organisation's own data (list_my_*, get_my_*, assess_cve_exposure, check_my_supply_chain_exposure, map_assets_to_actor, appliances_exploited_by_actor) need the mcp:org scope and the Professional or Enterprise plan. On Free or Essentials, a valid mcp:org key gets HTTP 403 with JSON-RPC error -32003:

{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32003,
    "message": "plan_feature",
    "data": { "reason": "plan_feature", "key": "api.own_data", "plan_needed": "business" }
  }
}

business is the internal key for Professional. The call is not counted. A missing, wrong or revoked key, or a key without the scope, still gets the same -32001 unauthorized as any other credential problem.

Keeping usage low

Every tool counts as exactly 1 call. There are no premium tools, and a larger limit doesn't count for more (one search_iocs call with limit: 200 is still 1 call). To make the quota go further:

  • Filter tightly. A broad query with no filters may return truncated results for the same 1 call as a precise one.
  • Cache locally where it makes sense.
  • Use account_status for health checks: it's free.