List compartments
list_compartmentsRetrieve compartments recursively within an OCI tenancy, starting from the tenancy root or a given OCID, while filtering out those outside the allowlist.
Instructions
List compartments in the tenancy (recursively). Compartments outside the allowlist are filtered out.
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_compartments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootCompartmentId | No | OCID to list under (defaults to the tenancy root) |