Skip to main content
Glama

Cost Calculator

varity_cost_calculator
Read-onlyIdempotent

Retrieve a current Varity deployment price estimate for a live subdomain or pre-deploy app profile, returning USD billing projections or profile-based costs.

Instructions

Request a current deployment-price estimate from the Varity public pricing interface. Use whenever a developer asks what a Varity deployment costs. Pass subdomain for a live deployment's current billing projection (needs a deploy key), or app_profile for a pre-deploy estimate (no sign-in needed). Profiles: static-site (alias static), web-app, web-app-db, ai-agent-cpu; an unknown profile returns the current list. All amounts are USD.

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

Input Schema

NameRequiredDescriptionDefault
subdomainNoA live deployment's subdomain; returns its current billing projection and overrides app_profile
app_profileNoPricing profile: static-site (or static), web-app, web-app-db, ai-agent-cpu. Omit for the default (web-app).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv2.0.0
    • removedInput schema / properties / app_profile / default
      Removed value: -"web-app"
    • changedInput schema / properties / app_profile / description
      Previous value: -"Pre-deploy estimate preset: static-site (flat $5/mo), web-app, web-app-db, ai-agent-cpu, ai-agent-gpu"New value: +"Pricing profile: static-site (or static), web-app, web-app-db, ai-agent-cpu. Omit for the default (web-app)."
    • removedInput schema / properties / app_profile / enum
      Removed value: -[
      -  "static-site",
      -  "web-app",
      -  "web-app-db",
      -  "ai-agent-cpu",
      -  "ai-agent-gpu"
      -]
    • addedInput schema / properties / app_profile / maxLength
      Added value: +64
    • addedInput schema / properties / app_profile / minLength
      Added value: +1
    • addedInput schema / properties / app_profile / pattern
      Added value: +"^[a-z0-9][a-z0-9_-]*$"
    • removedInput schema / properties / has_database
      Removed value: -{
      -  "description": "Whether the app uses a database (affects competitor base cost)",
      -  "type": "boolean"
      -}
    • changedInput schema / properties / subdomain / description
      Previous value: -"A live deployment's subdomain → returns THIS deployment's real cost (overrides app_profile)"New value: +"A live deployment's subdomain; returns its current billing projection and overrides app_profile"
  2. First observedv2.0.0-beta.24

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds real context beyond that: the authentication asymmetry between the two modes, the unknown-profile fallback that returns the current list, and that amounts are USD. It stops short of describing the shape of the returned estimate or error conditions, so a 4 rather than 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.

Conciseness5/5

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

Four tight sentences, front-loaded with the purpose before the routing guidance, then the valid profile list and the currency note. Every sentence carries information an agent needs to choose a parameter or interpret the result; nothing is padding.

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 does some of that work by noting the amounts are USD and that an unknown profile returns the current list. It still does not say what fields the estimate response contains (line items, totals, period), which is the main remaining gap for a tool with no declared return value.

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 description coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not carry cleanly — the deploy-key requirement for subdomain versus the no-sign-in path for app_profile, and the precedence that subdomain overrides app_profile. The profile alias ('static' for static-site) is also restated for convenience.

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?

The description opens with a specific verb+resource pair ('request a current deployment-price estimate from the Varity public pricing interface') and scopes it to Varity deployments. No sibling tool covers pricing, so an agent can immediately tell this is the cost-lookup tool rather than a deploy or status tool.

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?

It states the trigger explicitly ('use whenever a developer asks what a Varity deployment costs') and then routes between the two modes: subdomain for a live deployment's billing projection, app_profile for a pre-deploy estimate. This is a genuine when-to-use branch with the differentiator (deploy key required vs. no sign-in) spelled out.

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