Skip to main content
Glama
Signal8 MCP Server

Signal8 MCP Server

Official

Get Politician P&L

get_politician_pnl
Read-only

Estimate a politician's realized and unrealized profit and loss from disclosed trades, including win rate and per-ticker holdings breakdown by URL slug.

Instructions

Get estimated realized + unrealized profit & loss for a politician. Methodology: each disclosed trade amount range is converted to an estimated share count using the stock's historical market price on the transaction date, then FIFO-matched on shares (realized = (sellPrice - buyPrice) x matched shares); open positions are marked to the current price for unrealized P&L. Covers Congress (sen-/rep-) and executive branch (exec-) officials, identified by URL slug. Response includes a totals object (estimatedRealizedPnl, estimatedUnrealizedPnl, winRate, realizedTrades, tickersTraded) and a byTicker[] breakdown (estimatedShares, avgCostBasis, currentPrice, realizedPnl, unrealizedPnl, unrealizedPnlPercent); byTicker open positions double as the estimated holdings. All figures are estimates (±25-40% from disclosure bracket width).

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": {
      "slug": "<slug>"
    },
    "name": "get_politician_pnl"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesPolitician URL slug: congressional ("sen-nancy-pelosi", "rep-...") or executive ("exec-trump-donald-j")

Output Schema

NameRequiredDescriptionDefault
dataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.20.0
    • changedInput schema / properties / slug / description
      Previous value: -"Politician URL slug — congressional (\"sen-nancy-pelosi\", \"rep-...\") or executive (\"exec-trump-donald-j\")"New value: +"Politician URL slug: congressional (\"sen-nancy-pelosi\", \"rep-...\") or executive (\"exec-trump-donald-j\")"
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnly/non-destructive, so the description carries the rest: it discloses the FIFO estimation methodology, mark-to-market for unrealized, and a ±25-40% accuracy caveat — exactly the behavioral context an agent needs to trust or hedge the numbers. It doesn't mention latency, coverage limits, or empty-data behavior, keeping it short of a 5.

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

Conciseness4/5

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

Front-loaded with the purpose, then methodology, then response shape, then caveat — a logical order with no filler. The long parenthetical FIFO formula and the enumeration of response fields partly duplicate the output schema, slightly bloating a definition meant for selection.

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?

For a single-param, read-only estimate tool with an output schema present, the description supplies the missing piece — how the numbers are derived and how unreliable they are — so an agent can call and interpret it correctly without further context.

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% and already documents the slug including sen-/rep-/exec- prefixes, so the description adds little beyond restating the slug families; baseline 3 applies.

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 ('Get estimated realized + unrealized profit & loss for a politician') with precise scope: per-slug, covering Congress and executive branch, distinct from the sibling pnl_leaderboard which is cross-politician.

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 implied by the scoping ('for a politician... identified by URL slug'), which implicitly contrasts with the leaderboard sibling, but it never explicitly says when to use this versus get_politician_transactions or get_politicians_pnl_leaderboard, and lists no prerequisites or exclusions.

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

Deploy Server

Other Tools