Get access requests
get_access_requestsRead the access requests this token made with request_access; it never shows other tokens' requests. With request (an id), it returns that request's state: pending, active (approved and usable), denied, expired, used, ended or revoked. Pass wait (seconds) to hold the call until the user answers instead of asking them whether they did, and once it says active, retry the tool you needed. Without request, it lists up to limit requests, newest first, with state, project, scopes, reason and, while pending, the approveUrl to show the user: use it to find an id you lost or see what is still approved. To ask for new access use request_access. Read-only. No scope needed.
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": "get_access_requests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | With request only: seconds to hold the call until the user approves or denies (0 to 270, default 0; 50 is safe everywhere) | |
| limit | No | Without request only: requests to return, 1 to 100. Default 20. | |
| request | No | A request id from request_access. With it: that request's state. Without it: every request this token made |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | Only while active | |
| note | No | Only when denied | |
| until | No | Only while active | |
| scopes | No | Only while active | |
| status | No | ||
| request | No | ||
| answerBy | No | Only while pending | |
| requests | No | ||
| singleUse | No | Only while active | |
| approveUrl | No | Only while pending | |
| includesProtected | No | Only while active |