Skip to main content
Glama

Arbifold Odds API

Grade bets

grade_bets
Read-only

Grade up to 200 bets against the stored results: won, lost, push, void, half_won, half_lost (dead_heat in racing).

For games already played, get event ids from find_results and the exact wording from get_closing (with player=). Each bet: {"event_id", "market", "label", "line"} exactly as the odds reply named the outcome, or {"race_id", "market": "win" | "place" | "top_2" ..., "number"}; add "id" for your own reference. A bet that cannot be graded comes back pending or ungraded with a reason: never guess a result for those. Bookmakers' own rules can differ, so the bookmaker's settlement is the final word.

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": {
      "bets": "<bets>"
    },
    "name": "grade_bets"
  }
}

Input Schema

NameRequiredDescriptionDefault
betsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true and openWorldHint=true; the description adds meaningful behavior beyond that — the 200-bet ceiling, the fact that ungradeable bets return 'pending'/'ungraded' with a reason instead of a guessed result, and that the bookmaker's settlement overrides the tool's own rules. The grading-without-writing behavior is consistent with readOnlyHint=true.

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 verb, the 200 limit, and the outcome enum, then moves to prerequisites and payload shapes; nearly every clause is load-bearing. The formatting is fragmented across short lines and the closing sentence about bookmaker rules, while useful, slightly dilutes the payload guidance.

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 single-parameter tool with no output schema, the description covers the required input, the prerequisite lookups, and the two non-terminal return states, which is close to sufficient. It could say more about the overall response shape (per-bet result records) and whether partial grading is possible when only some bets resolve.

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

Parameters5/5

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

Schema coverage is 0% and the schema types 'bets' only as an array of untyped objects, so the description carries the full burden — and it does, specifying two exact bet shapes (event_id/market/label/line for games, race_id/market/number for races) plus an optional 'id' for caller reference. It also fixes the semantic constraint that 'label' must mirror the odds reply's wording exactly.

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 and resource ('Grade ... bets against the stored results') and enumerates the exact outcome vocabulary (won, lost, push, void, half_won, half_lost, dead_heat in racing), plus a hard cap of 200 bets. This is clearly distinct from data-fetching siblings like find_results and get_closing, which it positions as inputs rather than substitutes.

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 scopes usage to 'games already played' and prescribes a prerequisite workflow: get event ids from find_results and exact outcome wording from get_closing with player=. That is strong, actionable guidance. It stops short of an explicit when-not statement (e.g., that upcoming/unplayed events should be priced or awaited instead), leaving that boundary implicit.

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