Skip to main content
Glama

Get Envia Shipping Quotes

envia_quote
Read-onlyIdempotent

Get shipping rate quotes from 34+ Mexican carriers for a shipment's origin, destination, and package. Returns carrier services with delivery times and prices sorted by cost.

Instructions

Get shipping rate quotes from 34+ Mexican carriers via Envia.com.

Args: origin_* — Sender address fields (name, street, street_number, neighborhood, city, state, postal_code, phone, email) dest_* — Recipient address fields (same structure) package_weight_kg — Weight in kg package_length_cm, package_width_cm, package_height_cm — Dimensions in cm package_contents — Description of contents declared_value_mxn — Declared value (optional, default 0) carrier — Carrier filter: "dhl", "fedex", "estafeta", etc. Omit to quote ALL carriers. response_format — "markdown" (default) or "json"

Returns: List of rate options sorted by price (cheapest first) with carrier, service, delivery days, and price breakdown.

Examples: Quote all carriers: omit carrier field Quote single carrier: carrier="fedex"

Errors: 400 — Invalid address or package fields 403 — Invalid API key

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": {
      "origin_name": "<origin_name>",
      "origin_street": "<origin_street>",
      "origin_street_number": "<origin_street_number>",
      "origin_neighborhood": "<origin_neighborhood>",
      "origin_city": "<origin_city>",
      "origin_state": "<origin_state>",
      "origin_postal_code": "<origin_postal_code>",
      "origin_phone": "<origin_phone>",
      "origin_email": "<origin_email>",
      "dest_name": "<dest_name>",
      "dest_street": "<dest_street>",
      "dest_street_number": "<dest_street_number>",
      "dest_neighborhood": "<dest_neighborhood>",
      "dest_city": "<dest_city>",
      "dest_state": "<dest_state>",
      "dest_postal_code": "<dest_postal_code>",
      "dest_phone": "<dest_phone>",
      "dest_email": "<dest_email>",
      "package_weight_kg": "<package_weight_kg>",
      "package_length_cm": "<package_length_cm>",
      "package_width_cm": "<package_width_cm>",
      "package_height_cm": "<package_height_cm>",
      "package_contents": "<package_contents>"
    },
    "name": "envia_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
carrierNoCarrier string: dhl, fedex, estafeta, paquetexpress, etc. Omit to quote all carriers.
dest_cityYesCity or municipio
dest_nameYesRecipient contact name
dest_emailYesEmail address
dest_phoneYes10-digit phone number (no country code)
dest_stateYes2-letter state code: NL, CX, JA, BC, etc.
dest_streetYesStreet name (no number)
origin_cityYesCity or municipio
origin_nameYesSender contact name
dest_companyNoRecipient company name
origin_emailYesEmail address
origin_phoneYes10-digit phone number (no country code)
origin_stateYes2-letter state code: NL, CX, JA, BC, etc.
origin_streetYesStreet name (no number)
origin_companyNoSender company name
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown
dest_postal_codeYes5-digit Mexican postal code
package_contentsYesDescription of contents (e.g., "Brake pads")
package_width_cmYesPackage width in centimeters
dest_neighborhoodYesColonia / neighborhood
package_height_cmYesPackage height in centimeters
package_length_cmYesPackage length in centimeters
package_weight_kgYesPackage weight in kilograms
declared_value_mxnNoDeclared value in MXN (does NOT affect price — insurance is always 0)
dest_street_numberYesExterior/street number
origin_postal_codeYes5-digit Mexican postal code
origin_neighborhoodYesColonia / neighborhood (maps to "district" in API)
origin_street_numberYesExterior/street number

Output Schema

NameRequiredDescriptionDefault
countYesNumber returned in this response
totalYesTotal number of rate options found
quotesYes
truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered. The description adds real value beyond that: results sorted cheapest-first, price breakdown per option, and explicit 400/403 error meanings. Minor gap: no mention of rate-limit or timeout behavior for a 34-carrier fan-out call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The sectioned layout (Args / Returns / Examples / Errors) is easy to scan and front-loads the purpose sentence. However, the lengthy Args enumeration duplicates a fully described 28-parameter schema and pushes the genuinely useful parts (sort order, errors) further down.

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 28-parameter, 23-required tool with rich annotations and an output schema, the definition covers purpose, filtering, return ordering, and error codes adequately. The redundant Returns section is harmless since an output schema exists, and required-vs-optional is left to the schema.

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 schema already documents all 28 parameters, including the state-code and postal-code formats. The description's Args block largely restates those fields; its only genuine addition is the 'omit carrier to quote ALL carriers' semantics, which is also in the schema. Baseline 3 is appropriate.

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 ('Get shipping rate quotes') plus scope ('from 34+ Mexican carriers via Envia.com'), which cleanly separates it from sibling tools like envia_create_label, envia_get_carriers, and envia_track. An agent can tell it is the rate-shopping call without opening a schema.

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 usage conditions for the carrier filter ('omit to quote ALL carriers') and response_format defaults, plus worked examples. It does not explicitly say when to prefer this over envia_get_carriers or envia_get_services, but the operational guidance for the call itself is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.