Troubleshoot tool invocation
Use this topic to resolve common issues with Model Context Protocol (MCP) tool invocation. Most issues come from configuration mismatches, expired credentials, or session interruptions.
Resolve 403 errors on Reporting API calls
When you invoke a Reporting API tool through the Akamai MCP Server, the request fails with an HTTP 403 Forbidden error.
This error occurs because your API client has READ-ONLY access. Report queries only read data, but the endpoint uses HTTP POST, which requires READ-WRITE access.
To resolve the issue, set your API client's access to READ-WRITE. See Set Reporting API permissions.
Resolve connectivity and session failures
If a tool invocation fails immediately or doesn't respond, the issue usually involves the transport layer. Check these areas:
- Session integrity. Make sure the client established and maintains an active Streaming HTTP connection. If the connection is interrupted, the client needs to reinitialize the session before it invokes more tools.
- Network reachability. Make sure your environment supports persistent outbound HTTPS connections to the Akamai MCP Server endpoint. Latency or timeouts can also occur when the product service is under high load or has connectivity issues.
Handle authentication and authorization errors
Authentication failures occur at the gateway level, when the Akamai MCP Server validates your token. Authorization errors usually come from the product configuration. Check these areas:
- Single sign-on (SSO) access. If Akamai MCP Servers doesn't appear under Administration in Akamai Control Center (ACC), you don't have access to the service yet. Contact your administrator to request access instead of trying to reach the MCP Token Manager directly.
- Token validity. Confirm that your client sends the token secret in an
Authorization: Bearerheader on every request. The Akamai MCP Server doesn't accept the token secret in the URL. If you copied the Authorization header value from the MCP Token Manager, make sure you replaced<YOUR_DOWNLOADED_JWT>, including the angle brackets, with your saved token secret. If the token expired or you lost the token secret, create a new token in the MCP Token Manager. - Product access. If a tool returns
Not FoundorNot Authorized, make sure the product is configured for the MCP token and the tool is turned on in the product's tool filters. Until you enable tool filters for a product, all of its tools are off. A tool can appear in discovery and still fail if your account lacks the permissions that operation requires. - Credential configuration. For product-specific errors, make sure the API tokens and base URLs in the MCP Token Manager are correct and have enough administrative scope. For example, check these values for API Security or Guardicore.
- Account switch key. If tools return results for the wrong account or fail with authorization errors when your API client manages multiple Akamai accounts, check that account switching is turned on for the token on its Overview tab. Then check that your client sends the correct switch key, either in the
accountSwitchKeyURL parameter or in theX-AKA-MCP-ACCOUNT-SWITCH-KEYheader. If you copied the URL from the MCP Token Manager, make sure you replaced<ACCOUNT SWITCH KEY>, including the angle brackets. To find available keys for your client, see List account switch keys. See Set up an account switch key.
Fix schema and input validation errors
If an invocation fails with an Invalid Parameters error, the client request usually doesn't match the tool's schema. Check these areas:
- Discovery alignment. Run tool discovery again, and then retry the invocation. Tool definitions can change during a session, so cached schemas and parameters might be out of date.
- Parameter precision. Make sure every required field in the tool's input schema is present, correctly typed, and correctly formatted. The product MCP server immediately rejects missing or incorrectly typed parameters.
Follow troubleshooting best practices
To keep your integration reliable, follow these practices:
- Log invocations. Keep logs of request metadata and raw responses so you can tell whether a failure occurs at the gateway or product level.
- Refresh on change. After you change token configurations or product assignments in the MCP Token Manager, reestablish the MCP session and run tool discovery again.
- Use descriptive names. Give MCP tokens distinct names so you can audit which clients access which products.
Updated 6 days ago
