Skip to main content
Glama

Set cluster variable

set_cluster_variable

Create or update (upsert) a variable on the current cluster, overriding any organisation variable of the same name. Stack members that interpolate it re-render on the cluster's next reconcile (reconcile_cluster forces one). Variables are plain configuration - a value that looks like a secret is refused; store secrets with SOPS instead.

Input Schema

NameRequiredDescriptionDefault
nameYesVariable name as referenced in ${{ ankra.variables.<name> }}.
valueYesThe value. May be empty.
cluster_idYesAnkra cluster id (UUID) the call targets. Discover ids with list_clusters.
descriptionNoOptional free-text note on what the variable configures.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations it discloses the upsert/override semantics, the delayed effect (re-render only on next reconcile, with reconcile_cluster as the forcing call), and a hard input constraint that rejects secret-looking values. That is real behavioral context the annotations do not carry. The one unresolved point is that 'upsert' reads as idempotent while idempotentHint is false, and the description never explains what (if anything) is returned.

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

Conciseness5/5

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

Three tight sentences, each carrying distinct load: what it does, when the effect lands, and what it must not be used for. The defining constraint (upsert onto the cluster, shadowing org variables) is front-loaded with no preamble.

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

Completeness4/5

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

For a 4-parameter mutation tool with full schema coverage and annotations, the description covers the mutation semantics, propagation timing, a cross-tool reference (reconcile_cluster), and the secret-refusal guard. The main omission is any statement of what the call returns, which matters slightly because no output schema exists.

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 description coverage is 100%, so every parameter is already documented, including the ${{ ankra.variables.<name> }} reference form and how to discover cluster_id. The description adds no per-parameter meaning beyond the schema — its value is behavioral (re-render timing, secret rejection), not semantic. Baseline 3 is appropriate.

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?

The description opens with a specific verb and resource — 'Create or update (upsert) a variable on the current cluster' — and immediately scopes it against organisation-level variables of the same name. An agent can distinguish this from set_organisation_variable and delete_cluster_variable 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 Guidelines4/5

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

It states the condition for use (cluster-scoped config that should shadow an org variable) and gives an explicit exclusion: 'a value that looks like a secret is refused; store secrets with SOPS instead.' It also tells the agent how to force propagation via reconcile_cluster. It stops short of naming set_organisation_variable as the sibling to pick when cluster-scoped overriding is not wanted.

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.