Skip to main content
Glama

ELART parts

setShippingMethod

Choose a shipping method on the agent cart. Call listShippingMethods first and pass its code. For a quoted method, also pass quote_key. Write tool.

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": {
      "cart_token": "<cart_token>",
      "shipping_method": "<shipping_method>"
    },
    "name": "setShippingMethod"
  }
}

Input Schema

NameRequiredDescriptionDefault
quote_keyNoQuote key from that method quotes list, when the method returns quotes.
cart_tokenYesCart token from createCart. Required on every later cart call.
shipping_methodYesMethod code from listShippingMethods.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. The HTTP status stays 200.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=false and idempotentHint=false, and the phrase 'Write tool' merely restates that. The description adds no further behavioral context such as whether re-selecting replaces a prior method, how it affects cart totals/quoting, or what errors can occur.

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 action, then the prerequisite, then the conditional parameter—no filler or repetition.

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?

With an output schema covering return values and full schema coverage on all three parameters, the description supplies the essential call sequence and conditional-parameter rule. It is mostly complete, with only mutation side effects on the existing cart left unclear.

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 cart_token, shipping_method and quote_key are already documented in the schema, and the description's mention of listShippingMethods and quote_key duplicates those field descriptions rather than adding new meaning such as format or edge cases.

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 ('Choose a shipping method on the agent cart'), scoped to the agent cart and clearly distinct from the read-only sibling listShippingMethods and from setPaymentMethod.

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?

Gives explicit ordering ('Call listShippingMethods first and pass its code') and a conditional branch ('For a quoted method, also pass quote_key'), so the agent knows the prerequisite call and when the optional parameter applies.

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