MCP server
Errors
Every error code an MCP call can return, what it means and what to do, plus the errors of the transport and of authentication.
4 min readUpdated on
Tool errors
A tool that runs and fails returns a normal result with isError: true and a JSON text. The error is a stable code you can branch on; the message is for people.
{
"content": [
{
"type": "text",
"text": "{\n \"error\": \"INSUFFICIENT_SCOPE\",\n \"message\": \"This connection is not allowed to save drafts or use Repliq AI. Reconnect Repliq and grant the \\\"repliq:draft\\\" permission.\"\n}"
}
],
"isError": true
}| Code | Meaning | What to do |
|---|---|---|
INSUFFICIENT_SCOPE | The connection was not granted the permission this tool needs. | Reconnect Repliq and tick that permission, or create a personal token that includes it. |
LOCATION_NOT_FOUND | No location with that id is visible to this connection. | Call list_locations and use one of the ids it returns. |
LOCATION_WITHOUT_WORKSPACE | The location is not in a workspace yet. | Open the location once in the Repliq app and retry. |
WORKSPACE_REQUIRED | The account has several workspaces and the tool needs to know which one. | Pass workspace_id (the message lists the ids; list_locations also returns them). |
NO_WORKSPACE | The account has no workspace with locations yet. | Connect a location in the Repliq app first. |
SCOPE_TOO_LARGE | The account can see more than 100 locations, so a tool without location_id cannot cover them all. | Filter by location_id. |
REVIEW_NOT_FOUND | The review does not exist or is not visible to this connection. | Take the id from list_reviews. |
READ_ONLY_ROLE | Your role in that workspace is viewer. | Ask an owner or admin for the Manager (editor) role. |
PLAN_REQUIRED | The location has no active plan or trial. | Start the trial or a plan in Repliq. |
GOOGLE_NOT_CONNECTED | The location is not connected to Google Business Profile. | Reconnect Google from Locations in the app. |
REVIEW_REMOVED | Google no longer shows the review, so it cannot be answered. | Nothing to do; the review is gone from Google. |
ALREADY_PUBLISHED | The review already has a published reply. | Use delete_published_reply first if the user wants to replace it. |
REVIEW_REJECTED | The review was rejected in Repliq and will not be answered. | Reopen it from the Repliq app if it should be answered. |
LOW_RATING_HUMAN_APPROVAL_REQUIRED | The review is 1–2★ and a person has not approved the reply yet. Assistants never write-and-publish these. | Save the text with save_reply_draft and ask the user to approve it in the Repliq app. |
NO_REPLY_TEXT | There is no reply text to publish or approve. | Pass reply_text, save a draft first or call generate_reply_draft. |
REPLY_NEEDS_HUMAN_REVIEW | The text contains contact details, a promise Repliq cannot verify (refund, discount, fix) or dangerous content. | Save it as a draft and review it in the Repliq app, or rewrite it without those elements. |
NOT_PENDING_APPROVAL | Only a reply waiting for approval can be approved. | Save a draft first with save_reply_draft. |
NOT_PUBLISHED | The review has no published reply to delete. | Check the status with get_review. |
INVALID_ARGUMENTS | The combination of arguments is not valid (for example both topic and review_id, or too many recipients). | Follow the parameter table of the tool. |
AI_QUOTA_EXHAUSTED | The plan’s AI replies for this period are used up. | Move up a tier in Billing, wait for the next period, or write the reply yourself and use save_reply_draft (it uses no quota). |
REVIEW_REQUEST_QUOTA_EXCEEDED | The plan’s monthly review requests are used up. | Wait for the next month or move to a plan with a bigger allowance. |
RATE_LIMITED | The connection spent one of its hourly budgets (publications, AI uses, profile changes, sends or lookups). | Wait and retry. Nothing was done. |
TEMPORARILY_UNAVAILABLE | Repliq could not finish the request right now, or could not check an hourly budget (it then fails closed and does nothing). | Retry in a moment. |
Handlers shared with the web app can return their own codes (for example PLAN_REQUIRED or AI_QUOTA_EXHAUSTED); when one carries no code the result uses HTTP_<status>.
Invalid arguments
Arguments that do not satisfy a tool’s input schema (a malformed id, a text too long) are rejected before the tool runs, with a message naming the field. Fix the argument and retry; nothing was done.
Authentication and transport
| Where | What | Meaning |
|---|---|---|
HTTP 401 | JSON-RPC error -32001 and WWW-Authenticate | Missing, invalid, expired or revoked token. Reconnect or refresh the token. |
HTTP 503 | JSON-RPC error -32603 | Tokens cannot be checked right now. Retry shortly. |
HTTP 429 | JSON-RPC error -32000 | More than 120 requests a minute for this connection, or too many failed authentications from one address. |
HTTP 405 | JSON-RPC error -32000 | GET or DELETE: the server is stateless; use POST. |
HTTP 415 | — | The request did not use a JSON content type. |
HTTP 406 | — | The client does not accept JSON at all. Send Accept: application/json, text/event-stream. |
Related documentation
- TroubleshootingThe problems people hit when connecting an assistant or calling the server, with the cause and the fix.
- Limits and errorsEvery rate limit, size cap and hourly budget that applies to the MCP server and the review request webhook, and how errors are reported.
- Limits and budgetsWhat an AI connection is allowed to do per hour, which tools spend which budget, and how the plan’s quotas fit in.
- ToolsAll 39 tools of the Repliq MCP server, with the permission each one needs and a page with parameters, an example and errors for each.
Was this page helpful?
Can’t find what you need?
Check the frequently asked questions or write to us and we will help.
Frequently asked questions