Skip to main content
Glama
sharpapi-mcp

sharpapi-mcp

Official
by Sharp-API

get_markets

Read-only

List available betting markets with their ids, event counts, and pricing books, optionally scoped by sport or league. Use the returned ids when requesting odds or markets elsewhere.

Instructions

List the markets SharpAPI prices, with their ids (e.g. "moneyline", "point_spread", "player_points"), how many events carry each and which books price it. Pass league or sport to scope the list and its counts. Use the returned ids for the market argument elsewhere. Each row carries market_type_id; see get_market_types.

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": "get_markets"
  }
}

Input Schema

NameRequiredDescriptionDefault
sportNoSport id, or several comma-separated. Combined with league, a market must match both.
leagueNoLeague id, e.g. "nfl". Counts become league-local.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint=false and openWorldHint, so the safety profile is covered. Beyond that the description discloses the shape of the result set (ids, per-market event counts, which books price each market) and the scoping semantics of the counts, which is genuine added context. It does not discuss pagination or result-size limits.

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?

Four short sentences, each doing distinct work: purpose and payload first, then scoping, then downstream usage, then the sibling pointer. There is no filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 carries the burden of explaining return values, and it does so concretely (market ids, event counts, pricing books). Combined with a fully documented two-parameter schema and read-only annotations, an agent has everything needed to call it correctly and use the result.

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%, and both parameters already document scoping and the combined sport+league matching rule. The description restates the scoping intent ('scope the list and its counts') but adds no syntax, format, or default-value detail beyond the schema, so the baseline of 3 applies.

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 opens with a specific verb and resource ('List the markets SharpAPI prices') and enumerates what each row carries: market ids such as "moneyline", event counts, and pricing books. It explicitly distinguishes itself from the sibling get_market_types by pointing at market_type_id, so an agent can separate the two without opening a schema.

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?

It states how to scope the result ('Pass league or sport') and, more usefully, what to do with the output ('Use the returned ids for the `market` argument elsewhere'), which routes the agent into the correct downstream workflow. It also names the related get_market_types tool. It stops short of an explicit when-not or exclusion case, so it is clear context rather than full conditional guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.