Skip to main content
Glama
MCP-OpenStack-Ops

MCP-OpenStack-Ops

by call518

Get Flavors

get_flavors

List 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

NameRequiredDescriptionDefault
name_containsNoOnly flavors whose name contains this text (case-insensitive); empty for all.
accelerators_onlyNoOnly flavors that request GPUs or other accelerators (PCI passthrough aliases or VGPU/PGPU resources).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.0.8

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the burden and does well: it declares this is a list/read operation, discloses the null-vs-empty-object semantics of extra_specs with extra_specs_error, and warns that flavor sizes are not free capacity and require admin-only hypervisor/placement data. Gaps remain around auth requirements and pagination, but the key behavioral traps are surfaced.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core purpose in the first sentence, then layers field details, error semantics, and the capacity caveat in short paragraphs. Slightly long, but each block serves a distinct purpose and nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read tool with an output schema, the description is thorough: it explains the derived 'accelerators' field, error-state semantics, and the capacity misconception. Minor omissions (pagination, permissions) keep it from a 5.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning by defining what counts as an accelerator ('pci_passthrough:alias' and 'resources:VGPU'/'resources:PGPU' extra specs), which directly clarifies the accelerators_only filter. The name_contains filter is left entirely to the schema, which already documents it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('List the compute flavors visible to the project') and anchors it to a familiar CLI equivalent ('openstack flavor list --long'), plus enumerates the reported fields. It does not explicitly distinguish itself from the sibling get_load_balancer_flavors, so an agent must infer the compute-vs-load-balancer distinction from context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives two concrete use cases: picking a flavor for a new instance and finding GPU flavors. It also adds a clear when-not caveat ('flavor sizes are not free capacity'), directing the agent elsewhere for live capacity. No explicit named alternative tool, but the conditions are unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools