oci_iam_list_compartments
List compartments in an OCI tenancy hierarchy. Specify a parent compartment OCID to filter child compartments and set a limit to control the number of results.
Instructions
List compartments in the tenancy hierarchy
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": "oci_iam_list_compartments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum compartments to return | |
| compartment_id | No | Parent compartment OCID (defaults to tenancy) |