List API keys
list_api_keysList API keys (permission: admin)
The calling key's owner's live (non-revoked) keys, newest first — the project's for a project key, the org's for an org key; for an agent connection the project's or org's named by projectId / orgId, where the user may manage keys (project editor and above, organization admin). An API key ignores both parameters. Never returns a hash or secret — only the display prefix and metadata.
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": "list_api_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size, 1–100. | |
| orgId | No | Agent connections only (exactly one of projectId/orgId): the organization whose keys. Ignored for an API key. | |
| cursor | No | The previous page's `nextCursor` (opaque). A malformed cursor is 400 on path cursor (issue code invalid_cursor). | |
| projectId | No | Agent connections only (exactly one of projectId/orgId): the project whose keys. Ignored for an API key. |