Skip to main content
Glama
akuity
by akuity

get_resource_events

Retrieve Kubernetes events for resources managed by ArgoCD applications to monitor deployment status and troubleshoot issues.

Instructions

get_resource_events returns events for a resource that is managed by an application

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
applicationNameYes
applicationNamespaceYesThe namespace where the ArgoCD application resource will be created. This is the namespace of the Application resource itself, not the destination namespace for the application's resources. You can specify any valid Kubernetes namespace (e.g., 'argocd', 'argocd-apps', 'my-namespace', etc.). The default ArgoCD namespace is typically 'argocd', but you can use any namespace you prefer.
resourceUIDYes
resourceNamespaceYes
resourceNameYes

Implementation Reference

  • The core handler function that implements the logic to fetch events for a specific resource managed by an ArgoCD application via the ArgoCD API.
    public async getResourceEvents( applicationName: string, applicationNamespace: string, resourceUID: string, resourceNamespace: string, resourceName: string ) { const { body } = await this.client.get<V1EventList>( `/api/v1/applications/${applicationName}/events`, { appNamespace: applicationNamespace, resourceNamespace, resourceUID, resourceName } ); return body; }
  • MCP tool registration for 'get_resource_events', including Zod input schema and wrapper handler that calls the ArgoCD client method.
    this.addJsonOutputTool( 'get_resource_events', 'get_resource_events returns events for a resource that is managed by an application', { applicationName: z.string(), applicationNamespace: ApplicationNamespaceSchema, resourceUID: z.string(), resourceNamespace: z.string(), resourceName: z.string() }, async ({ applicationName, applicationNamespace, resourceUID, resourceNamespace, resourceName }) => await this.argocdClient.getResourceEvents( applicationName, applicationNamespace, resourceUID, resourceNamespace, resourceName ) );

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/akuity/argocd-mcp'

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