Skip to main content
Skip to the article

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.

Error result
{
  "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
}
CodeMeaningWhat to do
INSUFFICIENT_SCOPEThe 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_FOUNDNo location with that id is visible to this connection.Call list_locations and use one of the ids it returns.
LOCATION_WITHOUT_WORKSPACEThe location is not in a workspace yet.Open the location once in the Repliq app and retry.
WORKSPACE_REQUIREDThe 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_WORKSPACEThe account has no workspace with locations yet.Connect a location in the Repliq app first.
SCOPE_TOO_LARGEThe account can see more than 100 locations, so a tool without location_id cannot cover them all.Filter by location_id.
REVIEW_NOT_FOUNDThe review does not exist or is not visible to this connection.Take the id from list_reviews.
READ_ONLY_ROLEYour role in that workspace is viewer.Ask an owner or admin for the Manager (editor) role.
PLAN_REQUIREDThe location has no active plan or trial.Start the trial or a plan in Repliq.
GOOGLE_NOT_CONNECTEDThe location is not connected to Google Business Profile.Reconnect Google from Locations in the app.
REVIEW_REMOVEDGoogle no longer shows the review, so it cannot be answered.Nothing to do; the review is gone from Google.
ALREADY_PUBLISHEDThe review already has a published reply.Use delete_published_reply first if the user wants to replace it.
REVIEW_REJECTEDThe 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_REQUIREDThe 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_TEXTThere is no reply text to publish or approve.Pass reply_text, save a draft first or call generate_reply_draft.
REPLY_NEEDS_HUMAN_REVIEWThe 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_APPROVALOnly a reply waiting for approval can be approved.Save a draft first with save_reply_draft.
NOT_PUBLISHEDThe review has no published reply to delete.Check the status with get_review.
INVALID_ARGUMENTSThe 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_EXHAUSTEDThe 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_EXCEEDEDThe plan’s monthly review requests are used up.Wait for the next month or move to a plan with a bigger allowance.
RATE_LIMITEDThe connection spent one of its hourly budgets (publications, AI uses, profile changes, sends or lookups).Wait and retry. Nothing was done.
TEMPORARILY_UNAVAILABLERepliq 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

WhereWhatMeaning
HTTP 401JSON-RPC error -32001 and WWW-AuthenticateMissing, invalid, expired or revoked token. Reconnect or refresh the token.
HTTP 503JSON-RPC error -32603Tokens cannot be checked right now. Retry shortly.
HTTP 429JSON-RPC error -32000More than 120 requests a minute for this connection, or too many failed authentications from one address.
HTTP 405JSON-RPC error -32000GET 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.

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