Skip to main content
Glama

Frais de port d'une offre

get_delivery_options
Read-onlyIdempotent

Rend les modes de livraison et de retrait d'une offre de destockage-habitat.com (offer_id rendu par search_products) vers un code postal français : transporteur, prix TTC pour la quantité demandée, dates de livraison estimées, ville du retrait. Une offre réservée aux professionnels sort sans frais.

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": {
      "offer_id": "<offer_id>",
      "postal_code": "<postal_code>"
    },
    "name": "get_delivery_options"
  }
}

Input Schema

NameRequiredDescriptionDefault
offer_idYesIdentifiant de l'offre (offer_id de search_products).
quantityNoQuantité strictement supérieure à 0, dans l'unité de vente de l'offre (price.per_unit), au plus le stock. Défaut : 1.
postal_codeYesCode postal français de livraison.

Output Schema

NameRequiredDescriptionDefault
urlNoFiche de l'offre, où se fait l'achat.
noteNoPourquoi la liste est vide, le cas échéant.
unitNo
optionsYes
offer_idYes
quantityYes
pro_noticeNo
postal_codeYes
pro_reservedYesVrai : offre réservée aux professionnels, frais visibles avec un compte pro sur le site.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds a genuine business rule not present in annotations — that offers reserved for professionals are returned without shipping fees — and describes the response content. It says nothing about rate limits, caching, or error behavior for invalid postal codes, so the added context is useful but not rich.

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?

Two sentences, front-loaded with the verb and the returned fields, followed by a short exception clause. No filler, and the professional-offer caveat is compact enough to earn its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, yet the description still summarizes the returned fields briefly, and it covers the one behavioral edge case an agent would otherwise miss (pro offers with no fees). Combined with full schema coverage and complete annotations, nothing needed to invoke it correctly is missing.

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. The description goes slightly beyond the schema by tying quantity to the output ('prix TTC pour la quantité demandée'), clarifying that the quoted price scales with the requested quantity, and by reiterating offer_id's provenance from search_products.

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?

The description opens with a specific verb and resource ('Rend les modes de livraison et de retrait d'une offre') and enumerates exactly what comes back (carrier, TTC price, estimated delivery dates, pickup city). It also scopes the tool to a French postal code and names search_products as the source of offer_id, which separates it from get_product and list_categories without needing their schemas.

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?

Usage context is clear: given an offer and a French postal code, this returns shipping/pickup options, and offer_id must come from search_products. It does not state explicit exclusions (e.g., when to prefer get_product or what to do for non-French addresses), 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