diff --git a/src/content/changelog/access/2026-10-14-mcp-analytics-response-status.mdx b/src/content/changelog/access/2026-10-14-mcp-analytics-response-status.mdx new file mode 100644 index 00000000000..8715fd6d912 --- /dev/null +++ b/src/content/changelog/access/2026-10-14-mcp-analytics-response-status.mdx @@ -0,0 +1,20 @@ +--- +title: Filter MCP tool-call analytics by response status +description: Count successful, failed, or cached MCP tool calls separately, with successful calls as the default. +date: 2026-10-14 +products: + - access + - cloudflare-one +--- + +MCP tool-call analytics support a `response_status` query parameter on the account, portal, and server timeseries endpoints. Use `success`, `error`, or `cached` to count one status, or `all` to include every status. + +The default is `success`. Previously, counts included failed and cached calls. If you need the previous all-status counts, set `response_status=all` explicitly: + +```txt +GET /accounts/{account_id}/access/ai-controls/mcp/analytics/tool-calls/timeseries?response_status=all +``` + +The response includes the selected `response_status`. Invalid values, including an empty value, return `400`. + +For all query parameters and scoped endpoints, refer to [View tool-call analytics](/cloudflare-one/access-controls/ai-controls/mcp-portals/#view-tool-call-analytics). diff --git a/src/content/docs/cloudflare-one/access-controls/ai-controls/mcp-portals.mdx b/src/content/docs/cloudflare-one/access-controls/ai-controls/mcp-portals.mdx index c7a31474b45..134c8158bd6 100644 --- a/src/content/docs/cloudflare-one/access-controls/ai-controls/mcp-portals.mdx +++ b/src/content/docs/cloudflare-one/access-controls/ai-controls/mcp-portals.mdx @@ -700,6 +700,8 @@ The `auth_credentials` field accepts two forms: Use the account endpoint to retrieve daily or monthly MCP tool-call counts across the account: +By default, these counts include only successful tool calls. To include errors and cached calls, set `response_status=all`. Use `error` or `cached` to count either status separately. +