Skip to main content
Glama

aws_list_ec2_instances

Lists EC2 instances in a chosen AWS region using a specified AWS profile, so you can inspect compute resources across accounts and regions.

Instructions

List EC2 instances in a specific AWS region using the specified profile.

Args: region: AWS region (e.g. 'us-east-1', 'us-west-2') profile_name: AWS profile name to use (defaults to the selected or active profile).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "aws_list_ec2_instances"
  }
}

Input Schema

NameRequiredDescriptionDefault
regionNo
profile_nameNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.2.5
    • addedInput schema / properties / profile_name / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / profile_name / default
      Previous value: -"default"New value: +null
    • removedInput schema / properties / profile_name / type
      Removed value: -"string"
    • addedInput schema / properties / region / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / region / default
      Previous value: -"us-east-1"New value: +null
    • removedInput schema / properties / region / type
      Removed value: -"string"
  2. First observedv1.1.0

TDQS

B3.4/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 full behavioral burden, yet it only conveys the read-only nature implied by 'List'. It says nothing about permissions required, behavior when region is null, pagination of large instance lists, or what happens with an invalid profile; the presence of an output schema covers the return shape but not runtime behavior.

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?

Two short sentences front-load the action and scope, followed by a tight Args block with no filler. The Args block largely restates schema titles, which is mild redundancy rather than bloat.

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?

For a simple two-optional-parameter read tool with an output schema, the description covers the essentials but leaves the null-region behavior and credential-failure handling unstated. Those gaps matter because the tool's usefulness depends entirely on region and profile resolution.

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 0%, and the description does compensate by naming both parameters, giving region format examples and explaining that profile_name defaults to the selected or active profile. However, it never states what a null region means, which leaves the most consequential ambiguity of a 0%-documented schema unresolved.

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 ('List EC2 instances') plus its scoping dimensions (region, profile). The resource type alone distinguishes it from siblings such as aws_list_eks_clusters and aws_list_rds_databases, so an agent can pick it without opening the schema.

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?

Usage is implied by the resource type and the mention of region/profile, but there is no explicit when-to-use or when-not guidance and no pointer to alternatives such as aws_list_profiles when the profile itself is unknown. An agent must infer the selection context.

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