Skip to main content
Glama

Ferrite

Estimate a deploy's cost

estimate_cost
Read-onlyIdempotent

PRE-DEPLOY COST + CAPS ESTIMATE (the try-before-you-buy surface — charges nothing, deploys nothing): validates the spec exactly as a deploy would and reports what a deploy WOULD charge now (the deploy fee), your balance + tier, the per-app instance count + per-instance compute bound that WILL apply (ephemeral tier: clamped to 1 instance and 256 MiB / 50% CPU per instance, enforced as a cgroup bound; durable tier: your spec's compute, or the platform default when undeclared), your tier's caps (source size, session TTL, subsidized credit), and honest notes on what is priced (the deploy fee; per-request serving where enabled) vs projected: the occupancy / stream-group / storage / request rates are the FLEET-DERIVED pricing model (each resource priced from its measured provider-cost driver; anchor: 1,000,000 micros = $1.00), returned as rates, with per-app occupancy_micros_per_hour + projected_monthly_micros projections and, in notes, which prices apply at this read and what each service's data costs by axis (occupancy is metered hourly against your balance: reserved compute and data; an exhausted balance suspends your apps; service_costs reads the same figures for what is deployed). Call it BEFORE deploy_source / deploy_ref to see your footprint — and how 'claim' lifts the ephemeral caps (credit beyond the subsidy is bought through 'billing_portal'). Returns {Estimate:{tier,balance_micros,deploy_fee_micros,spec_valid,violations,apps,caps,notes,rates}}.

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": {
      "spec": "<spec>"
    },
    "name": "estimate_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYes
tokenNofallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused
instancesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotent/non-destructive/closed-world, and the description adds what those hints cannot: nothing is charged or deployed, the spec is validated exactly as a deploy would validate it, tier-specific clamping (ephemeral: 1 instance, 256 MiB / 50% CPU, enforced as a cgroup bound; durable: spec compute or platform default), and that occupancy is metered hourly against a balance whose exhaustion suspends apps. The only real omission is behavior on invalid specs beyond the `violations` key, so this stops just short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The front-loading is good — the caps header tells the agent within eight words what the tool is and that it is free — and the return shape is placed at the end where it is easy to find. But the body is a single ~230-word run-on paragraph with deeply nested parentheses and mid-sentence asides ("anchor: 1,000,000 micros = $1.00") that force re-parsing; splitting the pricing-model notes from the call-order guidance would cost nothing and gain a lot.

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 no output schema, the description carries the return contract and does so explicitly: {Estimate:{tier,balance_micros,deploy_fee_micros,spec_valid,violations,apps,caps,notes,rates}} plus the meaning of the micros unit and the projected fields. What is priced versus merely projected is carefully delineated. Remaining gap is the undocumented `spec`/`instances` input semantics rather than the output side.

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 coverage is 33% — only `token` is documented, while `spec` (required) and `instances` are bare. The description partially compensates by implying spec carries declared compute ("your spec's compute, or the platform default when undeclared") and that it is validated as a deploy would be, but it never states the spec's format/units, and `instances` is only obliquely referenced via "per-app instance count" and the 1-instance ephemeral clamp. That is below what a 33%-coverage schema demands.

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?

"PRE-DEPLOY COST + CAPS ESTIMATE ... charges nothing, deploys nothing" names a specific verb (estimate) and resource (deploy cost/caps) and immediately rules out the thing an agent might confuse it with (an actual deploy). It also distinguishes itself from service_costs ("reads the same figures for what is deployed") and from deploy_source/deploy_ref, so an agent can pick it out of a 30-tool list without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit sequencing guidance: "Call it BEFORE deploy_source / deploy_ref to see your footprint." It also names the alternative surface for already-deployed data (service_costs) and where to go when the caps are insufficient (claim lifts ephemeral caps; extra credit via billing_portal). When-to-use, when-to-use-something-else, and the downstream path are all stated.

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.