Skip to content

list_volumes

List cached volumes on one explicit Server with exact names, driver class, scope, size and cached use. Core Read only. Volumes have no immutable IDs in Core lists. Bounded local output does not bound Docker enumeration or establish prune eligibility.

Availability

Available under the default capability policy

The instance’s tool selection and upstream Core permissions also apply. Some inputs require additional grants.

Effect annotations

  • readOnlyHint — true
  • destructiveHint — false
  • idempotentHint — true

Inputs

The registered schema gives field types, alternatives and declared bounds. The description and operator guides also cover checks applied at runtime.

page
type "integer" · minimum 0 · default 0
page_size
type "integer" · minimum 1 · maximum 100 · default 30
target
Required · Schema DetailInput
Show input JSON Schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "page": {
      "default": 0,
      "format": "uint64",
      "minimum": 0,
      "type": "integer"
    },
    "page_size": {
      "default": 30,
      "format": "uint64",
      "maximum": 100,
      "minimum": 1,
      "type": "integer"
    },
    "target": {
      "$ref": "#/$defs/DetailInput"
    }
  },
  "required": [
    "target"
  ],
  "$defs": {
    "DetailInput": {
      "additionalProperties": false,
      "oneOf": [
        {
          "required": [
            "id"
          ]
        },
        {
          "required": [
            "name"
          ]
        }
      ],
      "properties": {
        "id": {
          "description": "Exact stable resource ID returned by a list tool.",
          "pattern": "^[0-9a-fA-F]{24}$",
          "type": "string"
        },
        "name": {
          "description": "Exact, case-sensitive name within this family; never interpreted as an ID.",
          "minLength": 1,
          "pattern": "\\S",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}

Output

The registered output schema covers structured results and tool errors.

Observation
data, evidence_limit, server, source
AppError
candidates, correction, field, kind, message, operation, status
Show output JSON Schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "anyOf": [
    {
      "$ref": "#/$defs/Observation"
    },
    {
      "$ref": "#/$defs/AppError"
    }
  ],
  "$defs": {
    "AppError": {
      "additionalProperties": false,
      "description": "Only application-owned messages and selected, nonsensitive metadata survive.",
      "properties": {
        "candidates": {
          "items": {
            "$ref": "#/$defs/Candidate"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "correction": {
          "type": [
            "string",
            "null"
          ]
        },
        "field": {
          "type": [
            "string",
            "null"
          ]
        },
        "kind": {
          "$ref": "#/$defs/ErrorKind"
        },
        "message": {
          "type": "string"
        },
        "operation": {
          "type": "string"
        },
        "status": {
          "format": "uint16",
          "maximum": 65535,
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "kind",
        "message",
        "operation"
      ],
      "type": "object"
    },
    "Candidate": {
      "additionalProperties": false,
      "description": "A bounded ambiguity hint, never a raw upstream resource.",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "type": "object"
    },
    "ErrorKind": {
      "description": "Stable public categories. No variant contains a raw upstream error.",
      "enum": [
        "invalid_arguments",
        "not_found",
        "ambiguous_target",
        "incomplete_resolution",
        "configuration",
        "authentication",
        "permission_denied",
        "timeout",
        "unreachable",
        "upstream",
        "invalid_response",
        "response_too_large",
        "capability_disabled",
        "unsupported_target",
        "stale_preview",
        "invalid_preview"
      ],
      "type": "string"
    },
    "Observation": {
      "properties": {
        "data": {
          "$ref": "#/$defs/Page"
        },
        "evidence_limit": {
          "type": "string"
        },
        "server": {
          "$ref": "#/$defs/Server"
        },
        "source": {
          "type": "string"
        }
      },
      "required": [
        "server",
        "source",
        "evidence_limit",
        "data"
      ],
      "type": "object"
    },
    "Page": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/$defs/VolumeSummary"
          },
          "type": "array"
        },
        "next_page": {
          "format": "uint64",
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "observed_count": {
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "page": {
          "format": "uint64",
          "minimum": 0,
          "type": "integer"
        },
        "page_size": {
          "format": "uint64",
          "minimum": 0,
          "type": "integer"
        },
        "scan_incomplete": {
          "type": "boolean"
        }
      },
      "required": [
        "items",
        "page",
        "page_size",
        "next_page",
        "observed_count",
        "scan_incomplete"
      ],
      "type": "object"
    },
    "Server": {
      "properties": {
        "cached_state": {
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "id": {
          "type": "string"
        },
        "infrastructure_error_present": {
          "type": "boolean"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "cached_state",
        "enabled",
        "infrastructure_error_present"
      ],
      "type": "object"
    },
    "VolumeSummary": {
      "properties": {
        "cached_in_use": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "created": {
          "type": [
            "string",
            "null"
          ]
        },
        "driver": {
          "type": "string"
        },
        "name": {
          "description": "Docker volumes have names, not stable immutable object IDs in Core lists.",
          "type": "string"
        },
        "reference_count": {
          "format": "int64",
          "type": [
            "integer",
            "null"
          ]
        },
        "scope": {
          "type": "string"
        },
        "size_bytes": {
          "format": "int64",
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "name",
        "driver",
        "scope",
        "created",
        "size_bytes",
        "cached_in_use",
        "reference_count"
      ],
      "type": "object"
    }
  }
}

Operator guides

All built-in tools