Skip to main content
Glama
akuity
by akuity

get_application

Retrieve application details by providing the application name using the tool on the argocd-mcp server for streamlined management.

Instructions

get_application returns application by application name

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
applicationNameYes

Implementation Reference

  • Registers the MCP tool 'get_application' with Zod input schema (applicationName required, applicationNamespace optional) and async handler that calls ArgoCDClient.getApplication
    this.addJsonOutputTool( 'get_application', 'get_application returns application by application name. Optionally specify the application namespace to get applications from non-default namespaces.', { applicationName: z.string(), applicationNamespace: ApplicationNamespaceSchema.optional() }, async ({ applicationName, applicationNamespace }) => await this.argocdClient.getApplication(applicationName, applicationNamespace) );
  • Core handler logic for fetching a specific ArgoCD application via HTTP GET to the ArgoCD API endpoint, including optional namespace query parameter
    public async getApplication(applicationName: string, appNamespace?: string) { const queryParams = appNamespace ? { appNamespace } : undefined; const { body } = await this.client.get<V1alpha1Application>( `/api/v1/applications/${applicationName}`, queryParams ); return body; }
  • Zod schema definition for applicationNamespace used in the tool's input validation
    export const ApplicationNamespaceSchema = z

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