Skip to main content
Glama

Prices

flow_get_prices
Read-only

What a message costs from a sender (ids from flow_list_senders). SMS prices are per country and network, so pass a country; Viber and WhatsApp rates are per country and message type (WhatsApp: the template category), optionally for one country.

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": {
      "senderId": "<senderId>"
    },
    "name": "flow_get_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
countryNoEnglish country name or part of it, or the two-letter ISO code, e.g. Croatia or HR; required for SMS
senderIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuine context beyond that: pricing is granular per country, per network, and per message type (WhatsApp template category), which tells the agent how scoping affects results. It says nothing about the response shape or currency, so it is not 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.

Conciseness4/5

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

Two dense sentences with no filler, and the core purpose is front-loaded before the channel-specific rules. The parentheticals are efficient, though the WhatsApp clause is compressed to the point of being hard to parse.

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?

The tool is simple (two params, read-only), and the description covers scoping well. But there is no output schema, and the description never indicates what the returned prices look like (per-network breakdown, currency, units), which leaves a real gap for an agent interpreting results.

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 coverage is 50%: country is documented in the schema, senderId only has numeric constraints. The description usefully explains where senderId comes from and how country behaves per channel. However, the clause 'Viber and WhatsApp rates are per country and message type (WhatsApp: the template category)' implies a message-type/template-category input that does not exist in the schema, creating ambiguity rather than clarity.

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 resource and outcome: 'What a message costs from a sender'. It names the channel-specific dimensions (SMS per country/network, Viber and WhatsApp per country and message type), which distinguishes it from siblings like flow_get_balance or flow_get_analytics. The verb is implicit rather than stated, which keeps it short of a 5.

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 concrete invocation guidance: get sender IDs from flow_list_senders, and pass a country for SMS (matching the schema's 'required for SMS'), optional for Viber/WhatsApp. It does not state when not to use this tool or what alternative to pick if you only want account-level totals, so it stops short of full routing guidance.

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.

Resources