Skip to main content
Glama

Schedule Envia Carrier Pickup

envia_schedule_pickup
Destructive

Schedule a real carrier pickup for one or more packages using address, date, time window, tracking numbers, and package details; confirm before proceeding to avoid duplicate pickups.

Instructions

Schedule a carrier pickup for one or more packages. This is a DESTRUCTIVE operation — it creates a real pickup request.

WARNING: Duplicate calls may create duplicate pickups. Confirm with the user before proceeding.

Args: origin_* — Pickup address fields (name, street, street_number, neighborhood, city, state, postal_code, phone, email) carrier — Carrier string (e.g., "dhl", "fedex", "estafeta") tracking_numbers — Comma-separated tracking numbers to pick up date — Pickup date in YYYY-MM-DD format time_from — Pickup window start hour (0-23) time_to — Pickup window end hour (0-23) total_weight — Total weight in kg total_packages — Number of packages instructions — Special instructions (optional) response_format — "markdown" (default) or "json"

Returns: Pickup confirmation number, carrier, date, time window, and status.

Errors: 400 — Invalid address, carrier, or time 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>",
      "carrier": "<carrier>",
      "tracking_numbers": "<tracking_numbers>",
      "date": "<date>",
      "time_from": "<time_from>",
      "time_to": "<time_to>",
      "total_weight": "<total_weight>",
      "total_packages": "<total_packages>"
    },
    "name": "envia_schedule_pickup"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesPickup date in YYYY-MM-DD format
carrierYesCarrier string (e.g., "dhl", "fedex", "estafeta")
time_toYesPickup window end hour (0-23)
time_fromYesPickup window start hour (0-23)
origin_cityYesCity or municipio
origin_nameYesSender contact name
instructionsNoSpecial pickup instructions (optional)
origin_emailYesEmail address
origin_phoneYes10-digit phone number
origin_stateYes2-letter state code
total_weightYesTotal weight of all packages in kg
origin_streetYesStreet name
origin_companyNoSender company name
origin_countryNoOrigin country code (default: MX)MX
total_packagesYesTotal number of packages
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown
tracking_numbersYesComma-separated tracking numbers to pick up
origin_postal_codeYes5-digit postal code
origin_neighborhoodYesColonia / neighborhood
origin_street_numberYesExterior/street number

Output Schema

NameRequiredDescriptionDefault
dateYes
statusNo
carrierYes
time_toYes
time_fromYes
confirmationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior5/5

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

The annotations already declare destructiveHint=true and idempotentHint=false, but the description adds concrete consequence (a real pickup request is created, duplicates possible) and an actionable safeguard, plus a 400/403 error profile. This meaningfully extends what structured fields provide.

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 critical warning, then structured into Args/Returns/Errors sections that scan well. The Args list somewhat duplicates schema descriptions, but the organization is clean and purposeful.

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?

For a 20-parameter, 16-required mutation tool, the definition covers purpose, the destructive consequence, confirmation requirement, return shape, and key error codes. Nothing an agent needs to call it safely and correctly is missing.

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 the schema already documents every parameter. The Args section largely restates the same field meanings, adding only the grouping of origin_* address fields; baseline 3 is appropriate where the schema does the heavy lifting.

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?

"Schedule a carrier pickup" states a specific verb and resource, and the scope (one or more packages) is called out. An agent can distinguish this from siblings like envia_create_label or envia_cancel without opening any 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?

The description gives a clear usage directive: confirm with the user before proceeding, and warns about duplicate pickups. It does not, however, route the agent between this and alternative tools (e.g., create shipment first), so it is strong context but lacks explicit alternatives.

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