Read a PostgreSQL application role
postgres_role_getRetrieves a PostgreSQL application role's login capability, admin flags, connection limit, memberships, and optional expiry without returning credentials. Use the role name from postgres_roles_list.
Instructions
Read a PostgreSQL application role
Returns login capability, administrative flags, connectionLimit, memberOf and optional validUntil, never the credential. Obtain name from postgres_roles_list; an absent application identity returns 404.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cluster": "<cluster>",
"role": "<role>"
},
"name": "postgres_role_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Exact application role name, 1–63 UTF-8 bytes without control characters; use name from postgres_roles_list. | |
| cluster | Yes | Managed cluster name; the RBAC object is namespace/cluster. | |
| namespace | No | Namespace of the requested object; defaults to default for single-object routes and creation. On collection routes (/clusters, /operations, /events, /events/stream, /orphaned-volumes, /backup-storages and root /metrics), absence includes all authorized namespaces and a value filters to that namespace. A nonexistent explicit namespace returns 404 not_found with resource namespace and its name only when the authenticated caller has a permission in that namespace. Otherwise collections remain empty and object requests retain their normal 403 response without revealing existence. Public and unauthenticated authentication routes do not resolve the parameter. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| login | Yes | ||
| createdb | Yes | ||
| memberOf | Yes | ||
| bypassrls | Yes | ||
| superuser | Yes | ||
| createrole | Yes | ||
| validUntil | No | ||
| operationId | No | ||
| replication | Yes | ||
| connectionLimit | Yes |