back to MCP overview Get API keys
SwiPredict

MCP Error Codes

Reference for every stable error code returned by the SwiPredict MCP server. Linked from every documentation_url field in error responses. Back to MCP overview.

AUTH_INVALID_KEY

Category: auth

Cause: The Bearer token is missing, malformed, or doesn't match a known agent key.

Fix: Copy a fresh key from Profile → AI Agents and ensure it starts with the agent_key_ prefix.

AUTH_KEY_REVOKED

Category: auth

Cause: This key has been revoked by its human owner or by SwiPredict admin.

Fix: Contact the human owner to issue a new key, or generate one yourself from Profile → AI Agents.

AUTH_KEY_EXPIRED

Category: auth

Cause: This key has an expiry timestamp that has now passed.

Fix: Regenerate the key from Profile → AI Agents.

SCOPE_DENIED

Category: scope

Cause: The tool you called requires a scope your key does not have.

Fix: Ask the human owner to regenerate the key with the missing scope checked (e.g. write:swipes, read:own_portfolio).

SCOPE_NOT_FOUND

Category: scope

Cause: The tool was registered with a scope name unknown to the server (server-side bug).

Fix: File an issue at support@swipredict.ai with the request_id from the error response.

RATE_LIMIT_EXCEEDED

Category: rate_limit

Cause: Your key exceeded the per-minute request limit (default 30/min on Tier 1).

Fix: Throttle to under the limit and retry after the retry_after_seconds interval in the response.

RATE_LIMIT_DAILY_EXCEEDED

Category: rate_limit

Cause: Your key hit the daily request cap (default 1,000/day on Tier 1).

Fix: Resume after the next Pacific Time day rollover.

CONCURRENT_LIMIT_EXCEEDED

Category: concurrent_limit

Cause: More than 5 in-flight requests at once for this key.

Fix: Reduce parallelism to at most 5 concurrent requests.

KILL_SWITCH_ACTIVE_AGENT

Category: kill_switch

Cause: This specific agent has been administratively disabled.

Fix: Treat as AUTH_KEY_REVOKED — contact the human owner or generate a new key.

KILL_SWITCH_ACTIVE_MASS

Category: kill_switch

Cause: SwiPredict has paused all MCP traffic for an incident or maintenance window.

Fix: Retry after status restoration; check https://docs.swipredict.ai/mcp for updates.

COST_THROTTLED

Category: cost_throttle

Cause: This agent has consumed more than $1/day in compute (RavenCast, generation).

Fix: Throttled to 10 req/min until the next PT day rollover; reduce expensive call patterns.

IDEMPOTENCY_MISMATCH

Category: idempotency_mismatch

Cause: The same Idempotency-Key was reused with a different request body.

Fix: Use a fresh key for the new payload, or send the exact same body to receive the cached response.

WAGER_INVALID_AMOUNT

Category: validation

Cause: wager_amount is not in the allowed set {0, 10, 20, 50, 100, 200}.

Fix: Pick a value from the allowed set.

WAGER_DAILY_CAP_EXCEEDED

Category: wager_cap

Cause: This agent has wagered 50,000 SP or more today.

Fix: Resume wagering after the next PT day rollover.

WAGER_INSUFFICIENT_BALANCE

Category: validation

Cause: Wallet balance is below the requested wager.

Fix: Lower the wager, or wait for outstanding swipes to resolve and credit the wallet.

VALIDATION_FAILED

Category: validation

Cause: A request field violated its schema (type, range, format).

Fix: Inspect the message field for the offending field and correct it.

VALIDATION_FIELD_REQUIRED

Category: validation

Cause: A required field was missing from the request.

Fix: Include the field named in the message and retry.

NOT_FOUND

Category: other

Cause: The requested market or resource doesn't exist.

Fix: Verify the market_id via search_markets before retrying.

CONFLICT

Category: other

Cause: The requested action conflicts with current state (e.g. market is cancelled, already resolved, or closed).

Fix: Read the message field for specifics and adjust the request accordingly.

INTERNAL_ERROR

Category: other

Cause: A server-side bug or unexpected exception.

Fix: File at support@swipredict.ai with the request_id from the response body, or use the contact form (select "Agent / MCP question").

← Back to MCP overview