Skip to main content
Glama
Financial Modeling Prep MCP Server

Financial Modeling Prep MCP Server

getHouseTradesById

Read-onlyIdempotent

Retrieve every disclosed House trade for one Congress member by ID to review their full trading history after locating their FMP member ID.

Instructions

Retrieve the House trading history of a single member by ID with the FMP House Trades By ID API. Use it after finding a member's ID through the profile tools to see every disclosed trade for that member.

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": {
      "senateID": "<senateID>"
    },
    "name": "getHouseTradesById"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number for pagination
limitNoLimit the number of results
senateIDYesCongress member ID as used by FMP (e.g., P000197)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.9.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Addedv2.8.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, so safety is covered. The description adds the useful prerequisite that the ID must be sourced from profile tools, but calling out 'every disclosed trade' glosses over the fact that page/limit exist, meaning a full history requires paging — an undisclosed behavioral caveat.

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?

Two compact sentences with the resource and the prerequisite front-loaded. The vendor API name ('FMP House Trades By ID API') is filler an agent does not need, but overall there is little waste.

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?

For a simple three-parameter read with no output schema, the description covers purpose, scope, and the ID prerequisite adequately. The one missing piece is guidance on paginating through results when a member has many trades.

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 senateID, page, and limit are already documented in the schema. The description only reinforces that senateID comes from profile tools; it adds nothing about pagination semantics or sensible limit values, so 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 and resource: retrieve House trading history for a single member, scoped by ID. The phrase 'single member by ID' cleanly separates it from the list-style and name-based siblings, and 'every disclosed trade for that member' makes the returned scope concrete.

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?

Gives an explicit precondition: use it after obtaining a member's ID from the profile tools. It does not, however, name the sibling alternatives (getHouseTrades for all trades, getHouseTradesByName, getSenateTradesById) so the agent must infer when to prefer those instead.

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