list_direct_permissions
Inspect explicitly current-caller scoped direct records, or administrator-selected User/Group records plus type-wide grants. Current-caller ListPermissions excludes user.all and group inheritance. Selected records never claim other-user effective access. Known specifics projected; unknown values omitted with incomplete evidence. No mutation.
Availability
Available under the default capability policy
The instance’s tool selection and upstream Core permissions also apply. Some inputs require additional grants.
Effect annotations
readOnlyHint—truedestructiveHint—falseidempotentHint—true
Inputs
The registered schema gives field types, alternatives and declared bounds. The description and operator guides also cover checks applied at runtime.
subject- Required · Schema
DirectSubject
Show input JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"subject": {
"$ref": "#/$defs/DirectSubject"
}
},
"required": [
"subject"
],
"$defs": {
"DetailInput": {
"additionalProperties": false,
"oneOf": [
{
"required": [
"id"
]
},
{
"required": [
"name"
]
}
],
"properties": {
"id": {
"description": "Exact stable resource ID returned by a list tool.",
"pattern": "^[0-9a-fA-F]{24}$",
"type": "string"
},
"name": {
"description": "Exact, case-sensitive name within this family; never interpreted as an ID.",
"minLength": 1,
"pattern": "\\S",
"type": "string"
}
},
"type": "object"
},
"DirectSubject": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "current_caller",
"type": "string"
}
},
"required": [
"kind"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "selected",
"type": "string"
},
"subject": {
"$ref": "#/$defs/Subject"
}
},
"required": [
"kind",
"subject"
],
"type": "object"
}
]
},
"Subject": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "user",
"type": "string"
},
"target": {
"$ref": "#/$defs/DetailInput"
}
},
"required": [
"kind",
"target"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "group",
"type": "string"
},
"target": {
"$ref": "#/$defs/DetailInput"
}
},
"required": [
"kind",
"target"
],
"type": "object"
}
]
}
}
}Output
The registered output schema covers structured results and tool errors.
DirectPermissionscomplete,direct_type_grants,evidence,mutation_requests,records,subjectAppErrorcandidates,correction,field,kind,message,operation,status
Show output JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"$ref": "#/$defs/DirectPermissions"
},
{
"$ref": "#/$defs/AppError"
}
],
"$defs": {
"AppError": {
"additionalProperties": false,
"description": "Only application-owned messages and selected, nonsensitive metadata survive.",
"properties": {
"candidates": {
"items": {
"$ref": "#/$defs/Candidate"
},
"type": [
"array",
"null"
]
},
"correction": {
"type": [
"string",
"null"
]
},
"field": {
"type": [
"string",
"null"
]
},
"kind": {
"$ref": "#/$defs/ErrorKind"
},
"message": {
"type": "string"
},
"operation": {
"type": "string"
},
"status": {
"format": "uint16",
"maximum": 65535,
"minimum": 0,
"type": [
"integer",
"null"
]
}
},
"required": [
"kind",
"message",
"operation"
],
"type": "object"
},
"Candidate": {
"additionalProperties": false,
"description": "A bounded ambiguity hint, never a raw upstream resource.",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"type": "object"
},
"DirectPermissions": {
"properties": {
"complete": {
"type": "boolean"
},
"direct_type_grants": {
"items": {
"$ref": "#/$defs/TypeGrant"
},
"type": "array"
},
"evidence": {
"type": "string"
},
"mutation_requests": {
"format": "uint8",
"maximum": 255,
"minimum": 0,
"type": "integer"
},
"records": {
"items": {
"$ref": "#/$defs/PermissionView"
},
"type": "array"
},
"subject": {
"$ref": "#/$defs/SubjectView"
}
},
"required": [
"subject",
"records",
"direct_type_grants",
"complete",
"evidence",
"mutation_requests"
],
"type": "object"
},
"ErrorKind": {
"description": "Stable public categories. No variant contains a raw upstream error.",
"enum": [
"invalid_arguments",
"not_found",
"ambiguous_target",
"incomplete_resolution",
"configuration",
"authentication",
"permission_denied",
"timeout",
"unreachable",
"upstream",
"invalid_response",
"response_too_large",
"capability_disabled",
"unsupported_target",
"stale_preview",
"invalid_preview"
],
"type": "string"
},
"GrantView": {
"properties": {
"complete": {
"type": "boolean"
},
"level": {
"$ref": "#/$defs/Level"
},
"specific": {
"items": {
"$ref": "#/$defs/Specific"
},
"type": "array"
},
"unknown_specific_count": {
"format": "uint",
"minimum": 0,
"type": "integer"
}
},
"required": [
"level",
"specific",
"unknown_specific_count",
"complete"
],
"type": "object"
},
"Kind": {
"enum": [
"server",
"swarm",
"stack",
"deployment",
"build",
"repo",
"builder",
"alerter",
"procedure",
"action",
"resource_sync"
],
"type": "string"
},
"Level": {
"enum": [
"none",
"read",
"execute",
"write"
],
"type": "string"
},
"PermissionView": {
"properties": {
"grant": {
"$ref": "#/$defs/GrantView"
},
"resource_id": {
"type": "string"
},
"resource_kind": {
"$ref": "#/$defs/ResourceKind"
},
"subject": {
"$ref": "#/$defs/SubjectView"
}
},
"required": [
"subject",
"resource_kind",
"resource_id",
"grant"
],
"type": "object"
},
"ResourceKind": {
"enum": [
"system",
"swarm",
"server",
"stack",
"deployment",
"build",
"repo",
"procedure",
"action",
"builder",
"alerter",
"resource_sync"
],
"type": "string"
},
"Specific": {
"enum": [
"terminal",
"attach",
"inspect",
"logs",
"processes"
],
"type": "string"
},
"SubjectView": {
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"kind",
"id",
"name"
],
"type": "object"
},
"TypeGrant": {
"properties": {
"grant": {
"$ref": "#/$defs/GrantView"
},
"resource_kind": {
"$ref": "#/$defs/Kind"
}
},
"required": [
"resource_kind",
"grant"
],
"type": "object"
}
}
}