Skip to main content
Glama

get_ec2_price

Returns the price of a specific EC2 instance type (region, platform, tenancy, pricing model) from the CloudFix EC2 pricing snapshot. Returns hourly/monthly/yearly price, or { available: false, reason } when the instance/region is not covered.

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": {
      "region": "<region>",
      "instance_type": "<instance_type>"
    },
    "name": "get_ec2_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
regionYesAWS region, e.g. "us-east-1"
tenancyNoInstance tenancy (default "Shared")
platformNoOperating system platform (default "Linux/UNIX")
instance_typeYesEC2 instance type, e.g. "m5.2xlarge"
pricing_modelNoPricing model (default "On Demand"). One of On Demand or a 1-yr/3-yr Savings-Plan term.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it does disclose the backing data source (the CloudFix EC2 pricing snapshot) and the failure contract { available: false, reason } when the instance/region is uncovered. It stops short of stating that the call is read-only, side-effect free, or whether results are cached/static, but the read semantics are strongly implied by 'Returns'.

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 sentences, zero filler, with the core resource and determining dimensions front-loaded before the return/fallback clause. Every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description compensates by specifying the return payload (hourly/monthly/yearly price) plus the negative-result shape. Combined with fully documented parameters, an agent has enough to call it correctly and interpret the result.

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 the parameter meanings and defaults are already documented in structured data; the description merely restates the same dimension list. It adds no extra semantics about value formats, case sensitivity, or how tenancy/platform interact with pricing_model.

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 (returns the price of a specific EC2 instance type) and enumerates the four dimensions that determine the price (region, platform, tenancy, pricing model). This clearly distinguishes it from the sibling recommendation/instance-listing tools, which do not resolve pricing.

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 only implied: the caller must already know a concrete instance type and region, suggesting this is a point lookup rather than discovery. There is no explicit when-to-use framing, no statement of prerequisites, and no named alternative (e.g., use find_ec2_instances first to discover instance types).

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.

Resources