Skip to main content
Glama

List volume attachments

list_volume_attachments
Read-onlyIdempotent

Lists Cinder volume attachment records to show which servers a volume is attached to. Filter by volume, instance, or project and page results with limit and marker.

Instructions

List Cinder attachment records (API microversion 3.27 or later).

Connection details are not returned. Paged with limit and marker.

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_volume_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum items to return (1-100, default 50).
markerNonext_marker from the previous page; omit for the first page.
volume_idNoVolume ID whose attachments to list.
project_idNoProject ID to work in; omit for the default project. Allowed values are listed by get_scope.
instance_idNoServer ID the volume is attached to.

Output Schema

NameRequiredDescriptionDefault
itemsYes
limitYesMaximum number of items requested.
completeYesTrue when no more items exist beyond this page.
resourceYesResource type of the items.
project_idYesProject whose session produced the list.
next_markerNoPass as marker to read the next page; null when complete or when the API has no marker paging.
observed_atYesUTC time the list was read.

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 whose attachments to list."
  2. First observedv0.1.0

TDQS

B3.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 the safety profile is covered. The description adds genuinely new context beyond them: the OpenStack microversion requirement (3.27+), the explicit exclusion of connection details from the payload, and that results are paged. It stops short of saying what an empty result means, but the added context is substantive.

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?

Two short sentences, front-loaded with the identifying verb+resource and the version constraint. The third clause about limit/marker paging is largely redundant with the schema, so it is not perfectly waste-free, but nothing else is extraneous.

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

Completeness3/5

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

An output schema exists, so return shape need not be explained, and the microversion caveat is a helpful addition. However, for a five-filter list tool the description gives no guidance on how the volume_id, instance_id and project_id filters interact or what an empty list implies, leaving the main operational ambiguity unaddressed.

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 every one of the five parameters is already documented in the schema, including the marker's next_marker semantics and project_id's get_scope pointer. The description's note that paging uses limit and marker merely restates what the schema says, adding no filter-combination semantics (e.g., volume_id vs instance_id).

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 and resource (list Cinder attachment records) plus a scope qualifier (API microversion 3.27 or later), which is enough to distinguish it from the single-record sibling get_volume_attachment. It never names that sibling explicitly, so the differentiation is implicit rather than stated.

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

Usage Guidelines2/5

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

No when-to-use guidance and no alternatives are named; the agent gets no instruction about using get_volume_attachment for a single record or about which of the five optional filters to combine. The only soft hint is that connection details are not returned, implying another call covers that, but this is left to inference.

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