Skip to main content
Glama
sharpapi-mcp

sharpapi-mcp

Official
by Sharp-API

get_closing_lines

Read-only

Retrieve an event's closing lines—each book's final pre-match prices and no-vig fair probabilities—to calculate closing-line value and see if a bet beat the close.

Instructions

Get the closing lines captured for an event: each book's last pre-match prices from the moment the event went live, with no-vig and fair closing probabilities. Use it for closing-line value (CLV): was a bet better or worse than the close? Pass sportsbook and market to read one book and one market: an answer over about 100 kB is cut to its first rows and carries a truncated note with the full row count. An event that has not started returns no books. Requires a Pro plan or above.

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": {
      "event_id": "<event_id>"
    },
    "name": "get_closing_lines"
  }
}

Input Schema

NameRequiredDescriptionDefault
marketNoMarket id from get_markets, e.g. "moneyline". Comma-separate for several. Matched whole against each row's market_type; when nothing matches, the answer lists the ids the event does carry as available_markets.
event_idYesEvent id from list_events
sportsbookNoBook id from list_sportsbooks. Comma-separate for several.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover read-only and open-world behavior, yet the description still adds substantive operational detail: a ~100 kB response cutoff that returns only the first rows plus a `truncated` note with the full row count, an empty result for events that have not started, and a Pro-plan prerequisite. These are exactly the failure modes an agent needs to anticipate; only the exact output shape remains unspecified.

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-loads the definition of closing lines, then the CLV use case, then the operational caveats and the plan requirement — a sensible priority order. It is dense but nearly every clause carries information; the only mild redundancy is restating the book/market narrowing alongside the truncation note.

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 full burden of describing returns, and it does: no-vig and fair closing probabilities per book, a `truncated` marker with full row count, and an empty result for unstarted events. Combined with the Pro-plan caveat, an agent has everything needed to call it and interpret the response.

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 baseline would be 3, but the description adds real guidance beyond the schema: passing sportsbook and market narrows the read to one book and one market, which is the practical way to stay under the truncation threshold. That connects a parameter choice to an observable consequence, something the schema does not do.

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 ('Get the closing lines captured for an event') and then defines the resource precisely: each book's last pre-match prices from the moment the event went live, with no-vig and fair closing probabilities. That distinguishes it from live-odds siblings such as get_event_odds or get_odds without ambiguity.

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?

Gives an explicit use case — closing-line value, 'was a bet better or worse than the close?' — which anchors when to reach for it. It also implicitly scopes itself to finished/live events by noting unstarted events return no books, but never names an alternative sibling for live pricing, so the routing is clear rather than exhaustive.

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