Skip to main content
Glama

Match Names to Items

match_items
Read-onlyIdempotent

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.

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": {
      "q": "<q>"
    },
    "name": "match_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesThe name as written, e.g. Top.Gun.Maverick.2022.1080p.mkv or US: ESPN2 HD
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, e.g. 2026-11-02
kindNoItem kind: title, channel or fixture (optional), e.g. title
longNoQuery center longitude; requires lat
sortNoResult order. distance (needs lat and long) puts the nearest first, e.g. "distance"; anything else keeps newest first
unitNoDefault km
yearNoA four-digit year to prefer, when known, e.g. 2022
limitNoRows to return, integer 1-50, default 5, e.g. 3
radiusNoDefault 10; maximum 1000 km
collectionNoCollection slug: screen, channels or sports (optional), e.g. screen

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description adds substantial behavior on top: input is cleaned (year, season/episode, quality tags, playlist decorations), matched by similarity, fixture answers are bounded to a 36h-7d window, and every result carries a 0..1 score. The closed-world annotation is consistent with matching against an internal catalog.

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 examples, then matchup behavior, then scoring, then collection routing — a logical order with no filler sentences. It is dense and example-heavy, but each clause (cleaning rules, time window, score range) carries information an agent needs.

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 essential behavior: what gets normalized, how fixtures are time-bounded, that results are scored, and how collections partition the domain. Gaps are minor — it does not say how many matches typically come back or what an empty result means, though limit's default of 5 is visible in the schema.

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 schema carries the per-parameter burden and baseline is 3. The description adds genuine cross-parameter meaning: date narrows the otherwise implicit fixture window, and collection slugs map to screen/channels/sports content types. It does not add anything for lat/long/radius/bbox/sort/unit/limit beyond 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?

States a specific verb (match) and resource (a written name → title, channel or fixture), with concrete input examples ("Top.Gun.Maverick.2022.1080p.mkv", "US: ESPN2 HD") and matchup examples. An agent can tell this is a name-resolution tool rather than a plain keyword search, distinct from search_items/feed_items siblings.

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 routing guidance among the tool's own collections ("Use screen for films and TV, channels for television channels, sports for fixtures") and explains the default fixture window of 36 hours back to 7 days ahead unless date narrows it. It never names an alternative tool or states when not to use this one, so tool-level selection guidance is only implied.

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