Skip to main content
Glama
tao12345666333

Civo MCP Server

list_sizes

Retrieve available instance sizes on the Civo cloud platform to select appropriate compute resources for your cloud infrastructure needs.

Instructions

List available instance sizes on Civo

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler for the 'list_sizes' tool call in the CallToolRequestSchema switch statement. It invokes listSizes(), formats the sizes into a text list, and returns the MCP-formatted response.
    case 'list_sizes': { const sizes = await listSizes(); const sizeList = sizes .map((s: any) => `${s.name} - ${s.description}`) .join('\n'); return { content: [ { type: 'text', text: `Available Sizes:\n${sizeList}`, }, ], isError: false, }; }
  • Tool schema definition for 'list_sizes', including name, description, and empty input schema (no parameters required).
    export const LIST_SIZES_TOOL: Tool = { name: 'list_sizes', description: 'List available instance sizes on Civo', inputSchema: { type: 'object', properties: {}, }, };
  • src/index.ts:80-80 (registration)
    Registers the 'list_sizes' tool in the server capabilities.tools object.
    [LIST_SIZES_TOOL.name]: LIST_SIZES_TOOL,
  • src/index.ts:107-107 (registration)
    Includes 'list_sizes' tool in the ListToolsRequestHandler response.
    LIST_SIZES_TOOL,
  • Core helper function that fetches instance sizes from the Civo API.
    export async function listSizes(): Promise<Size[]> { const url = `${CIVO_API_URL}/sizes`; const response = await fetch(url, { headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${CIVO_API_KEY}`, }, }); if (!response.ok) { throw new Error(`Failed to list sizes: ${response.statusText}`); } return await response.json(); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tao12345666333/civo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server