Skip to main content
Glama
bf16-mcp-server

bf16-mcp-server

Official

bf16_estimate_cost

Estimate exact USD cost for a bf16.ai workload using live model rates and optional prompt-cache hit ratio, without an API key.

Instructions

Estimate exact USD cost for running a workload on a bf16.ai model using live /v1/models rates and optional prompt-cache hit ratio (no API key required).

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": {
      "model": "<model>",
      "input_tokens": "<input_tokens>",
      "output_tokens": "<output_tokens>"
    },
    "name": "bf16_estimate_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesModel ID from bf16_list_models
input_tokensYes
output_tokensYes
cached_input_tokensNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.9/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 usefully discloses that no API key is required and that rates come from live /v1/models, but it does not state that the operation is read-only/side-effect-free, how invalid models are handled, or what the return value looks like. These gaps matter for a no-annotation tool.

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 definition is a single, front-loaded sentence with no wasted words. The parenthetical efficiently bundles the rate source, optional cache parameter, and auth note.

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 calculation tool with no annotations and no output schema, the description should clarify the return format (e.g., a USD figure or breakdown) and any constraints such as cached_input_tokens needing to be within input_tokens. It covers the core purpose but leaves those completeness gaps.

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 only 25%, so the description must compensate. It adds meaning for cached_input_tokens by calling it an 'optional prompt-cache hit ratio,' but it does not explain input_tokens or output_tokens beyond their names, leaving three of four parameters without added semantic detail.

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 states a specific verb and resource: 'Estimate exact USD cost for running a workload on a bf16.ai model.' It is clearly distinguishable from siblings like bf16_complete and bf16_list_models, and even references bf16_list_models as the source for model IDs.

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

Usage Guidelines4/5

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

It gives clear usage context: 'using live /v1/models rates and optional prompt-cache hit ratio (no API key required).' This implies pre-flight cost planning and removes auth concerns. However, it does not explicitly state when to use this versus alternatives like bf16_complete or when not to use it.

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