Skip to main content
Glama

NicheDB: Match Names to Items

nichedb_match_items
Read-onlyIdempotent

[NicheDB] 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.

Served by NicheDB (https://nichedb.dev/docs/mcp).

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": "nichedb_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.5/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered; the description goes further by disclosing the matching mechanism (cleaning of year, season/episode, quality tags, playlist decorations, then similarity match), the fixture time window (36 hours back to 7 days ahead), and that each result carries a 0..1 score. Those are substantive behavioral traits not present in the annotations.

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-loads the core question and the accepted input forms, then layers fixture behavior and scoring. Dense but every sentence carries information; the parenthetical example lists are slightly heavy but functional.

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 covers input forms, resolution behavior, time bounds, and a note on the score field, which is enough to invoke it correctly. Return shape beyond the score (fields, ordering tie-breaks) is not described, leaving a small gap for a 12-parameter tool.

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 baseline is 3, but the description adds meaning beyond it: it explains that a matchup form of q resolves to a fixture and that date narrows the fixture window, and it ties collection values to content types. Minor added value over the schema's own descriptions, hence not 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+resource ("Which title, channel or fixture is this name?") and shows exactly what inputs it accepts with three concrete name examples. It is clearly distinguishable from a generic search tool because it describes fuzzy name-to-item matching rather than keyword search.

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?

Gives explicit routing advice: "Use screen for films and TV, channels for television channels, sports for fixtures," which maps input types to the correct collection. It does not name an alternative sibling tool or say when NOT to use it (e.g. versus nichedb_search_items), leaving that inference to the agent.

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