Skip to main content
Glama
Arjein

Polymarket MCP Server

by Arjein

get_midpoint

Calculate the mid-market price for an outcome token by averaging best bid and ask prices, delivering a fair-value indicator for Polymarket markets.

Instructions

Calculate and return the mid-market price for a specified outcome token.

The midpoint serves as a fair-value indicator generated by averaging the current best bid and best ask prices.

Args: token_id (str): The fundamental token identifier indicating the outcome side.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
token_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral load. It does add real value by explaining the computation (averaging current best bid and best ask), which tells the agent what the value represents, but it omits behavior for illiquid/empty books, error conditions, and confirms nothing about read-only safety.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core sentences are lean and front-loaded, but the trailing 'Args: token_id (str)' block merely restates the schema and duplicates information already available, adding mild waste without new meaning.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value explanation is not required, and the single read-only parameter keeps the tool simple. Missing is any routing guidance relative to the many price/spread siblings, leaving the definition adequate but with an obvious gap.

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 0% (the schema only gives the bare string type 'Token Id'). The description partially compensates by describing token_id as 'the fundamental token identifier indicating the outcome side', which adds outcome-side meaning, but it still does not explain format, where to obtain it, or how it maps to a market.

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?

States a specific verb+resource ('Calculate and return the mid-market price for a specified outcome token') and defines what a midpoint is, so the operation is unambiguous. However it never differentiates itself from the very similar sibling get_midpoints (plural), which an agent would need to disambiguate.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisite, and no direction to alternatives such as get_price, get_spread, or get_midpoints. The only hint is the 'fair-value indicator' framing, which implies a use case but does not route the agent between siblings.

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