Skip to main content
Glama

Opsphere — DevOps & SRE Intelligence

K8s Auto-Diagnosis from Notification

k8s_autodiag_notification

SSO en el profile indicado, deduce el Application y el cluster de Argo desde la notificación; si el CRD no está, busca por la etiqueta argocd.argoproj.io/instance=. Devuelve ~100 líneas de logs.

Input Schema

NameRequiredDescriptionDefault
tailNo
contextNo
profileYesWorkload cluster (e.g. your-tenant-pre | -tst | -prd)
context_idNoOptional explicit Connection Hub work context (ctx_*). Omit to use the conversation's active workspace; global Hub tools ignore it.
notificationYesTexto/pega completo de la notificación

Output Schema

NameRequiredDescriptionDefault
okYes
dataYes
contractVersionYes
dataSchemaVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed19 schema fields changed
    • changedOutput schema / properties / data / additionalProperties
      Previous value: -trueNew value: +false
    • removedOutput schema / properties / data / properties / apiVersion
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / data / properties / channel
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / data / properties / context
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / data / properties / count
      Removed value: -{
      -  "type": "number"
      -}
    • addedOutput schema / properties / data / properties / delivered
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / data / properties / gaps
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / data / properties / items
      Removed value: -{
      -  "items": {
      -    "additionalProperties": true,
      -    "properties": {},
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / data / properties / kind
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / data / properties / metadata
      Removed value: -{
      -  "$ref": "#/properties/data/properties/items/items"
      -}
    • removedOutput schema / properties / data / properties / namespace
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / data / properties / partial
      Added value: +{
      +  "type": "boolean"
      +}
    • removedOutput schema / properties / data / properties / status
      Removed value: -{
      -  "$ref": "#/properties/data/properties/items/items"
      -}
    • addedOutput schema / properties / data / properties / summary
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / truncated
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / data / properties / warnings
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / data / required
      Added value: +[
      +  "delivered",
      +  "partial",
      +  "truncated",
      +  "warnings",
      +  "gaps"
      +]
    • addedOutput schema / properties / dataSchemaVersion
      Added value: +{
      +  "const": 2,
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "contractVersion",
      -  "ok",
      -  "data"
      -]New value: +[
      +  "contractVersion",
      +  "dataSchemaVersion",
      +  "ok",
      +  "data"
      +]
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, and the description is consistent with a tool that mutates SSO session state. The description usefully discloses the SSO precondition and the CRD-missing fallback path, but does not explain side effects, permission needs, or the meaning of the readOnly=false hint.

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?

A single compact sentence chain that front-loads the SSO step and the deduction logic. It is dense with semicolons but wastes no words; a minor readability cost rather than bloat.

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?

An output schema exists so return values need no elaboration, and the main resolution path is covered. However, for a 5-parameter tool with 60% schema coverage and a non-read-only annotation, the description leaves the context/tail parameters and the side effects of the SSO step under-specified.

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 60%: profile, context_id and notification are documented in the schema, while tail and context are not. The description ties 'profile' and 'notificación' to the workflow and explains the ~100-line default that maps to the tail parameter, but adds nothing about context, context_id or tail bounds.

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 workflow: perform SSO on the given profile, deduce the Argo Application and cluster from the notification, fall back to a label lookup (argocd.argoproj.io/instance=<app>), and return logs. It is clear what the tool produces, though it never explicitly frames the output as a diagnosis and the 'autodiagnóstico' intent is only implied by the name.

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?

Usage is only implied: you have a notification and want to triage it. There is no explicit when-to-use guidance, no mention of alternatives such as argocd_debug, argocd_app_unhealthy or k8s_describe, and no statement of when not to use it.

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