Skip to main content
Glama
@incidentpilot/mcp-aws

@incidentpilot/mcp-aws

lambda_get_recent_invocations

Retrieve recent CloudWatch invocation metrics for a Lambda function to investigate incidents and diagnose performance issues.

Instructions

Get recent invocation metrics from CloudWatch for a Lambda function

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "functionName": "<functionName>"
    },
    "name": "lambda_get_recent_invocations"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoThe granularity in seconds (minimum 60)
regionNoAWS region
functionNameYesThe function name
timeRangeMinutesNoTime range in minutes (default 60, max 1440 = 24 hours)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the entire behavioral burden and does not meet it. It does not say whether results are read-only, what metric set is returned (invocations only, or errors/duration/throttles too), whether missing data yields empty results or an error, or whether the call fans out across a time range. Only the CloudWatch data source is disclosed, which is useful but minimal.

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

Conciseness4/5

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

A single front-loaded sentence with no filler or redundancy. It is efficient, though the brevity borders on under-specification given the tool's query semantics.

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

Completeness2/5

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

For a metrics-retrieval tool with four parameters, no annotations, and no output schema, the description leaves the agent guessing about the payload it will receive. It should at minimum say which invocation metrics are returned and how the time window and period combine to shape the response.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with period, region, functionName, and timeRangeMinutes all documented including defaults and min/max bounds, so the baseline of 3 applies. The description adds nothing beyond the schema — for example, it does not explain how period interacts with timeRangeMinutes or how many data points that produces.

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 names a concrete verb and resource: fetching recent CloudWatch invocation metrics for a Lambda function. It is clear what the tool does, but it does not differentiate itself from nearby tools such as cloudwatch_get_metrics or lambda_get_function_config, so an agent must infer the boundary from names alone.

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?

There is no when-to-use guidance, no stated prerequisites (e.g., that the function must exist and be emitting metrics), and no mention of when to prefer this over cloudwatch_get_metrics. The only usage signal is the word 'recent', which is not quantified in the description.

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