Skip to main content
Glama

aws_list_key_pairs

List EC2 key pairs in a given AWS region to retrieve key_name values for launching instances with aws_run_instances.

Instructions

List EC2 key pairs registered in the given region. Use the key_name values returned here as the key_name argument to aws_run_instances.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
regionYesAWS region (e.g. us-east-1).
accountNoAWS account label to act in; omit for the default account.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.28.0
    • addedInput schema / properties / account
      Added value: +{
      +  "description": "AWS account label to act in; omit for the default account.",
      +  "type": "string"
      +}
  2. Addedv2.24.0
  3. Removedv2.23.8
  4. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses region scoping and the intended chaining use, but says nothing about read-only nature, permission/account requirements beyond the schema's 'account' field, or the shape of returned data.

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?

Two short sentences, zero filler, with the core action stated first and the chaining hint second. Nothing needs trimming.

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 two-parameter read tool with no output schema, the description covers purpose and the key downstream use. It is a bit thin on behavioral details (permissions, return contents), which is the only real gap.

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%, so both parameters are already documented in the schema. The description adds no syntax or format detail for 'region' or 'account' beyond what the schema provides, so the baseline 3 applies.

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?

States a specific verb and resource ('List EC2 key pairs') and scopes it to the given region. The resource is distinctive enough to separate it from sibling listing tools, but the description never explicitly contrasts itself with alternatives like aws_list_amis or aws_run_instances.

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?

Explicitly tells the agent when to use the result: feed key_name values into aws_run_instances. It gives a clear forward path but offers no when-not-to-use conditions or comparison to other key/credential-related tools.

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