Skip to main content
Glama
srinivassrinu842

AAP MCP Server

aap_get_failed_jobs

Read-only

Retrieve failed AAP jobs from the last N hours, filterable by job template and limit. Get job IDs, names, and timestamps to troubleshoot automation failures.

Instructions

List failed AAP jobs within the last N hours.

Example: "Show failed jobs from the last 24 hours"

Args: params (GetFailedJobsInput): - hours (int): Look-back window in hours (default 24) - limit (int): Max results (default 20) - job_template (Optional[str]): Filter by template name

Returns: str: JSON with list of failed jobs including id, name, started, finished, elapsed, and template name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false. The description adds context about the returned fields (id, name, started, finished, elapsed, template name) and the filtering parameters, which enriches the behavioral understanding beyond the annotations. There is no contradiction.

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 compact and front-loaded: a one-line purpose, an example, a structured Args section, and a Returns section. Every sentence contributes useful information without extraneous text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only list tool with an output schema, the description covers purpose, parameters, and return format. It lacks explicit guidance on pagination or alternative tool selection, but it is sufficiently complete for an agent to invoke correctly.

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?

Although the schema has descriptions for each parameter, the context signal indicates 0% schema description coverage, so the description's explicit listing of hours, limit, and job_template with meanings and defaults compensates effectively. It clarifies the look-back window, result limit, and optional template filter, though it omits min/max bounds (present in schema).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description starts with a specific verb ('List') and resource ('failed AAP jobs') and adds a time window scope ('within the last N hours'). This distinguishes it from sibling tools like aap_list_running_jobs and aap_get_job_output, making its purpose unambiguous.

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?

The description provides an example ('Show failed jobs from the last 24 hours') and details the hour/limit/template parameters, implying it is for listing recent failed jobs. However, it does not explicitly state when to use this tool instead of alternatives like listing running jobs or querying job output, nor does it mention any exclusions.

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

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/srinivassrinu842/aap-mcp-server'

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