Get Flavors
get_flavorsList project-visible compute flavors with vCPU, RAM, disk, extra-spec, and accelerator details; filter by name or accelerators to select an instance flavor or find GPU options.
Instructions
List the compute flavors visible to the project (like 'openstack flavor list --long').
Each flavor reports vCPUs, RAM (MB), root disk, ephemeral disk and swap,
visibility, its extra specs, and an accelerators summary parsed from the
pci_passthrough:alias and resources:VGPU/resources:PGPU extra specs.
Use it to choose a flavor for a new instance or to find GPU flavors.
extra_specs is null with extra_specs_error when the specs could not be
read; an empty object means the flavor has none.
Flavor sizes are not free capacity: whether a host can fit a flavor right now needs admin-only hypervisor or placement data.
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": "get_flavors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name_contains | No | Only flavors whose name contains this text (case-insensitive); empty for all. | |
| accelerators_only | No | Only flavors that request GPUs or other accelerators (PCI passthrough aliases or VGPU/PGPU resources). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |