Skip to main content
Glama

Get Envia Shipment History

envia_shipment_history
Read-onlyIdempotent

Fetch shipment history for a specified month and year, returning tracking numbers, carriers, statuses, routes, prices, and label URLs in markdown or JSON.

Instructions

Get shipment history for a given month and year.

Args: month — Month number (1-12) year — Year (2020 or later) response_format — "markdown" (default) or "json"

Returns: List of shipments with tracking number, carrier, status, route, price, and label URL.

Errors: 400 — Invalid month or year 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": {
      "month": "<month>",
      "year": "<year>"
    },
    "name": "envia_shipment_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYesYear (2020 or later)
monthYesMonth (1-12)
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown

Output Schema

NameRequiredDescriptionDefault
yearYes
monthYes
totalYesTotal number of shipments found
shipmentsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.7/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 genuinely new behavioral context: the fields returned per shipment and the specific failure modes (400 invalid month/year, 403 invalid API key), which help an agent anticipate errors and shape follow-up calls.

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 core purpose, then cleanly sectioned into Args, Returns and Errors, which makes it easy to scan. The Args block largely duplicates the input schema and is the one section that does not fully earn its space.

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 three-parameter read tool with full schema coverage, an output schema, and complete annotations, the definition covers purpose, return contents and error codes. The only gap is the absence of guidance on pagination or result-size limits for a monthly history, which an agent might want before calling.

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 all three parameters including the enum and default. The Args block restates the same ranges and format options without adding syntax, unit, or edge-case meaning beyond the schema, so this is the baseline case.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Get shipment history') plus the scoping dimension ('for a given month and year'), which lets an agent distinguish it from a single-shipment tool like envia_track. It stops short of naming any sibling explicitly, so differentiation is inferred rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The month/year scope implies when the tool applies (retrospective, period-based lookup), but there is no explicit when-to-use vs. when-not guidance and no mention of alternatives such as tracking a single shipment or quoting rates. An agent must infer the boundary from the scope alone.

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