Skip to main content
Glama

estimate_cost

Read-only

Calculate an app’s monthly, daily, and hourly cloud cost in the user’s currency before deployment using CPU, memory, and database inputs; also check added connection costs and remaining daily cap.

Instructions

What an app would cost per month, day and hour in the user's own currency, before deploying it: CPU in millicores (default 500), memory in MB (default 512) and how many databases it needs. Also says whether this connection may add costs and how much of its daily cap is left. Tell the user the cost first.

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": "estimate_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
databasesNo
memory_mbNo
cpu_millicoresNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish this is a safe, non-open-world read (readOnlyHint=true, openWorldHint=false), and the description adds meaningful behavior beyond them: the currency is the user's own, the breakdown spans monthly/daily/hourly, and the result includes whether the connection may add costs plus remaining daily cap. It stops short of describing failure modes, but for a read-only estimator this is solid added context.

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?

The core purpose and its dimensions are front-loaded in the first clause, and every sentence carries information (inputs, units, currency, cap status, a user-facing instruction). It is slightly run-on with the colon-and-parenthetical construction, but nothing is redundant.

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?

With an output schema present, return-value detail is unnecessary, and the description covers what the three inputs mean, what dimensions the cost is expressed in, and the extra cap/connection signals. The only shortfall is the lack of routing guidance relative to cost- or usage-related siblings, which matters given how many siblings exist.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must carry the load, and it does: it gives units for CPU (millicores) and memory (MB) and states service-side defaults of 500 and 512, which the schema itself only shows as null. The databases parameter is explained only as 'how many databases it needs' with no default or cost implication stated, leaving a small gap.

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 opens with a specific verb+resource combination: it computes what an app 'would cost per month, day and hour in the user's own currency, before deploying it.' That is clearly distinct from sibling tools like get_usage or get_wallet, though it never names or contrasts those siblings explicitly, which keeps it out of the top band.

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 timing is implied by 'before deploying it,' and the closing instruction 'Tell the user the cost first' gives one concrete workflow rule. However, there is no guidance on when NOT to use it (e.g., versus get_usage for existing apps) and no mention of alternatives, so guidance is present but thin.

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