Skip to main content
Glama

Nowacell

Prepare buyer and delivery details for a cart

prepare_order_details

Attach the buyer and delivery details to a cart so the user does not type them at checkout; the shop allows this on the user's behalf. Fill in every field you already know about the user (from the conversation or your memory of the user) and ask the user only for what is missing; the response lists missing_fields. Requires cart_url (the continue_url from create_cart or get_cart). Returns a one-time continue_url (valid 24 h): the user opens it, the products go to their own cart and the checkout form is prefilled; they check it, choose payment and place the order themselves. For an invoice to a company pass company_name and nip. Customers who are logged in keep their saved addresses and only get the cart.

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_url": "<cart_url>"
    },
    "name": "prepare_order_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
nipNoPolish NIP or EU VAT number for the invoice (optional)
cityNoBilling city
emailNoBuyer e-mail (order confirmation goes there)
phoneNoBuyer phone for the courier, e.g. +48 600 000 000
streetNoBilling street and number
countryNoBilling country ISO code, default PLPL
cart_urlYescontinue_url of the cart from create_cart or get_cart
last_nameNoBuyer last name
first_nameNoBuyer first name
postal_codeNoBilling postal code, e.g. 80-174
company_nameNoCompany name for the invoice (optional)
shipping_cityNoDelivery city
shipping_phoneNoDelivery phone
shipping_streetNoDelivery street and number
shipping_companyNoDelivery company name
shipping_countryNoDelivery country ISO code
shipping_last_nameNoDelivery recipient last name
shipping_first_nameNoDelivery recipient first name (only if delivery address differs)
shipping_postal_codeNoDelivery postal code

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does it well: it discloses the one-time continue_url with a 24-hour validity, that the response lists missing_fields, that the user's products go to their own cart with a prefilled form, and that logged-in customers keep their saved addresses. It also notes the shop performs this on the user's behalf, which is meaningful consent context for something acting on personal data.

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?

Front-loaded with the action and purpose, then the filling strategy, then the return contract. It is dense and somewhat semicolon-heavy, but every sentence contributes information an agent needs; nothing is filler.

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 19-parameter mutation tool with no annotations and no output schema, the description covers the flow, the key return value (one-time continue_url), and the missing_fields feedback loop. It is slightly thin on failure modes and on whether existing cart contents are modified, but the essential picture is complete.

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 the baseline is 3, but the description adds genuine meaning beyond the schema: it tells the agent how to populate fields (infer from conversation or memory, ask only for gaps) and pairs company_name with nip for invoicing. It does not explain precedence between billing and shipping fields, which the schema only hints at.

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 — attach buyer and delivery details to a cart — plus the goal (so the user does not retype them at checkout). It distinguishes itself from siblings by naming create_cart and get_cart as the source of cart_url, and from complete_checkout by making clear the user places the order themselves.

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?

Gives concrete when-to guidance: fill in every field already known from conversation or memory and ask the user only for what is missing, and use company_name plus nip for a company invoice. It implicitly separates this from checkout-completion tools by stating the user finishes the order, but it never explicitly names an alternative tool or a when-not-to-use case.

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