Skip to main content
Glama

Get a Wiro task price

get_task_price
Read-onlyIdempotent

Get one task’s cost: the amount charged once Wiro has billed it, with the model's list price beside it when a discount made them differ. Successful tasks are billed; failed tasks and tasks cancelled while queued are not, and a task stopped while running can still be charged once its work ends. A finished task's result already shows its cost, so use this for a task whose result you do not have, or whose result shows only the list price. If the task is active, follow the returned wait_for_task next action.

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

Input Schema

NameRequiredDescriptionDefault
taskidNoThe task ID (alternative to tasktoken).
tasktokenNoThe task token returned from run_model.

Output Schema

NameRequiredDescriptionDefault
taskYes
stateYes
billedYes
costUsdYesThe amount charged so far; null while the task is active or a successful task's charge is not recorded yet. While billed is null, a later charge is still possible.
nextActionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotent/non-destructive, so safety is covered; the description adds genuinely new behavioral content about billing timing — successful tasks billed, failed and queued-cancelled tasks not billed, and a stopped running task possibly charged later once its work ends. It does not cover permissions or eventual-consistency/latency of the charge, which is the remaining gap.

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?

Front-loaded with the purpose, then the billing rules that govern the returned number, then the when-to-use test, then the next-action handoff. Four sentences, each carrying load, with no restatement of the title or schema.

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

Completeness5/5

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

An output schema exists, so return fields needn't be enumerated, and the description still flags the one field an agent must act on (`wait_for_task`). Billing edge cases are spelled out, which is the non-obvious risk for an agent reasoning about whether a cost exists yet.

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 100%, so taskid and tasktoken are already documented, including that tasktoken comes from run_model. The description adds nothing about choosing between the two or about the zero-required-parameters situation, so the baseline 3 applies.

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?

States a specific verb and resource ('Get one task's cost') and immediately scopes what the number means: the amount charged after Wiro has billed it, with the list price beside it. That distinguishes it from get_task, whose result already carries cost, without needing to name the sibling.

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?

Explicitly tells the agent when NOT to call it ('A finished task's result already shows its cost') and the two conditions that justify a call: no result in hand, or a result showing only the list price. It also routes the agent onward via the returned `wait_for_task` action when the task is active.

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.