Skip to main content
Glama

WritersLogic business agents

score-state

Score state for tennis, golf handicap differentials and cricket overs — Replays a tennis point sequence (ITF Rules of Tennis: games, deuce, tie-breaks, match tie-break, who serves), computes a golf Score Differential and Handicap Index (World Handicap System), or tallies a cricket innings ball by ball (overs.balls, wides and no-balls, maidens, wickets), for agents that must verify a reported score. Optionally checks a claimed score against the replay and names the fir

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": {
      "sport": "<sport>"
    },
    "name": "score-state"
  }
}

Input Schema

NameRequiredDescriptionDefault
golfNoFor sport=golf: a round, a list of differentials, or both.
sportYesSelects which block below is read.
tennisNoFor sport=tennis.
cricketNoFor sport=cricket: one innings, ball by ball.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose meaningful behavior: deterministic replay under named rule sets, and that a claimed score is checked against the replay with the first mismatch named (though that sentence is cut off mid-word, 'names the fir'). It does not say what happens on malformed input (e.g. points string with invalid characters), whether errors are returned or thrown, or what the response structure looks like despite there being no output schema.

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

Conciseness3/5

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

The opening clause is well front-loaded and dense with the three sport modes. However, the text is a single run-on construction and ends abruptly at 'names the fir', an incomplete sentence that leaves the claim-verification behavior unexplained and makes the definition look truncated.

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 three-mode, deeply nested schema with no output schema, the description does the essential job of explaining what each sport block computes and that claim verification is optional. The main gap is the missing return-shape description, which matters more here because the verification result ('names the first mismatch') is exactly what the agent needs to interpret, and that clause is truncated.

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 already documents every nested field, which sets a baseline of 3. The description still adds orientation by enumerating the domain concepts the parameters encode (overs.balls, wides and no-balls, maidens, wickets; games, deuce, tie-breaks, who serves), helping an agent map a real-world scoring problem onto the correct sport block before reading 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?

Names specific verbs and resources for each of three modes: replaying a tennis point sequence, computing a golf Score Differential and Handicap Index, and tallying a cricket innings ball by ball. The governing rule sets (ITF Rules of Tennis, World Handicap System, cricket Laws) and the verify-a-claimed-score framing make it unmistakable what the tool does and distinguish it from unrelated siblings.

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?

Explicitly targets 'agents that must verify a reported score' and notes that claim checking is optional, which tells the agent both the primary use case and that the claim sub-objects can be omitted. It stops short of stating when not to use it or naming an alternative, but the sport-scoped framing gives clear context for invocation.

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