Skip to main content
Glama

MyDataHub

Fetch order records

fetch_order_records
Read-onlyIdempotent

Returns a page of an order's delivered records (50 by default, up to 100) with the licence block on every page, as JSON or, on request, as CSV. Pages stay under about 8,000 tokens, with approx_tokens on each; pass next_cursor to continue. Fetching again under licence costs 0 credits; it needs records:read. Call check_suppression before any send, and get_compliance_receipt for proof of screening. Lawful basis is UK GDPR Article 6(1)(f) legitimate interests; email audiences include corporate subscribers only by default (PECR), so sole traders and ordinary partnerships are left out unless the toggle is changed.

Input Schema

NameRequiredDescriptionDefault
limitNoRecords per page, 1 to 100 over MCP so a result stays under about 8,000 tokens. Default 50.
cursorNoAn opaque cursor from next_cursor. Pass it back unchanged.
fieldsNoColumns to return; default the order's field set.
formatNojson (default) or csv.json
order_idYesThe order whose records to fetch. It must be ready.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description still adds substantial behavior: default and maximum page size, an ~8,000-token page budget with approx_tokens per page, next_cursor continuation, a required records:read scope, and zero credit cost on refetch. That is exactly the extra context annotations cannot carry.

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?

Front-loaded with the core behavior and pagination, which is good, but it is one dense paragraph bundling five unrelated topics. The closing sentence on UK GDPR Article 6(1)(f) lawful basis and PECR corporate-subscriber filtering concerns sending to audiences, not fetching records, and does not earn its place in this definition.

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 paged, read-only fetch with a full schema and an output schema, the definition covers what an agent needs: pagination mechanics, page-size limits, format choice, auth scope, and credit cost. The only loose end is how 'fields' interacts with the order's default field set, which the schema only partly resolves.

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, but the description adds rationale the schema lacks: the 100-record cap exists to keep a page under ~8,000 tokens, and the cursor is the next_cursor from the previous response. It does not explain 'fields' or the order_id readiness requirement beyond the schema, so it stops short of a 5.

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 ('Returns a page of an order's delivered records') plus the scope of what comes back (licence block on every page, JSON or CSV). An agent knows immediately this is a paged read of one order's delivered records, distinct from order creation or compliance-receipt tools.

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?

Gives workflow context ('Call check_suppression before any send, and get_compliance_receipt for proof of screening') and a cost rule ('Fetching again under licence costs 0 credits'), which implies refetching is cheap. However, it never contrasts with the closest sibling, preview_records, or states when not to use this fetch — the when-to-use guidance is implied rather than explicit.

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