Skip to main content
Glama
araujoviana

hwc-calculator

by araujoviana

quote

Calculates USD costs for a Huawei Cloud bill of materials using the official rating engine, with on-demand, monthly, or yearly billing options.

Instructions

Price a bill of materials with Huawei Cloud's official rating engine (USD).

items: [{service, spec, quantity=1, size=None, usage_factor=None, usage_value=None}]

  • spec comes from search_skus; size is capacity in GB for disks/volumes.

  • usage_value for usage-billed items (OBS storage GB, traffic GB, requests). billing='ondemand' prices hours (730 = one month); 'monthly'/'yearly' price periods months/years and include the official yearly discount.

Input Schema

NameRequiredDescriptionDefault
hoursNo
itemsYes
regionYes
billingNoondemand
periodsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.4

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It helpfully discloses that pricing uses the official rating engine, is denominated in USD, treats 730 hours as one month for ondemand, and applies the official yearly discount, but it does not describe return format, authentication needs, or failure behavior.

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?

The description is compact and front-loaded: the main purpose comes first, followed by item structure and billing-mode semantics. The bullet-style formatting makes the parameter notes easy to scan without wasted prose.

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

Completeness3/5

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

For a tool with no annotations, no output schema, and 0% schema description coverage, the description covers the core pricing behavior and many item semantics. It still leaves gaps around region, expected return values, and how this fits into the quoting workflow with draft_quote and publish_quote.

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 0%, so the description must compensate for five undocumented parameters. It does well for items, size, usage_value, hours, periods, and billing modes, but it never explains the required region parameter or the full expected shape of each item.

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 states a specific verb and resource: pricing a bill of materials via Huawei Cloud's official rating engine in USD. It is clear what the tool does, though it does not explicitly distinguish itself from quoting-related siblings such as compare_modes or draft_quote.

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?

It gives useful prerequisite guidance that spec comes from search_skus and explains when to use ondemand versus monthly/yearly billing. However, it does not say when to use this tool instead of siblings like compare_modes, compare_regions, or draft_quote.

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