Skip to main content
Glama

get_gitops_status

Read-only

The GitOps sync state of a cluster (the twin of ankra cluster gitops status): the connected repository and branch with the credential it authenticates with, sync status and phase, the last synced and pending commits, the last error, and two silent-breakage signals the portal's overview hides - credential_missing (the binding names a credential that no longer exists) and source_mismatch (the last sync resolved a different repository than the one configured). Use this before blaming a stack when a change committed to Git has not reached the cluster. Read-only.

Input Schema

NameRequiredDescriptionDefault
cluster_idNoUUID of the target cluster. Optional when a cluster is selected.
cluster_nameNoExact name of the target cluster. Optional when a cluster is selected.

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?

Annotations only declare readOnlyHint=true, and the description confirms 'Read-only' plus adds substantive behavioral context the annotations cannot: it calls out credential_missing and source_mismatch as silent-breakage signals that the portal's overview hides, and describes the credential binding semantics. It stops short of noting auth requirements, pagination, or freshness of the sync data.

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?

Front-loaded with the core answer and densely informative without filler; the usage trigger arrives early. The middle sentence is a long comma-separated enumeration that is slightly heavy, but every element listed is a real return field and earns its place given no output schema exists.

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 carries the burden of describing returns and does so thoroughly, including the two non-obvious failure signals an agent would otherwise misread. Combined with the CLI twin reference ('ankra cluster gitops status'), an agent has everything needed to call and interpret it.

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 cluster_id and cluster_name are already documented (including that either is optional when a cluster is selected). The description adds nothing about which identifier takes precedence or how they resolve, so this sits at the schema-does-the-work baseline.

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 resource and scope: 'The GitOps sync state of a cluster', then enumerates exactly what it returns (repository/branch, credential, sync status and phase, last synced and pending commits, last error, silent-breakage signals). It maps unambiguously to a distinct concern no sibling covers (list_gitops_conflicts and get_gitops_conflict_diff are about conflicts, not sync state).

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?

Gives an explicit trigger condition: 'Use this before blaming a stack when a change committed to Git has not reached the cluster.' That tells the agent when to reach for this tool versus diagnosing the stack itself. It does not, however, name when-not or point at specific sibling alternatives (e.g. get_gitops_conflict_diff for conflict investigation).

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