Skip to main content
Glama

Make a GitOps application re-read git

gitops_refresh

Triggers a GitOps controller to re-compare an application against Git without changing cluster state; optionally discards cached manifests for a fresh comparison.

Instructions

Asks the controller to compare against git again. Nothing in the cluster changes, which is why it is not a write.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "controller": "<controller>",
      "application": "<application>"
    },
    "name": "gitops_refresh"
  }
}

Input Schema

NameRequiredDescriptionDefault
hardNodiscard the manifest cache too
controllerYescontroller id or name
applicationYesapplication name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the burden of behavioral disclosure and does well by stating that nothing in the cluster changes and that the operation is not a write. It does not discuss authentication needs, controller-side effects, or how the 'hard' parameter changes cache behavior, but the core safety trait is explicitly covered.

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?

The description is two short sentences and front-loads the action before adding the safety note. Every sentence contributes useful information without unnecessary detail.

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

Completeness3/5

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

The tool has three parameters and no annotations or output schema. The description covers the core safety behavior but leaves gaps around usage guidance and the effect of the 'hard' option. It is adequate but not fully complete for a tool with no annotation support.

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 the schema already documents the controller, application, and hard parameters. The description does not add meaning beyond the schema for any parameter. A baseline score of 3 is appropriate when the schema fully covers parameter semantics.

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

Purpose4/5

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

The description states a specific action: asking the controller to compare against git again. It is clear what the tool does and uses a concrete verb+resource framing. It does not explicitly distinguish itself from the sibling gitops tool, but the refresh action is still identifiable.

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

Usage Guidelines3/5

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

The description implies the tool is used when the agent wants the controller to re-read git, and the 'not a write' note suggests safe usage. However, it does not explicitly say when to use this versus alternatives, nor does it provide exclusions or conditions for choosing refresh over other gitops-related operations.

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