Skip to main content
Glama

list_kubernetes_versions

Retrieve available Kubernetes versions for cluster creation or upgrades on the Civo cloud platform.

Instructions

List available Kubernetes versions on Civo

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Tool handler in the switch statement that calls listAvailableVersions, formats the versions list, and returns the response.
    case 'list_kubernetes_versions': { const versions = await listAvailableVersions(); const versionList = versions .map((v: any) => `${v.Version} - ${v.Label} (${v.Type}) [${v.ClusterType}]${v.Default ? ' *DEFAULT*' : ''}`) .join('\n'); return { content: [ { type: 'text', text: `Available Kubernetes Versions:\n${versionList}`, }, ], isError: false, }; }
  • Tool metadata and input schema definition (no input parameters required).
    export const LIST_KUBERNETES_VERSIONS_TOOL: Tool = { name: 'list_kubernetes_versions', description: 'List available Kubernetes versions on Civo', inputSchema: { type: 'object', properties: {}, }, };
  • Core helper function that fetches the list of available Kubernetes versions from the Civo API.
    export async function listAvailableVersions(): Promise< CivoKubernetesVersion[] > { checkRateLimit(); const url = `${CIVO_API_URL}/kubernetes/versions`; const response = await fetch(url, { headers: { Authorization: `Bearer ${CIVO_API_KEY}`, }, }); if (!response.ok) { throw new Error( `Civo API error: ${response.status} ${response.statusText}` ); } return response.json(); }
  • src/index.ts:86-90 (registration)
    Registration of Kubernetes tools, including list_kubernetes_versions, in the server capabilities.tools dictionary.
    [LIST_KUBERNETES_CLUSTERS_TOOL.name]: LIST_KUBERNETES_CLUSTERS_TOOL, [CREATE_KUBERNETES_CLUSTER_TOOL.name]: CREATE_KUBERNETES_CLUSTER_TOOL, [DELETE_KUBERNETES_CLUSTER_TOOL.name]: DELETE_KUBERNETES_CLUSTER_TOOL, [LIST_KUBERNETES_VERSIONS_TOOL.name]: LIST_KUBERNETES_VERSIONS_TOOL, },

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