compare_lines
Compare one market across all bookmakers for a match. Returns each book's quote line-by-line, the consensus line, the best price per outcome, each book's overround, and de-vigged fair odds from the sharpest (lowest-margin) book. Args: event_id: event id (e.g. "evt_…"). market_type: "1x2", "asian_...
This record as markdown: /tools/dev-infersports-infersports/compare-lines.md
What compare_lines does on Infersports
AI agents call compare_lines to retrieve information from Infersports without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
format | string | — | |
period | string | — | |
event_id | string | Yes | |
verbosity | string | — | |
market_type | string | — |
Parameters from the server's own tool schema.
Why compare_lines is rated Low
This tool retrieves and displays existing odds data across multiple bookmakers without modifying, creating, executing operations, or deleting any data. It performs analytics on existing quotes (consensus calculation, overround computation, fair odds derivation) but these are read-only computational outputs, not side effects. No external systems are triggered, no financial transactions occur, and no data is mutated.
From the tool's definition Tool description states it 'Compare one market across all bookmakers for a match' and 'Returns each book's quote line-by-line, the consensus line, the best price per outcome' — purely retrieval and comparison operations.
Attacks that exploit this kind of access
The rule that runs compare_lines safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Infersports, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For compare_lines, this is the rule to start with:
compare_lines is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Infersports, apply this rule, and every compare_lines call is checked against it from then on.
Questions about compare_lines
Compare one market across all bookmakers for a match. Returns each book's quote line-by-line, the consensus line, the best price per outcome, each book's overround, and de-vigged fair odds from the sharpest (lowest-margin) book. Args: event_id: event id (e.g. "evt_…"). market_type: "1x2", "asian_handicap" (default) or "totals". period: "full_time" (default) or "half_time". format: display odds format (analytics are computed in decimal regardless). verbosity: "full" (default) or "terse". "terse" drops the per-book books array (the bulk of the payload) and returns only the worked answer (best_prices / consensus_line / fair_odds / summary). It is categorised as a Read tool in the Infersports MCP Server, which means it retrieves data without modifying state.
compare_lines accepts 5 parameters: format, period, event_id, verbosity, market_type. Required: event_id. The full parameter table on this page comes from the server's own tool schema.
Register the Infersports MCP server in PolicyLayer and add a rule for compare_lines: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Infersports. Nothing to install.
compare_lines is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the compare_lines rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for compare_lines. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
compare_lines is provided by the Infersports MCP server (https://api.infersports.dev/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Infersports, and thousands of servers like it.
This server
Across the catalogue