Skip to main content
Glama

Filter, sort and summarise fetched listings

analyze_listings
Read-onlyIdempotent

Work on the COMPLETE response of an earlier get_event_listings, compare_marketplaces or find_events call, including items too many to show inline. Pass the file link from that result. Free: spends no credits and makes no new fetch. Works for 15 minutes after the fetch, only for the account that made it. For marketplace listings it uses one standard row per listing with the same field names on every marketplace: section, row, quantity (tickets available), splits (quantities you can buy), price (per ticket before fees), fees, price_total (all-in per ticket), face_value, currency, notes, area, ticket_type, inventory_type, deal_score, delivery, is_parking, listing_id, marketplace. Any other field name is read from the original listing (prefix 'raw.' to force that). compare_marketplaces results merge every marketplace's listings into one list with a marketplace field. Filter with conditions (AND) and tickets, sort, pick fields, get min/median/max of a numeric field, and count or price items per group (per section, per marketplace, per row). Every reply includes an overview of all matches: count, tickets, price range and the cheapest listing.

Input Schema

NameRequiredDescriptionDefault
fileYesThe file link from an earlier result (https://mcp.ticketsdata.com/mcp?file=...) or just its token.
limitNoHow many matching items to return (0 for summary only). Default 50.
whereNoConditions every returned item must meet, combined with AND. Example: [{"field":"price_total","op":"<=","value":300},{"field":"section","op":"in","value":["101","102"]}].
fieldsNoReturn only these fields of each item. Omit to return the standard rows (or raw items when there is no standard view).
offsetNoSkip this many matching items, for paging.
sort_byNoField to sort matches by, e.g. 'price_total'. Numbers (including prices written as text) sort numerically. Items without the field go last.
ticketsNoKeep only listings where exactly this many tickets can be bought together (uses splits, or quantity when the marketplace gives no splits).
group_byNoField to group matches by, e.g. 'section' or 'marketplace'. Returns count per group (and prices with stats_field), cheapest group first.
list_pathNoDotted path of a list in the raw response to analyze instead, e.g. 'body.events'. Turns off the standard view.
descendingNoSort from highest to lowest.
include_rawNoAdd the original listing under 'raw' to each standard row.
stats_fieldNoNumeric field to summarise over ALL matches: min, p25, median, p75, max, mean. Also adds min, median and max to each group.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive, closed-world), it discloses that it spends no credits, performs no new network fetch, expires 15 minutes after the fetch, and is restricted to the account that created the file. Those cost/auth/expiry traits are exactly the behavioral facts annotations cannot express.

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?

Purpose and the cost/expiry constraints are front-loaded in the first two sentences, and the long field enumeration earns its space as the shared vocabulary for filtering. It is dense and list-heavy in the middle, but no sentence is padding.

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?

With no output schema, the description carries the return contract itself: 'Every reply includes an overview of all matches: count, tickets, price range and the cheapest listing,' plus what group_by and stats_field return. Combined with the field vocabulary and input prerequisites, an agent has everything needed to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% so the baseline would be 3, but the description adds material meaning the schema lacks: the canonical standard row field names (price_total, splits, deal_score, etc.) that conditions must reference, the 'raw.' prefix convention, that conditions combine with AND, and the merge semantics for compare_marketplaces output. This vocabulary is what an agent needs to write valid `where` clauses.

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?

The description states a specific verb and resource — analyze/filter/sort/summarise the COMPLETE stored response of an earlier fetch — and names the exact sibling tools that produce that input (get_event_listings, compare_marketplaces, find_events). An agent can tell this apart from the fetch tools and from list_marketplaces 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?

It gives clear when-to-use context: run after one of the named fetch calls, pass that result's file link, and it makes no new fetch. It also states the operating window (15 minutes) and account scope, which are prerequisites. It stops short of explicitly naming the alternative to reach for when fresh data is needed, but 'makes no new fetch' strongly implies it.

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