Skip to main content
Glama

Force sync external secret

k8s_force_sync_external_secret

Force an ExternalSecret to re-read its store and verify a newer refresh with Ready=True; delete the target Secret when needed to make the controller recreate it if annotation-only sync stalls.

Instructions

Force an ExternalSecret to re-read its store now, and prove it did.

Sets the force-sync annotation to a new value, then waits until the controller reports a newer refreshTime with Ready=True. When the refresh does not happen in time, or recreate_target is true, the target Secret is deleted so the controller must recreate it from the store (the step that works when an annotation alone is ignored, e.g. a controller queue stuck behind failing objects). Reports the target Secret's data digest before and after; values are never returned.

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": {
      "name": "<name>"
    },
    "name": "k8s_force_sync_external_secret"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
namespaceNo
recreate_targetNo
timeout_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

A4.3/5.0
Behavior4/5

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

Rich disclosure beyond the annotations: the annotation bump, the wait condition on refreshTime plus Ready=True, the fallback that deletes the target Secret, and the guarantee that values are never returned. The one tension is that deleting the target Secret is arguably destructive even though destructiveHint=false; the description mitigates this by framing it as a recreate-from-store step, so the agent is not surprised, but the mismatch is not explicitly reconciled.

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 action and the proof, followed by mechanics and the fallback path in a logical order. The parenthetical example is useful but lengthens an already dense passage; a small amount of tightening is possible.

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?

No output schema exists, and the description compensates by stating what is reported (target Secret data digest before and after, values never returned), which is exactly what an agent needs to interpret the result. The two undocumented schema parameters (namespace, context) are the only remaining gap for a 5-parameter mutation tool.

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

Parameters4/5

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

With only 20% schema description coverage, the description carries the burden and does: it explains the semantics of recreate_target (delete target Secret so the controller must recreate it), timeout_seconds ('when the refresh does not happen in time'), and implies name is the ExternalSecret to act on. It leaves namespace and context undocumented, which keeps it below a 5.

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 opening sentence gives a precise verb and resource ('Force an ExternalSecret to re-read its store now') plus an output promise ('prove it did'), which separates it cleanly from list/get/secret-creation siblings. An agent can tell exactly what this does without opening the 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?

The description explains the operational context in which it is needed: 'the step that works when an annotation alone is ignored, e.g. a controller queue stuck behind failing objects,' and it gives a condition for setting recreate_target. It does not name a specific alternative to try first (e.g. reading the ExternalSecret or waiting) or state a when-not-to-use case, so it falls short of explicit routing.

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

Deploy Server

Other Tools