Skip to main content
FuseFuse
IntegrationsAwsActions

Describe EC2 instances

Describe EC2 instances by explicit IDs or reviewed filters. Instance IDs cannot be combined with filters or pagination. Requires ec2:DescribeInstances.

Agent markdown

ec2.instances.describe · AWS · v1

Details

Risk
Read
Idempotency
Safe
Availability
Default
Exposure
REST, SDK, MCP
MCP hints
readOnly=true, destructive=false, idempotent=true, openWorld=true

Scopes

  • ec2:DescribeInstances

Input

Input schema
NameTypeRequiredConstraints
(root)objectYesadditionalProperties false
regionstringNoenum us-east-1 | us-east-2 | us-west-1 | us-west-2 | af-south-1 | ap-east-1 | ap-east-2 | ap-south-1 | ap-south-2 | ap-southeast-1 | ap-southeast-2 | ap-southeast-3 | ap-southeast-4 | ap-southeast-5 | ap-southeast-6 | ap-southeast-7 | ap-northeast-1 | ap-northeast-2 | ap-northeast-3 | ca-central-1 | ca-west-1 | eu-central-1 | eu-central-2 | eu-west-1 | eu-west-2 | eu-west-3 | eu-north-1 | eu-south-1 | eu-south-2 | il-central-1 | me-central-1 | me-south-1 | mx-central-1 | sa-east-1
instance_idsarray<string>NominItems 1; maxItems 100
instance_ids[]stringYesminLength 10; maxLength 32; pattern ^i-[0-9a-fA-F]{8,17}$
filtersarray<object>NominItems 1; maxItems 10
filters[]objectYesadditionalProperties false
filters[].namestringYesenum instance-state-name | tag-key | tag-value | vpc-id | subnet-id | availability-zone | architecture | instance-type | private-ip-address | ip-address
filters[].valuesarray<string>YesminItems 1; maxItems 20
filters[].values[]stringYesminLength 1; maxLength 256
page_sizeintegerNominimum 5; maximum 1000
cursorstringNominLength 1; maxLength 16384; pattern ^(?!.*://)[^\x00-\x1f\x7f]+$

Output

Output schema
NameTypeRequiredConstraints
(root)objectYesadditionalProperties false
instancesarray<object>YesmaxItems 1000
instances[]objectYesadditionalProperties false
instances[].instance_idstringYesminLength 10; maxLength 32; pattern ^i-[0-9a-fA-F]{8,17}$
instances[].statestringYesminLength 1; maxLength 64
instances[].instance_typestringNominLength 1; maxLength 64
instances[].image_idstringNominLength 1; maxLength 128
instances[].architecturestringNominLength 1; maxLength 64
instances[].availability_zonestringNominLength 1; maxLength 64
instances[].vpc_idstringNominLength 1; maxLength 64
instances[].subnet_idstringNominLength 1; maxLength 64
instances[].private_ip_addressstringNominLength 1; maxLength 64
instances[].public_ip_addressstringNominLength 1; maxLength 64
instances[].launch_timestringNominLength 1; maxLength 64
instances[].tagsarray<object>YesmaxItems 50
instances[].tags[]objectYesadditionalProperties false
instances[].tags[].keystringYesminLength 1; maxLength 128
instances[].tags[].valuestringYesmaxLength 256
next_cursorstringNominLength 1; maxLength 16384; pattern ^(?!.*://)[^\x00-\x1f\x7f]+$

Raw schema

Input
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "region": {
      "type": "string",
      "enum": [
        "us-east-1",
        "us-east-2",
        "us-west-1",
        "us-west-2",
        "af-south-1",
        "ap-east-1",
        "ap-east-2",
        "ap-south-1",
        "ap-south-2",
        "ap-southeast-1",
        "ap-southeast-2",
        "ap-southeast-3",
        "ap-southeast-4",
        "ap-southeast-5",
        "ap-southeast-6",
        "ap-southeast-7",
        "ap-northeast-1",
        "ap-northeast-2",
        "ap-northeast-3",
        "ca-central-1",
        "ca-west-1",
        "eu-central-1",
        "eu-central-2",
        "eu-west-1",
        "eu-west-2",
        "eu-west-3",
        "eu-north-1",
        "eu-south-1",
        "eu-south-2",
        "il-central-1",
        "me-central-1",
        "me-south-1",
        "mx-central-1",
        "sa-east-1"
      ]
    },
    "instance_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 10,
        "maxLength": 32,
        "pattern": "^i-[0-9a-fA-F]{8,17}$"
      },
      "minItems": 1,
      "maxItems": 100
    },
    "filters": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "instance-state-name",
              "tag-key",
              "tag-value",
              "vpc-id",
              "subnet-id",
              "availability-zone",
              "architecture",
              "instance-type",
              "private-ip-address",
              "ip-address"
            ]
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "minItems": 1,
            "maxItems": 20
          }
        },
        "required": [
          "name",
          "values"
        ]
      },
      "minItems": 1,
      "maxItems": 10
    },
    "page_size": {
      "type": "integer",
      "minimum": 5,
      "maximum": 1000
    },
    "cursor": {
      "type": "string",
      "minLength": 1,
      "maxLength": 16384,
      "pattern": "^(?!.*://)[^\\x00-\\x1f\\x7f]+$"
    }
  }
}
Output
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "instances": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "instance_id": {
            "type": "string",
            "minLength": 10,
            "maxLength": 32,
            "pattern": "^i-[0-9a-fA-F]{8,17}$"
          },
          "state": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "instance_type": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "image_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "architecture": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "availability_zone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "vpc_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "subnet_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "private_ip_address": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "public_ip_address": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "launch_time": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "key": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "value": {
                  "type": "string",
                  "maxLength": 256
                }
              },
              "required": [
                "key",
                "value"
              ]
            },
            "maxItems": 50
          }
        },
        "required": [
          "instance_id",
          "state",
          "tags"
        ]
      },
      "maxItems": 1000
    },
    "next_cursor": {
      "type": "string",
      "minLength": 1,
      "maxLength": 16384,
      "pattern": "^(?!.*://)[^\\x00-\\x1f\\x7f]+$"
    }
  },
  "required": [
    "instances"
  ]
}