Skip to main content
Glama
AWS Health MCP Server

AWS Health MCP Server

Official
by aws-samples

count_affected_entities

Read-onlyIdempotent

Count how many AWS resources an event affects without listing them, giving a quick blast radius before querying entity details.

Instructions

Count the resources affected by events, without listing them.

Use this before the entity-listing tools when an event could touch thousands of resources.

Args: event_arns: One or more event ARNs.

Example prompts:

  • "How many instances does this retirement event affect?"

  • "What's the blast radius of these events?"

Input Schema

NameRequiredDescriptionDefault
event_arnsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.1

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), so the remaining burden is light. The description adds the useful trait that results are a count rather than a resource list, motivating it for large blast radii, but says nothing about result accuracy, truncation, or cross-account scope.

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?

Front-loaded with the core action and the alternative-routing rule, then a short arg note and example prompts. Nothing is redundant, though the example prompts partly duplicate the usage sentence.

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?

With an output schema covering the return value and annotations covering safety, the description only needs to convey purpose, scale rationale, and the one input's meaning. It does all three at a basic level; only ARN input specifics are thin.

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

Parameters2/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 carry parameter meaning, and it only restates the parameter ('event_arns: One or more event ARNs'). No ARN format, batching limits, or whether mixed event types are allowed are given beyond what the schema name implies.

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?

States a specific verb and resource (count affected resources) and immediately distinguishes itself from the listing siblings with 'without listing them'. An agent can tell it apart from get_affected_entities without opening either schema.

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

Usage Guidelines4/5

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

Gives an explicit when-to-use rule: call this before entity-listing tools when an event could touch thousands of resources. It references a category of alternatives rather than naming a specific sibling like get_affected_entities, so routing is slightly less precise than it could be.

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