Skip to main content
Glama

get_application_details

Retrieve detailed information about a specific ArgoCD application by providing its name, with optional filters for project, namespace, and refresh settings.

Instructions

Get details for a specific application

Args:
    name: The application name (required)
    project: The project name (optional filter)
    refresh: Forces application reconciliation if set to 'hard' or 'normal'
    namespace: Filter by application namespace

Returns:
    Application details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
namespaceNo
projectNo
refreshNo

Implementation Reference

  • The handler function that retrieves detailed information for a specific ArgoCD application by making an API request to /applications/{name} with optional filters.
    async def get_application_details(
        name: str, project: str = "", refresh: str = "", namespace: str = ""
    ) -> Dict[str, Any]:
        """
        Get details for a specific application
    
        Args:
            name: The application name (required)
            project: The project name (optional filter)
            refresh: Forces application reconciliation if set to 'hard' or 'normal'
            namespace: Filter by application namespace
    
        Returns:
            Application details
        """
        params = {}
    
        if project:
            params["project"] = project
    
        if refresh in ["hard", "normal"]:
            params["refresh"] = refresh
    
        if namespace:
            params["appNamespace"] = namespace
    
        success, data = await make_api_request(f"applications/{name}", params=params)
    
        if success:
            return data
        else:
            return {
                "error": data.get(
                    "error", f"Failed to get details for application '{name}'"
                )
            }
  • server.py:42-42 (registration)
    Registers the get_application_details function as an MCP tool in the FastMCP server.
    mcp.tool()(applications.get_application_details)
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions that 'refresh' forces application reconciliation, which is useful behavioral context. However, it doesn't disclose other important traits like whether this is a read-only operation (implied by 'get' but not explicit), authentication requirements, rate limits, error conditions, or what happens if the application doesn't exist. The description adds some value but leaves significant gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and appropriately sized. It starts with a clear purpose statement, then lists parameters with brief explanations, and ends with return information. Every sentence earns its place, with no redundant or verbose content. The bullet-like format for Args and Returns enhances readability without sacrificing conciseness.

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?

Given 4 parameters with 0% schema coverage and no output schema, the description does a decent job explaining parameters but has gaps. It doesn't fully describe the return value ('Application details' is vague), error handling, or behavioral constraints. For a tool with moderate complexity and no annotations/output schema, this is minimally adequate but could be more complete to help the agent understand execution outcomes.

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?

Schema description coverage is 0%, so the description must compensate. It provides meaningful explanations for all 4 parameters: 'name' is required for the application, 'project' is an optional filter, 'refresh' controls reconciliation behavior, and 'namespace' filters by namespace. This adds substantial value beyond the bare schema, though it doesn't specify format constraints (e.g., string patterns) or the exact effect of 'refresh' values.

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 clearly states the verb ('Get details') and resource ('for a specific application'), making the purpose immediately understandable. It distinguishes from siblings like 'list_applications' (which lists multiple) and 'create_application' (which creates new). However, it doesn't explicitly differentiate from 'get_plugins' or 'get_settings' which might also retrieve details about related resources.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. For example, it doesn't explain when to use 'get_application_details' versus 'list_applications' (e.g., for single vs. multiple applications) or 'sync_application' (e.g., for refreshing state). There's also no mention of prerequisites or dependencies with other tools.

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

Install Server

Other Tools

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

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