Skip to main content
Glama

MagicMarkets

snap_price

Read-onlyIdempotent

Snap a decimal price onto the API's tick schedule and report the tick size and implied probability. Runs locally with no API call. Off-tick order prices are rounded so they never tighten your limit: down for back ('for') orders, up for lay ('against') orders. Use this to know the price an order will actually run with.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
priceYesDecimal price, between 1.01 and 1000.
bet_typeNoBet type string; its direction decides the rounding.
directionNo'for' (back, rounds down) or 'against' (lay, rounds up). Defaults to 'for'. Ignored when bet_type is given.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
tickYes
snappedYes
directionYes
requestedYes
already_validYes
implied_centsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, non-destructive, and local behavior. The description adds important behavioral detail beyond annotations: it runs locally with no API call, and off-tick prices are rounded so they never tighten the limit, with direction-specific rounding rules.

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 sentences, each earning its place: purpose, local execution, rounding behavior, and usage context. The core purpose is front-loaded and no sentence is wasted.

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?

Given the existence of an output schema, the description need not explain return values. It covers what the tool does, how it behaves locally and with off-tick prices, and when to use it, leaving no critical gap for an agent.

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 coverage is 100%, so the input schema already documents price, bet_type, and direction thoroughly. The description reinforces the direction-based rounding logic but adds little parameter meaning beyond what the schema and its descriptions already provide.

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+resource: snapping a decimal price onto the API's tick schedule, and names the outputs (tick size and implied probability). This is clearly distinguishable from order-placement siblings such as place_order, even though no sibling is named explicitly.

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?

Provides a clear usage context: 'Use this to know the price an order will actually run with.' It does not mention when not to use it or name alternatives, so it falls short of the explicit when/when-not/alternative standard.

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