Skip to main content
Glama

Manage Bet Codes

Book a New Bet Code From Plan or Picks

mbc_book_code

Mint a verified booking code on 1 to 6 bookmakers from a plan_id or direct picks. A key pick fans out within its family directly, and across families when bookmaker names the brand that minted the key. Costs 2 credits per target code created; refunded if no code is created.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mbc_book_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoOptional fan-out list of 1 to 6 target bookmakers.
picksNoGames to book without a plan_id, in the mbc_resolve_picks picks format.
strictNoAll games must resolve or no code is created (default true).
plan_idNo10-minute plan_id returned by mbc_resolve_picks.
bookmakerNoBookmaker key or alias. For a key pick that fans out to another family, this is the bookmaker that minted the key; include home_team and away_team when the target event_id differs.
accept_odds_changeNoAllow booking if odds moved since resolution (default false).

Output Schema

NameRequiredDescriptionDefault
codeNo
billingNo
successNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / picks / description
      Previous value: -"Direct game picks when booking without a plan_id. Each pick carries event_id plus either key or market and outcome."New value: +"Games to book without a plan_id, in the mbc_resolve_picks picks format."
  2. Changed2 schema fields changed
    • changedInput schema / properties / bookmaker / description
      Previous value: -"Primary target bookmaker key or alias (e.g. 'sportybet')."New value: +"Bookmaker key or alias. For a key pick that fans out to another family, this is the bookmaker that minted the key; include home_team and away_team when the target event_id differs."
    • changedInput schema / properties / picks / description
      Previous value: -"Direct game picks when booking without a plan_id."New value: +"Direct game picks when booking without a plan_id. Each pick carries event_id plus either key or market and outcome."
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already mark this as a non-readOnly, open-world, non-idempotent, non-destructive action. The description adds useful behavioral context beyond annotations: credit cost of 2 per target code created, refund if no code is created, and fan-out behavior for key picks.

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?

The description is front-loaded with the core action and scope, followed by fan-out semantics and cost/refund behavior. Every sentence carries operational meaning, and there is no redundant restatement of the title or schema.

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 complex, open-world booking action with an output schema and full parameter descriptions, the description covers the main action, source modes, fan-out behavior, and cost/refund policy. It could more explicitly state prerequisite or alternative-tool routing, but the essential invocation context is present.

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 100%, so the schema already defines plan_id, picks, to, strict, bookmaker, and accept_odds_change in detail. The description reinforces the 1-to-6 target scope and plan_id/picks source, but does not add much semantic detail beyond what the schema already provides.

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 states a specific verb and resource: 'Mint a verified booking code' with target scope 'on 1 to 6 bookmakers' and source 'from a plan_id or direct picks'. This clearly distinguishes it from sibling conversion tools, which operate on existing codes rather than creating new booking codes.

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?

The description implies usage by naming two input modes, plan_id and direct picks, but does not explicitly state when to choose this tool over siblings such as mbc_convert_code, mbc_convert_to_all, or mbc_create_job. The prerequisite that plan_id comes from mbc_resolve_picks appears only in the schema, not the description.

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.