Skip to main content
Glama

Pirate Ship: Get batch rates

pirate-ship_get_batch_rates
Read-only

Pirate Ship: Rates for every shipment in a batch, like Get Rates with all rows ticked. Returns each service with its total for the batch and the price per shipment, so the agent can pick one service for all labels. Shipments with an address problem are listed separately and are skipped until fixed. Nothing is bought. Needs the user's Cotlet API key with access to this app.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
batch_idYesBatch ID from create_batch.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint=false, and the description adds real context beyond them: it describes the return shape (per-service batch total plus per-shipment price), that address-problem shipments are listed separately and skipped until fixed, and the required Cotlet API key/app access. Only pagination or error semantics are left unaddressed.

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 purpose, then value, then caveat, then auth. Slightly conversational ('like Get Rates with all rows ticked', 'Nothing is bought') but each sentence contributes distinct information.

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?

With no output schema, the description carries the burden of describing returns, and it does ('each service with its total for the batch and the price per shipment'). Combined with the skip-until-fixed note and auth requirement, an agent has enough to call it correctly; only rate-blocking/error responses are unmentioned.

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% and the schema already documents batch_id as 'Batch ID from create_batch.' The description adds no parameter-level detail beyond what the schema provides, so the baseline 3 applies.

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 ('Rates for every shipment in a batch') and disambiguates from the sibling get_rates via the analogy 'like Get Rates with all rows ticked.' An agent can distinguish it from get_rates, create_batch, and buy_batch 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?

The 'like Get Rates with all rows ticked' analogy tells the agent when this applies (batch-level rate lookup) and 'Nothing is bought' signals it is not buy_batch. No explicit when-not or prerequisite for callers, but the selection context is clear.

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