Skip to main content
Glama

Get volume

get_volume
Read-onlyIdempotent

Retrieve a single OpenStack volume by ID to inspect status, size, type, bootability, encryption, and attachments. Use volume IDs from list_volumes; returns not_found if outside the selected project.

Instructions

Get one volume by ID: status, size (GiB), type, bootable, encrypted, attachments.

Use list_volumes to find IDs by name or status. Returns not_found if the ID is not in the selected project.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "volume_id": "<volume_id>"
    },
    "name": "get_volume"
  }
}

Input Schema

NameRequiredDescriptionDefault
volume_idYesVolume ID, as returned by list_volumes.
project_idNoProject ID to work in; omit for the default project. Allowed values are listed by get_scope.

Output Schema

NameRequiredDescriptionDefault
idYes
nameNo
sizeNo
statusNo
created_atNo
updated_atNo
attachmentsNo
descriptionNo
is_bootableNo
volume_typeNo
is_encryptedNo
availability_zoneNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • addedInput schema / properties / volume_id / description
      Added value: +"Volume ID, as returned by list_volumes."
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered. The description adds genuine context beyond them: the response field set and the not_found failure mode when the ID belongs to a different project, which is a non-obvious scoping behavior. It stops short of describing pagination or any other edge cases, but none are really applicable to a single-resource fetch.

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

Conciseness5/5

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

Two short sentences with zero filler. The core action and return fields come first, then the routing hint and error condition, which is the right front-loaded order for an agent skimming definitions.

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?

An output schema exists, so the description needn't explain return values in detail, and the annotations carry the safety profile. The only minor gap is that the project_id fallback semantics are left entirely to the schema, but nothing an agent needs to call this correctly is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so volume_id and project_id are already documented, including the "as returned by list_volumes" hint and the omit-for-default behavior for project_id. The description's mention of ID lookup and project scoping largely restates that. Baseline 3 is the correct ceiling here since the schema does the heavy lifting.

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

Purpose5/5

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

States a specific verb and resource ("Get one volume by ID") and immediately enumerates the attributes returned (status, size in GiB, type, bootable, encrypted, attachments). This distinguishes it unambiguously from the sibling list_volumes and from get_volume_attachment without the agent needing to open either schema.

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

Usage Guidelines5/5

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

Explicitly routes the agent: use list_volumes to resolve IDs by name or status, use this tool once an ID is in hand. That is a named alternative plus the condition that selects it, which is exactly the when-to-use guidance the dimension asks for.

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