Home / Servers / Linode API / post_add_linode_disk

Create a disk

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

Create a disk Add a new disk to an existing Linode. You can create an empty disk to manually configure it later. You can also target a stored image to build the disk using a pre-configured file system--either… [POST /v4/linode/instances/{linodeId}/disks]

Name on the gateway: linode_api__post_add_linode_disk · may change things.

Parameters

NameTypeDescription
linodeId requiredintegerID of the Linode to look up.
authorized_keysarray__Write-only__ A list of public SSH keys that will be automatically appended…
authorized_usersarray__Write-only__ A list of usernames for authorized users. Before you can add a…
filesystemraw | swap | ext2 | ext3 | ext4 | initrdThe disk's format or file system. A value of raw indicates no file system…
imagestringAn Image ID to deploy the Linode Disk from. Run the List images operation with…
labelstring__Filterable__ The name of the disk. This is for display purposes only.
root_passstring__Write-only__ This sets the root user's password on a newly created Linode…
size requiredinteger__Filterable__ The size of the Disk in MB. Images require a minimum size. Run…
stackscript_dataobjectThis field is required only if the StackScript being deployed requires input…
stackscript_idintegerA StackScript ID that will cause the referenced StackScript to be run during…

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_add_linode_disk",
  "arguments": {
    "linodeId": 0,
    "size": 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 create a disk tool with linodeId set to ….

More from Linode API