Skip to main content
Glama

match_items

Which title, channel or fixture is this name? Give a file name, a release name or a playlist entry ("Top.Gun.Maverick.2022.1080p.mkv", "US: ESPN2 HD"); it is cleaned (year, season and episode, quality tags, playlist decorations) and matched by similarity. A matchup ("NFL: Chiefs vs Bills", "Lakers @ Celtics", "Rangers at Celtic 19:45") is answered by the fixture whose two teams those are, kicking off between 36 hours ago and 7 days ahead unless date narrows it. Each result carries a score in 0..1. Use screen for films and TV, channels for television channels, sports for fixtures.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qYesThe name as written
latNoQuery center latitude; requires long
bboxNowest,south,east,north; west > east crosses the antimeridian
dateNoA day (YYYY-MM-DD) to look for a fixture on, plus a day either side
kindNoItem kind: title, channel, fixture
longNoQuery center longitude; requires lat
sortNo
unitNoDefault km
yearNoA year to prefer, when known
limitNoDefault 5, max 50
radiusNoDefault 10; maximum 1000 km
collectionNoCollection slug: screen, channels or sports

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / bbox
      Added value: +{
      +  "description": "west,south,east,north; west > east crosses the antimeridian",
      +  "type": "string"
      +}
    • addedInput schema / properties / lat
      Added value: +{
      +  "description": "Query center latitude; requires long",
      +  "maximum": 90,
      +  "minimum": -90,
      +  "type": "number"
      +}
    • addedInput schema / properties / long
      Added value: +{
      +  "description": "Query center longitude; requires lat",
      +  "maximum": 180,
      +  "minimum": -180,
      +  "type": "number"
      +}
    • addedInput schema / properties / radius
      Added value: +{
      +  "description": "Default 10; maximum 1000 km",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / sort
      Added value: +{
      +  "enum": [
      +    "id",
      +    "published",
      +    "updated",
      +    "distance"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / unit
      Added value: +{
      +  "description": "Default km",
      +  "enum": [
      +    "km",
      +    "mi"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / date
      Added value: +{
      +  "description": "A day (YYYY-MM-DD) to look for a fixture on, plus a day either side",
      +  "type": "string"
      +}
  3. Added

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does well: it discloses normalization/cleaning behavior, similarity matching, the fixture kickoff window (36 hours ago to 7 days ahead, narrowed by date), and that each result carries a 0..1 score. It omits permission/rate-limit or error behavior, but for a read-style resolver this is thorough.

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 question and the example inputs, then behavior, then routing. It is dense and each sentence adds information, though the parenthetical example lists and window rule make it longer than strictly minimal.

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 12-parameter, no-output-schema tool, the description covers the semantic core (what it matches, how, the score output, fixture timing) while the well-covered schema documents geospatial, sort, limit and radius params. Nothing critical is missing, though pagination/ranking defaults beyond the score are not discussed.

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 92%, so the baseline is 3, and the description adds beyond it: it explains that date narrows the fixture window, implies year is a preference signal, and ties collection values to collection semantics. The geospatial and sort/limit params are left entirely to the schema.

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 frames a precise resolvable question ('Which title, channel or fixture is this name?') and states the mechanism: input names are cleaned (year, season/episode, quality tags, playlist decorations) and matched by similarity. This clearly differentiates it from sibling lookup tools like get_item or search_items by scope and intent.

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 routes the agent explicitly: 'Use screen for films and TV, channels for television channels, sports for fixtures,' and explains that matchup strings resolve to fixtures. It lacks explicit when-not-to-use or a named alternative, but the collection-based routing is strong practical guidance.

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.