Skip to main content
Glama

generate_ec2_instance

Generate EC2 instance configuration with security group, IAM role, and user data

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": {
      "instanceType": "<instanceType>",
      "ami": "<ami>"
    },
    "name": "generate_ec2_instance"
  }
}

Input Schema

NameRequiredDescriptionDefault
amiYesAMI ID (e.g. ami-0abcdef1234567890)
vpcNoVPC ID to launch into
keyPairNoSSH key pair name
userDataNoUser data bootstrap script
volumeSizeNoRoot EBS volume size in GB
ebsOptimizedNoEnable EBS optimization
instanceTypeYesEC2 instance type (e.g. t3.micro, m5.large)
spotInstanceNoUse spot instance pricing

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden; saying 'configuration' rather than 'launch' usefully suggests generation rather than live provisioning. It still leaves the configuration language and output destination unstated, does not confirm whether cloud APIs or side effects are involved, and does not clarify whether the security group and IAM role are newly generated or merely referenced.

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?

The single sentence is compact, front-loads the operation and resource, and uses its remaining words to identify included components. There is no filler or unnecessary repetition.

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?

The fully documented flat input schema makes basic invocation feasible, but there is no output schema to explain the generated artifact. Without its format or destination, explicit generation-versus-provisioning behavior, supporting-resource behavior, or selection guidance, the one-line description is not complete enough for reliable use.

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?

All eight parameters already have schema descriptions, so the schema performs most of the semantic work and establishes the baseline score. The description adds that security-group and IAM-role configuration are included despite their absence from the input schema, but adds no further guidance for inputs such as vpc, spotInstance, or volumeSize.

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 pairs a specific verb and resource—generating an EC2 instance configuration—and identifies included security group, IAM role, and user data configuration. It is clear about the artifact, but does not explicitly differentiate the tool from sibling compute or Lightsail generators.

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?

It describes what can be generated but never states when to choose this tool, any prerequisites, or when not to use it. The EC2 wording supplies only basic context inherent in the purpose, with no routing guidance among alternatives.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.