Troubleshooting

Detailed overview of MCP-related errors

When interfacing with the Pending AI MCP server, tool calls that contain invalid data or encounter an error related to the Pending AI platform will return an appropriate error message with additional context and directions to help guide a reasoning agent to find a solution.

Input and output schemas with constraints and descriptions are provided to also give context and suggestions to the interfacing agent to better traverse and use the offered tools.

For improved transparency and to help with addressing any client errors, a detailed overview is provided for the possible errors that may be encountered.

Tool Errors

Tool-specific errors that can cause a tool to "fail", although the error message returned to the agent contains the needed information to resolve it or to provide the needed feedback to a user.

Tool
Details
Suggestion

create_molecule_generator_sample

Argument model has a value that matches a model that does not exist.

Try again using the default model or check the status of the remaining available models.

Argument model has a value that matches a model that is unavailable.

Try again using the default model or check the status of the remaining available models.

create_retrosynthesis_job

Argument retrosynthesis_engine matches a retrosynthesis engine that does not exist.

Try again by excluding the field for the next request or list the available engines.

retrieve_retrosynthesis_job

Argument building_block_libraries matches a building block library that does not exist.

Try again by excluding the field for the next request or list the available libraries.

retrieve_retrosynthesis_job_status

Argument job_id matches a retrosynthesis job that does not exist.

Try listing retrosynthesis jobs to find job ids that exist and are available.

retrieve_retrosynthesis_job_result

Argument job_id matches a retrosynthesis job that does not exist.

Try listing retrosynthesis jobs to find job ids that exist and are available.

Argument job_id matches a retrosynthesis job that is still being processed.

Please try again once the job has completed. Poll the job status to see if the job is no longer processing.

delete_retrosynthesis_job

Argument job_id matches a retrosynthesis job that does not exist.

Try listing retrosynthesis jobs to find job ids that exist and are available.

Argument job_id matches a retrosynthesis job that is still being processed.

Please try again once the job has completed. Poll the job status to see if the job is no longer processing.

Tools also have constraints placed on the input arguments that an agent receives, it can be common for an agent to mistake or misname different fields which will return a generic error message. These messages are meant for the agent to be able to fix the issue on its next request or within the same chat.

Service Errors

The Pending AI platform that is interfaced by the MCP server may also encounter errors due to maintenance or high usage traffic. As the platform is made available via a public API, errors are addressed specifically in the previous section, but can also yield a generic error for unhandled issues with the platform.

HTTP Status
Details
Suggestion

400 Bad Request

Bad request made to the Pending AI server. The request contained invalid content and could not be processed.

Refer to the agent to outline the invalid data provided.

401 Unauthorized

Invalid or expired access token used for authentication.

Restart your MCP server connection, remove cached access credentials, and reauthenticate.

402 Payment Required

An error occurred due to payment issues with your Pending AI account.

Contact Pending AI support.

403 Forbidden

You do not have permission to access this MCP tool.

Check your access permissions with the requested service, contact support if you believe there is an error.

422 Unprocessable Entity

Tool request made to the Pending AI server contained invalid or malformed data.

Refer to the agent to outline the invalid data provided.

429 Too Many Requests

Unable to process the request due to rate limiting from too many requests.

Please wait before retrying and employ rate limiting strategies to avoid this issue.

502 Bad Gateway

The tool is currently unavailable due to server issues that rely on a third-party service.

Try again later or contact Pending AI support.

503 Service Unavailable

The tool is currently unavailable due to maintenance or other reasons.

Try again later or contact Pending AI support

504 Gateway Timeout

The tool is currently unavailable due to server issues that rely on a third-party service.

Try again later or contact Pending AI support.

Last updated

Was this helpful?