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
- The exact error text, the tool's name, and the time of the call
- The CLI:
npm install -g @metorial/cli, thenmetorial login - For the logs, the admin CLI:
npm install -g @metorial/admin, thenmetorial-admin login
Reproduce the call and find it in the logs
Call the tool yourself to see whether it also fails outside your AI client:
An admin reads the call with its arguments and result:
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:
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:
A call to an integration that was reachable before fails with one of these:
| Message | Code | What to do |
|---|---|---|
The MCP server could not be reached. It may be offline, or its URL or command may be misconfigured. | provider_unreachable | Retry later. If it persists, an admin checks the server's URL |
The connection to the MCP server was closed before the request completed. | provider_closed | Check 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_blocked | An 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_error | For 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.
| Message | Code | Meaning |
|---|---|---|
The MCP server did not respond to the request in time. | provider_request_timeout | The 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_timeout | Metorial 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. | timeout | The call timed out inside Metorial before the integration answered |
The message failed to receive a response from the provider before the fallback timeout elapsed. | timeout | No 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
| Message | Cause | Fix |
|---|---|---|
Tool access not allowed | A tool filter rejects the tool, and the client called it from an old tool list | Reconnect the client to refresh its list. An admin allows the tool in the integration's Tool Filters |
Tool is not available for this authentication method | The integration uses an authentication method this tool does not support | An admin configures the integration with a method that supports it |
Tool requires scopes that have not been granted to this credential | Your connected account has fewer OAuth scopes than the tool needs | Run 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 tools | Retry in a minute |
Next steps
- Review connection logs: trace a session in the dashboard
- Audit MCP tool calls: what Metorial records and how to export it
- Error reference: every Metorial error message with its fix