Skip to main content
Glama

Buy a Widely data pack

buy_widely_pack

Buy a data pack for the person's Widely SIM. The pack is used before pay as you go in the countries it covers and ends after its validity. Pass pack_id from the data offers. If the account has several Widely SIMs, name one with sim (ICCID or SIM id). Without confirm it shows the price. idempotency_key repeats the same purchase result instead of buying again.

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": {
      "pack_id": "<pack_id>"
    },
    "name": "buy_widely_pack"
  }
}

Input Schema

NameRequiredDescriptionDefault
simNoICCID or SIM id when there is more than one Widely SIM.
confirmNoBuys the pack.
pack_idYesThe pack id from the data offers.
quoted_priceNoThe price shown. A changed price is refused.
idempotency_keyNoRepeat with the same key to charge once.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Well beyond the annotations, it discloses that omitting confirm makes the call a price preview rather than a purchase, that a pack takes precedence over pay-as-you-go, and that idempotency_key replays the prior result instead of charging twice. That last point usefully qualifies the idempotentHint=false annotation without contradicting it. It doesn't cover failure modes or whether a completed purchase can be reversed.

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?

Four short sentences, front-loaded with purpose and followed by the behavioral rules an agent most needs. No filler, though the sim and idempotency sentences are slightly compressed into run-ons.

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 5-parameter purchase tool with no output schema, the description covers the preview path, the purchase path, the multi-SIM case, and price-change refusal sufficiently to call it correctly. Missing detail about the returned price/result shape is the only real gap.

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 100%, so the baseline is 3. The description does add meaning to confirm (preview vs actual purchase) and idempotency_key (replay semantics) beyond the terse schema text, and states the conditional nature of sim, but it doesn't explain quoted_price at all.

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 leads with a specific verb and resource: 'Buy a data pack for the person's Widely SIM.' That clearly separates it from read-oriented siblings like get_widely_pack_data, but it doesn't explicitly name or contrast any alternative tool.

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 explains the operational context: the pack is consumed before pay-as-you-go in covered countries and expires after its validity, and pack_id must come from the data offers. It states the multi-SIM disambiguation case but gives no explicit when-not-to-use guidance or alternatives.

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.