Skip to main content
Glama

Get a market's rules and edits

get_market
Read-onlyIdempotent

One Polymarket or Kalshi market: the rules in force now, the resolution source, end date, open or closed status, Yes price, and every recorded edit to its rules, source, end date or title, newest first, with the removed and added words. Use it when the user asks what a market's rules say or whether they changed. An unknown id returns suggestions; a Kalshi series or event ticker returns the markets under it.

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": {
      "venue": "<venue>",
      "id": "<id>"
    },
    "name": "get_market"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe market id. Polymarket: the number in the market's id, like 562802. Kalshi: the market ticker, like KXFEDDECISION-26DEC-H25. A Polymarket or Kalshi link is not an id; search with the link instead.
venueYespm (or polymarket) for Polymarket, kalshi for Kalshi.
history_limitNoHow many recorded edits to return, newest first. Default 10.

Output Schema

NameRequiredDescriptionDefault
idNo
urlNo
foundNo
rulesNo
titleNo
venueNo
seriesNo
statusNo
historyNo
messageNo
relatedNo
categoryNo
end_dateNo
yes_priceNo
rules_noteNo
venue_codeNo
venue_pageNo
watch_linkNo
event_titleNo
suggestionsNo
history_noteNo
edits_recordedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / history_limit
      Added value: +{
      +  "description": "How many recorded edits to return, newest first. Default 10.",
      +  "maximum": 20,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / id / description
      Added value: +"The market id. Polymarket: the number in the market's id, like 562802. Kalshi: the market ticker, like KXFEDDECISION-26DEC-H25. A Polymarket or Kalshi link is not an id; search with the link instead."
    • changedInput schema / properties / id / pattern
      Previous value: -"^[A-Za-z0-9_.:-]+$"New value: +"^[A-Za-z0-9][A-Za-z0-9._-]{0,119}$"
    • addedInput schema / properties / venue / description
      Added value: +"pm (or polymarket) for Polymarket, kalshi for Kalshi."
    • changedInput schema / properties / venue / enum
      Previous value: -[
      -  "pm",
      -  "kalshi"
      -]New value: +[
      +  "pm",
      +  "polymarket",
      +  "kalshi"
      +]
    • changedInput schema / properties / venue / maxLength
      Previous value: -6New value: +10
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "category": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "edits_recorded": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "end_date": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "event_title": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "found": {
      +      "type": "boolean"
      +    },
      +    "history": {
      +      "items": {
      +        "properties": {
      +          "fields": {
      +            "items": {
      +              "properties": {
      +                "added": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "after": {
      +                  "type": [
      +                    "string",
      +                    "array"
      +                  ]
      +                },
      +                "before": {
      +                  "type": [
      +                    "string",
      +                    "array"
      +                  ]
      +                },
      +                "field": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "removed": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "truncated": {
      +                  "type": "boolean"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "id": {
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          },
      +          "kind": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "kind_label": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "market_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "market_title": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "market_url": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "recorded_at": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "same_edit_on_other_markets": {
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          },
      +          "summary": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "url": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "venue": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "yes_price_at_edit": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "yes_price_before": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "history_note": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "id": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "message": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "related": {
      +      "items": {
      +        "properties": {
      +          "id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "status": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "title": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "url": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "yes_price": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "rules": {
      +      "items": {
      +        "properties": {
      +          "field": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "parts": {
      +            "items": {
      +              "type": [
      +                "string"
      +              ]
      +            },
      +            "type": "array"
      +          },
      +          "truncated": {
      +            "type": "boolean"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "rules_note": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "series": {
      +      "properties": {
      +        "settlement_sources": {
      +          "items": {
      +            "type": [
      +              "string"
      +            ]
      +          },
      +          "type": "array"
      +        },
      +        "ticker": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "title": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "url": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "status": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "suggestions": {
      +      "items": {
      +        "properties": {
      +          "id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "status": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "title": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "url": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "venue": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "venue_code": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "yes_price": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "title": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "url": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "venue": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "venue_code": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "venue_page": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "watch_link": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "yes_price": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

The annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the description is not needed for the safety profile. It nonetheless adds genuinely useful behavior the annotations cannot express: ordering (newest first), the diff format (removed and added words), graceful fallback on an unknown id (suggestions instead of an error), and a polymorphic return when handed a Kalshi series or event ticker. Those are exactly the non-obvious traits an agent needs before calling.

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?

Three sentences, front-loaded with the resource and its returned fields, then the use case, then edge behavior. The long first sentence is a dense enumeration where every item is a distinct returned field, so nothing is filler.

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?

With rich annotations, a full output schema, and complete parameter descriptions, the definition is nearly self-sufficient; the description adds the ordering and diff semantics plus the degraded-input behaviors. The only remaining gap is routing among the overlapping rule-change siblings, which the description never addresses.

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 every parameter, including the venue enum and the id format for both venues, is already documented in the schema. The description's 'every recorded edit ... newest first' gestures at history_limit but does not state the default or the 1-20 cap. With the schema doing the heavy lifting, this is the baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description enumerates exactly what one market record contains: current rules, resolution source, end date, open/closed status, Yes price, and the full edit history with removed/added words. That is a specific resource with a clear scope (single market, two venues). It stops short of naming sibling tools such as get_rule_change or recent_rule_changes, so the boundary is only implied rather than stated.

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 gives a concrete trigger: 'Use it when the user asks what a market's rules say or whether they changed.' It also documents two non-obvious entry conditions (unknown id returns suggestions; a series/event ticker returns the markets under it), which prevents misuse. It does not explicitly exclude or route to get_rule_change or recent_rule_changes, which cover overlapping questions, leaving the most likely sibling ambiguity unresolved.

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.