Skip to main content
Glama

SimplySIM travel eSIMs

Add a plan to the basket

add_to_basket

Step 4. Adds a plan to the basket. Each unit is one eSIM for one phone (quantity 2 = two eSIMs). Returns the updated basket.

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": {
      "basket_token": "<basket_token>",
      "plan_id": "<plan_id>"
    },
    "name": "add_to_basket"
  }
}

Input Schema

NameRequiredDescriptionDefault
plan_idYesPlan id from get_plans.
quantityNoNumber of eSIMs, 1 to 5. Defaults to 1.
basket_tokenYesThe basket_token returned by create_basket. Keep it private.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive, non-idempotent. The description adds real value beyond them by explaining the unit semantics ('each unit is one eSIM for one phone'), which is exactly what makes repeated calls additive rather than idempotent, and by stating the return value ('updated basket'). It does not mention failure modes such as an expired basket token, but the gap is minor.

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?

Three short sentences, front-loaded with the workflow step and the action, then the key unit clarification, then the return value. No filler or redundancy.

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 simple three-parameter mutation with full schema coverage, the description covers purpose, quantity semantics, and return value, which is nearly everything an agent needs. It could add a word on the basket expiring or on the 1-5 cap, but the schema already carries the cap.

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 coverage is 100%, so baseline would be 3. The description still earns credit by reframing 'quantity' in concrete domain terms ('quantity 2 = two eSIMs'), which disambiguates what the integer counts better than the schema's 'Number of eSIMs, 1 to 5'. plan_id and basket_token are left to the schema, appropriately.

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?

States a specific verb and resource ('Adds a plan to the basket') and situates it in a checkout flow ('Step 4'). The action is clearly distinct from remove_from_basket and create_basket by the verb alone, though no sibling is named explicitly.

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?

The 'Step 4' label implies a workflow position and a prerequisite basket (basket_token is required), which is useful implicit guidance. However, there is no explicit when-to-use/when-not statement or named alternative for related operations like apply_code or remove_from_basket.

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