MetorialDocs

Fix MCP tool calls that fail or time out in Metorial

What a failed Metorial tool call means: expired credentials, a provider that cannot be reached, a timeout, a rate limit, or a blocked tool, and how to fix it.

Find the error text of the failed call below. Credential errors are fixed with metorial reconnect. For the rest, reproduce the call from a terminal and have an admin read it in the logs.

What you'll learn

  • What each tool call error means and who fixes it
  • Which timeouts apply in Metorial and in each client
  • How to find a failed call from the CLI or the dashboard

Before you start

Reproduce the call and find it in the logs

Call the tool yourself to see whether it also fails outside your AI client:

metorial list
metorial tools <integration-id>
metorial call <integration-id> <tool-key> -d '{}'

An admin reads the call with its arguments and result:

# Failed calls of one tool, then one call in full
metorial-admin sessions tool-calls list --status failed --search <tool-key> --limit 20
metorial-admin sessions tool-calls get <tool-call-id>

# Errors, and errors grouped by cause
metorial-admin sessions errors list --limit 20
metorial-admin sessions error-groups list --limit 20

In the dashboard, select Integrations, then Tool Calls or Issues under Connection Logs. Select a call to open its session, find the "called tool" event, and open its Tool Call card. People see their own calls in the portal under Operations.

Metorial returns its own errors as JSON-RPC errors with code -32000. The message is the text on this page, and data.code is the code named in each entry. An error from the app itself, such as a missing record or a missing permission, arrives as the tool's normal result.

The provider rejects the credentials

The credentials for this MCP server have expired and could not be refreshed. The connection needs to be re-authenticated.

Code provider_auth_expired. The app refused to refresh your OAuth token. Connect your account again:

metorial list
metorial catalog list
metorial reconnect <catalog-item-id> <integration-id>

The integration keeps its endpoint URL, so your AI clients need no new sign-in. In the portal, open the integration and select Reconnect. Admins see the same problem as Failed to refresh the OAuth authentication token. under recent_auth_errors in the connection status report.

The MCP server rejected the configured credentials. The connection needs to be re-authenticated.

Code provider_auth_failed. The app answered 401 or 403 to the stored credential. Run metorial reconnect as above. For an integration with shared credentials, an admin updates its authentication configuration.

An integration cannot be reached

Could not connect to the MCP server "<name>" because the connection timed out.

Metorial could not connect to one integration. The others keep working, and one tool whose name ends in connection_failed replaces that integration's tools. The sentence can also end with the connection could not be established (<code>)., the provider returned an error (<code>)., or its capabilities could not be discovered.

Run metorial tools <integration-id> to reproduce it. For a remote MCP server you linked yourself, check its URL and authentication configuration. An admin lists these failures:

metorial-admin sessions errors list --type provider_discovery_failed --limit 20

A call to an integration that was reachable before fails with one of these:

MessageCodeWhat to do
The MCP server could not be reached. It may be offline, or its URL or command may be misconfigured.provider_unreachableRetry later. If it persists, an admin checks the server's URL
The connection to the MCP server was closed before the request completed.provider_closedCheck in the app whether the action happened before you retry a write
The connection to the MCP server was blocked by the configured network egress policy.egress_policy_blockedAn admin allows the server's host in the network egress policy
The MCP server returned a response that does not conform to the Model Context Protocol.provider_protocol_errorFor a server you run, test it with a standard MCP client

Timeouts

The shortest timer wins. Metorial's is 30 seconds by default. Claude Code stops after 5 minutes without a response, Codex after 60 seconds, and Claude after 240 seconds.

The request exceeded the configured tenant timeout of <N>ms.

Code timeout. The app did not answer within the project's limit of <N> milliseconds. Ask for less data per call, such as a smaller date range.

For a tool that is slow by nature, an admin opens the settings, then Integrations and MCP, MCP Configuration, Tool Calling, and sets Message processing timeout to up to 10 minutes.

The other timeouts have no setting. Retry once, and check in the app first if the call was a write, because it may still have run.

MessageCodeMeaning
The MCP server did not respond to the request in time.provider_request_timeoutThe connection to the app was open and no answer arrived
The MCP server did not accept a connection in time. It may be offline, overloaded, or slow to start.provider_connect_timeoutMetorial could not open a connection. A server that starts on demand is slow on its first call
The conduit request timed out before the provider responded.timeoutThe call timed out inside Metorial before the integration answered
The message failed to receive a response from the provider before the fallback timeout elapsed.timeoutNo answer arrived for 20 minutes and Metorial closed the call

Rate limits

The tool calls rate limit for this project has been reached.

Code rate_limit_exceeded. The project made more tool calls than its limit allows. The error's hint names the wait in seconds. Wait that long and retry.

The MCP server is currently rejecting requests because it is overloaded.

Code provider_overloaded. The app answered 429, its own limit for your account. Wait and retry.

Blocked tools

MessageCauseFix
Tool access not allowedA tool filter rejects the tool, and the client called it from an old tool listReconnect the client to refresh its list. An admin allows the tool in the integration's Tool Filters
Tool is not available for this authentication methodThe integration uses an authentication method this tool does not supportAn admin configures the integration with a method that supports it
Tool requires scopes that have not been granted to this credentialYour connected account has fewer OAuth scopes than the tool needsRun metorial reconnect <catalog-item-id> <integration-id> and approve the scopes at the app
Tool not callable (not discovered yet)Metorial has not finished reading the integration's toolsRetry in a minute

Next steps