Skip to main content
Glama

argocd-app-status

Check the deployment status of ArgoCD applications in Kubernetes clusters to monitor sync health and resource conditions.

Instructions

Get the status of an ArgoCD application

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appYesThe name of the ArgoCD application
namespaceNoThe namespace of the application (optional, defaults to argocd namespace)

Implementation Reference

  • The handler function for the 'argocd-app-status' tool. It destructures the app name and optional namespace (defaulting to 'argocd'), constructs a kubectl command to get the application YAML, executes it using execAsync, and returns the stdout or a fallback message.
    case "argocd-app-status": { const { app, namespace = "argocd" } = args; const cmd = `kubectl get application ${app} -n ${namespace} -o yaml`; const { stdout } = await execAsync(cmd); return { content: [{ type: "text", text: stdout || "ArgoCD application not found" }] }; }
  • The tool definition object in the 'tools' array, which serves as both registration (listed for ListToolsRequest) and schema (defines inputSchema with required 'app' parameter and optional 'namespace'). This is used by the MCP server to advertise and validate tool calls.
    { name: "argocd-app-status", description: "Get the status of an ArgoCD application", inputSchema: { type: "object", properties: { app: { type: "string", description: "The name of the ArgoCD application" }, namespace: { type: "string", description: "The namespace of the application (optional, defaults to argocd namespace)" } }, required: ["app"] } },
  • server.js:1392-1394 (registration)
    The request handler for ListToolsRequestSchema that returns the entire 'tools' array, effectively registering all tools including 'argocd-app-status' for discovery by MCP clients.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thekaranpargaie/kube-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server