Home / Servers / Linode API / post_attach_volume

Attach a volume

An MCP tool from the Linode API server, hosted on mcp.hjlabs.in.

Attach a volume Attach a Block Storage volume to an existing Linode. > 📘 > > - To run this operation, your user needs the read-write permission to both the volume and the Linode you want to add it to. > > - The… [POST /v4/volumes/{volumeId}/attach]

Name on the gateway: linode_api__post_attach_volume · may change things.

Parameters

NameTypeDescription
volumeId requiredintegerThe unique identifier for the target volume. Run the List…
config_idintegerThe unique identifier assigned to the Linode configuration where you want to…
linode_id requiredintegerThe unique identifier assigned to the Linode where you want to attach the…
persist_across_bootsbooleanIf set to false, the volume won't be attached to the Linode configuration. In…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "linode_api__post_attach_volume",
  "arguments": {
    "volumeId": 0,
    "linode_id": 0
  }
}

Or connect the Linode API server directly, which lists 439 tools including this one:

Run in your terminal
claude mcp add --transport http hj-linode-api https://mcp.hjlabs.in/mcp/linode-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the attach a volume tool with volumeId set to ….

More from Linode API