Skip to main content
Glama

import_cluster

Import an EXISTING Kubernetes cluster into Ankra - any distribution, any provider, anywhere (EKS, GKE, AKS, k3s, kind, on-premises). This is how a cluster that already runs is brought under Ankra management, and it is NOT the same as the create_*_cluster / create_managed_cluster tools, which provision brand-new billable cloud infrastructure. Use this one whenever the user says import, onboard, connect, add, or bring in a cluster they already have. Two steps by design: this call registers the cluster and returns import_command, the command that installs the Ankra Agent; the operator then runs it against that cluster's kubeconfig, because Ankra has no route into a cluster it has not met. The cluster reports 'offline' until the agent checks in. Only onboards NEW clusters - a name that already exists is refused rather than reconfigured. It does not connect a GitOps repository; use connect_gitops_repository afterwards for that.

Input Schema

NameRequiredDescriptionDefault
nameYesName the cluster gets in Ankra. Alphanumeric with dashes and underscores, and unique in the organisation - an existing name is refused, not overwritten.
descriptionNoOptional free-text description of what this cluster is for.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only cover readOnly/idempotent/destructive hints; the description goes well beyond them by disclosing the two-step design, that the call returns import_command, that the agent must be run against the cluster's kubeconfig, that the cluster shows 'offline' until check-in, and that existing names are refused rather than reconfigured. These details materially affect how an agent plans the operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the key differentiator are front-loaded, and almost every sentence conveys actionable information. Minor redundancy in 'any distribution, any provider, anywhere' followed by a provider list, but overall tight for the behavior it needs to convey.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description compensates by describing the return value (import_command) and the post-call cluster state. It also covers prerequisites and the sequencing to connect_gitops_repository, leaving nothing an agent needs to invoke this correctly unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with only two fully documented parameters, so the schema already carries the parameter burden. The description reiterates the name-uniqueness rule ('a name that already exists is refused rather than reconfigured') but adds no new syntax or format detail, making the baseline 3 correct.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Import an EXISTING Kubernetes cluster into Ankra') and explicitly distinguishes itself from the create_*_cluster / create_managed_cluster siblings that provision new infrastructure. An agent can select it correctly without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing cues — 'Use this one whenever the user says import, onboard, connect, add, or bring in a cluster they already have' — plus a named follow-up alternative (connect_gitops_repository) for GitOps, and states what it is not for.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources