List refused API calls
cooper_list_request_refusalsUse this when a Cooper call failed and you need to see recent refusals and their error codes. Read-only; requires auth. Inputs: status (optional HTTP 4xx code), code (optional error code), api_key_id (optional), inbox_id (optional inbox id), since (optional ISO-8601 timestamp), limit (optional, 1 to 100, default 25), cursor (optional). Returns {object:"list", data:[{object:"request_refusal", id, created_at, method, route, status, error:{type, code, param, message}, api_key_id, oauth_client_id, inbox_id, source, mcp_tool}], has_more, next_cursor}. Newest first. A full-access account key sees the account. A restricted or inbox-scoped key sees only its own key. An OAuth client sees only its own client. Only authenticated HTTP 4xx responses are stored. Unauthenticated 401 responses, HTTP 2xx, and HTTP 5xx are not stored. Request bodies, query strings, Authorization headers, API keys, tokens, email content, and recipient addresses are not stored. Each account keeps at most 1000 rows per UTC day. Rows older than 7 days are deleted.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cooper_list_request_refusals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Error code, such as permission_denied or rate_limited. | |
| limit | No | Page size from 1 to 100. Default 25. | |
| since | No | ISO-8601 timestamp. Older rows are omitted. | |
| cursor | No | Cursor from next_cursor. A bad cursor returns invalid_cursor. | |
| status | No | HTTP status from 400 to 499. | |
| inbox_id | No | Only rows whose path named this inbox id. | |
| api_key_id | No | Only rows for this API key id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Items on this page, in the order the tool description gives. | |
| object | No | Object type name, such as list, message, or thread. | |
| next_page_token | No | Cursor for the next page, or null when this is the last page. Pass it back as page_token. |