Skip to main content
Glama

Get Position Timeline By Trader ID

get_position_timeline_by_id
Read-onlyIdempotent

Get every stored Polymarket fill for one internal trader id in one market, at any date, newest first, using the public V1 /api/v1/traders/{id}/position-timeline route.

Args:

  • condition_id (string, required): Market condition ID

  • trader_id (number, required): Internal traders.id alias

  • limit (number, 1-100, default 20)

  • cursor (string, optional)

Returns: List of position timeline events with pagination metadata.

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": {
      "condition_id": "<condition_id>",
      "trader_id": "<trader_id>"
    },
    "name": "get_position_timeline_by_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax events (1-100, default 20)
cursorNoPagination cursor from previous response
trader_idYesInternal traders.id alias
condition_idYesMarket condition ID

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / $defs / ResponseMeta / properties / continued_from_generation
      Added value: +{
      +  "type": "integer"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / $defs / PositionTimelineEvent / properties / tx_hash / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
  3. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "data": {
      -        "items": {
      -          "$ref": "#/$defs/PositionTimelineEvent"
      -        },
      -        "type": "array"
      -      },
      -      "has_more": {
      -        "type": "boolean"
      -      },
      -      "meta": {
      -        "$ref": "#/$defs/ResponseMeta"
      -      },
      -      "next_cursor": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "total": {
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "data",
      -      "has_more",
      -      "next_cursor",
      -      "meta"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "error": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "code": {
      -            "type": "string"
      -          },
      -          "doc_url": {
      -            "type": "string"
      -          },
      -          "param": {
      -            "type": "string"
      -          },
      -          "reason": {
      -            "type": "string"
      -          },
      -          "request_id": {
      -            "type": "string"
      -          },
      -          "retry_after_seconds": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "retry_at": {
      -            "type": "string"
      -          },
      -          "status": {
      -            "minimum": 0,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "code"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "data": {
      +        "items": {
      +          "$ref": "#/$defs/PositionTimelineEvent"
      +        },
      +        "type": "array"
      +      },
      +      "has_more": {
      +        "type": "boolean"
      +      },
      +      "meta": {
      +        "$ref": "#/$defs/ResponseMeta"
      +      },
      +      "next_cursor": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "total": {
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "data",
      +      "has_more",
      +      "next_cursor",
      +      "meta"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "billing_url": {
      +            "type": "string"
      +          },
      +          "code": {
      +            "type": "string"
      +          },
      +          "doc_url": {
      +            "type": "string"
      +          },
      +          "param": {
      +            "type": "string"
      +          },
      +          "reason": {
      +            "type": "string"
      +          },
      +          "request_id": {
      +            "type": "string"
      +          },
      +          "retry_after_seconds": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "retry_at": {
      +            "type": "string"
      +          },
      +          "status": {
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "code"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  4. Changed2 schema fields changed
    • removedOutput schema / $defs / PositionTimelineEvent / properties / token_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / $defs / PositionTimelineEvent / properties / token_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  5. Changed3 schema fields changed
    • addedOutput schema / $defs / PositionTimelineEvent / properties / token_id / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / $defs / PositionTimelineEvent / properties / token_id / nullable
      Removed value: -true
    • removedOutput schema / $defs / PositionTimelineEvent / properties / token_id / type
      Removed value: -"string"
  6. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "PositionTimelineEvent": {
      +      "properties": {
      +        "action": {
      +          "enum": [
      +            "buy",
      +            "sell"
      +          ],
      +          "type": "string"
      +        },
      +        "amount_delta": {
      +          "type": "number"
      +        },
      +        "event_timestamp": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "outcome_side": {
      +          "enum": [
      +            "yes",
      +            "no"
      +          ],
      +          "type": "string"
      +        },
      +        "price": {
      +          "type": "number"
      +        },
      +        "running_amount": {
      +          "type": "number"
      +        },
      +        "running_avg_price": {
      +          "type": "number"
      +        },
      +        "token_id": {
      +          "nullable": true,
      +          "type": "string"
      +        },
      +        "tx_hash": {
      +          "type": "string"
      +        },
      +        "usdc_notional": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "event_timestamp",
      +        "action",
      +        "outcome_side",
      +        "token_id",
      +        "amount_delta",
      +        "price",
      +        "usdc_notional",
      +        "tx_hash",
      +        "running_amount",
      +        "running_avg_price"
      +      ],
      +      "type": "object"
      +    },
      +    "ResponseMeta": {
      +      "properties": {
      +        "cache_age_s": {
      +          "type": "integer"
      +        },
      +        "cached": {
      +          "type": "boolean"
      +        },
      +        "category_skill_base_payload_hash": {
      +          "pattern": "^[0-9a-f]{64}$",
      +          "type": "string"
      +        },
      +        "category_skill_enriched_base_payload_hash": {
      +          "pattern": "^[0-9a-f]{64}$",
      +          "type": "string"
      +        },
      +        "category_skill_model_operationally_degraded": {
      +          "type": "boolean"
      +        },
      +        "category_skill_model_version": {
      +          "type": "string"
      +        },
      +        "category_skill_observation_started_at": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "category_skill_platform": {
      +          "const": "polymarket",
      +          "type": "string"
      +        },
      +        "category_skill_scope": {
      +          "const": "observed_goldsky_primary_taker_fill",
      +          "type": "string"
      +        },
      +        "category_skill_source": {
      +          "enum": [
      +            "live",
      +            "partial",
      +            "degraded",
      +            "unavailable"
      +          ],
      +          "type": "string"
      +        },
      +        "category_skill_source_coverage": {
      +          "enum": [
      +            "partial_whale_threshold_fills",
      +            "graded_wallet_fills"
      +          ],
      +          "type": "string"
      +        },
      +        "category_skill_status_counts": {
      +          "properties": {
      +            "degraded": {
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "insufficient": {
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "live": {
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "stale": {
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "unknown": {
      +              "minimum": 0,
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "live",
      +            "insufficient",
      +            "stale",
      +            "unknown",
      +            "degraded"
      +          ],
      +          "type": "object"
      +        },
      +        "category_skill_taxonomy_version": {
      +          "type": "string"
      +        },
      +        "cost": {
      +          "type": "integer"
      +        },
      +        "directional_source": {
      +          "enum": [
      +            "live",
      +            "degraded"
      +          ],
      +          "type": "string"
      +        },
      +        "ranking_as_of": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "ranking_generation": {
      +          "type": "integer"
      +        },
      +        "ranking_source": {
      +          "enum": [
      +            "live",
      +            "db_only"
      +          ],
      +          "type": "string"
      +        },
      +        "request_id": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "request_id",
      +        "cached",
      +        "cost"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "data": {
      +          "items": {
      +            "$ref": "#/$defs/PositionTimelineEvent"
      +          },
      +          "type": "array"
      +        },
      +        "has_more": {
      +          "type": "boolean"
      +        },
      +        "meta": {
      +          "$ref": "#/$defs/ResponseMeta"
      +        },
      +        "next_cursor": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "total": {
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "data",
      +        "has_more",
      +        "next_cursor",
      +        "meta"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "error": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "code": {
      +              "type": "string"
      +            },
      +            "doc_url": {
      +              "type": "string"
      +            },
      +            "param": {
      +              "type": "string"
      +            },
      +            "reason": {
      +              "type": "string"
      +            },
      +            "request_id": {
      +              "type": "string"
      +            },
      +            "retry_after_seconds": {
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "retry_at": {
      +              "type": "string"
      +            },
      +            "status": {
      +              "minimum": 0,
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "code"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "error"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  7. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description still adds useful behavior: results are ordered 'newest first', the data is the stored fill history with no date filtering, and it is served from the public V1 route. It omits rate limits and whether the route is truly public/unauthenticated in a way that affects callers.

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 opening sentence is well front-loaded, but the Args block and Returns line duplicate the input schema and output schema verbatim, so several lines do not earn their place. The content is accurate and readable, just padded with redundant structured data.

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 and annotations carry the safety profile, so the remaining burden is mainly disambiguation and semantics. The description leaves 'internal trader id' undefined relative to wallet addresses and never contrasts this tool with its near-identical sibling get_position_timeline, which is the most likely source of misselection.

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 the Args block restates the same facts (condition_id is the market condition ID, trader_id is the internal traders.id alias, limit 1-100 default 20, cursor from previous response). It adds no interpretation beyond the schema, so the baseline of 3 applies.

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 names a specific verb and resource plus scope: 'Get every stored Polymarket fill for one internal trader id in one market, at any date, newest first.' That is far more informative than the name alone. It does not, however, distinguish it from the sibling get_position_timeline or get_positions, so the agent must infer what 'by_id' changes about the query.

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

Usage Guidelines3/5

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

Usage is only implied: 'one internal trader id in one market' signals the filtering shape, and 'at any date' hints that no date narrowing is applied here. There is no explicit statement of when to prefer this over get_position_timeline, get_positions, or get_combo_fills, and no exclusions or prerequisites are given.

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.