Skip to main content
Glama

latens_calculate_compute_cost

Read-only

Calculate total GPU rental costs by combining hourly compute, persistent storage amortization, and outbound egress for accurate budgeting.

Instructions

Deterministic GPU rental total cost calculation combining hourly compute, persistent storage amortization, and outbound network egress.

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": {
      "hourly_rate_usd": "<hourly_rate_usd>",
      "duration_hours": "<duration_hours>"
    },
    "name": "latens_calculate_compute_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
egress_gbNo
storage_gbNo
duration_hoursYes
instance_countNo
hourly_rate_usdYes
egress_cost_per_gb_usdNo
storage_cost_per_gb_month_usdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds genuine behavioral context by asserting the result is 'deterministic' and that storage costs are amortized (not a flat charge), which tells the agent the output is reproducible and how storage is modeled. It stops short of disclosing currency, rounding, or the necessary tension with openWorldHint=true for a pure calculation.

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?

A single front-loaded sentence that names the operation first and then the three cost components in priority order. There is no filler, hedging, or repetition, and every clause contributes information.

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?

For a seven-parameter calculator with no output schema, the description covers the pricing model at a conceptual level and signals a single aggregated result, which is enough for an agent to decide to call it. The missing pieces - units, currency, and the amortization formula - are refinements rather than blockers.

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 0%, so the description must carry the full burden for seven parameters. It does map the parameters onto three named components (hourly compute, storage amortization, egress), which is meaningful, but it gives no units, no indication of how instance_count multiplies the result, and no explanation of the amortization period or how storage is prorated over duration_hours.

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?

Specific verb ('calculation') and resource ('GPU rental total cost'), with the three cost components enumerated, which immediately separates it from the sibling list/sync tools. It does not explicitly name a sibling or state its position among them, keeping it just under the top mark.

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 by the tool's nature - an agent can infer it is a pre-purchase cost estimator, but the description never says when to call it, whether it is meant to be run before booking, or how it relates to listing offers. No exclusions or prerequisites are stated.

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