Skip to main content
Glama

Matchup

get_matchup
Read-onlyIdempotent

Use for a batter against a bowler: balls, runs, strike rate, dots, fours, sixes and every dismissal, overall and by format. Costs 5 credits.

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": {
      "batter_id": "<batter_id>",
      "bowler_id": "<bowler_id>"
    },
    "name": "get_matchup"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNo
leagueNoLeague. Defaults to cricket. One of: cricket, test, odi, t20i, ipl, bbl, psl, cpl, blast, hundred, sa20, ilt20, county, wbbl, wpl, hundred_women.
batter_idYesBatter's player id.
bowler_idYesBowler's player id.
competitionNoCompetition key from list_competitions (ipl, bbl, test, odi, t20i, ...).

Output Schema

NameRequiredDescriptionDefault
countYes
batterYes
bowlerYes
summaryYes
by_formatYes
dismissalsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world behavior, so the safety profile is covered. The description adds material context beyond that: the explicit 5-credit cost and the fact that results are broken out overall and by format. It does not say what happens when the pair has never faced each other, but that is a minor omission for a read-only aggregate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short clauses, front-loaded with the use case and metrics, then the cost. No filler and nothing redundant.

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 an output schema, full annotations, and 80% parameter coverage, the description only needs to establish purpose and cost, which it does. The one gap is that it does not tell the agent that player ids must come from search_players, which matters for a tool requiring two ids.

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

Parameters3/5

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

Schema description coverage is 80% and two parameters carry enums, so the schema already documents batter_id, bowler_id, league, and competition well. The phrase "overall and by format" hints that the format parameter is an optional slicing dimension, but no further detail is added beyond the schema baseline.

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 names the exact pairing (a batter against a bowler) and enumerates the returned metrics: balls, runs, strike rate, dots, fours, sixes, and every dismissal. That head-to-head framing is specific enough to separate it from broader siblings such as get_player_stats or get_deliveries.

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?

"Use for a batter against a bowler" gives a clear triggering condition, and the credit cost tells the agent about invocation expense. It stops short of stating when-not to use it (e.g., when only aggregate career stats are needed) or pointing at an alternative sibling.

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