Skip to main content
Glama

SEC EDGAR: filings, insider trades, 13F

SEC Insider Trading API (Form 4): stock transactions since 2006

search_sec_insider_trades
Read-onlyIdempotent

Get every insider purchase and sale reported to the SEC on Form 4, from today's filings back to 2006, as clean JSON rows: who traded (director, CEO, 10% owner), what, when, how many shares, at what price, and how many they hold afterwards. Plus cluster-buy and cluster-sell signals: the moment two or more directors or officers of the same company buy, or sell, their own stock within a few weeks. Filter by ticker, CIK, transaction code, insider role, value and date.

Default window: the last 7 days for the whole market, 90 days for named companies. For fund holdings and 5% stakes use get_sec_ownership; for the filings themselves use search_sec_filings.

Inputs: tickers or ciks (up to 5) name companies; omit both for the whole market. Dates: dateFrom/dateTo, or lookbackDays when dateFrom is empty. transactionCodes defaults to P and S (open-market buys and sells); insiderRoles and minValueUsd (US dollars, shares x price) narrow them. A cluster is 2 or more insiders of one company trading within clusterWindowDays: clusterBuysOnly/clusterSellsOnly keep only those trades, includeClusterSignals adds one summary row per cluster.

Read-only, no side effects. Charged per row returned, at the price below; a call that fails or runs out of time (55 s) is free. If one source does not answer, the rest still comes back and warnings names the gap. Limit: 60 calls a minute per key (10 on a new free key); past it the call is refused (rate_limited, free): retry after about 10 seconds.

Price: $0.0002 per unit (transaction=9, cluster-signal=100).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_sec_insider_trades"
  }
}

Input Schema

NameRequiredDescriptionDefault
ciksNoIssuer SEC Central Index Keys as digits, leading zeros optional, e.g. ["320193"] for Apple
dateToNoLatest filing date, YYYY-MM-DD, e.g. "2024-12-31"
tickersNoOptional: issuer stock tickers, e.g. ["AAPL", "TSLA"]
dateFromNoEarliest filing date, YYYY-MM-DD, e.g. "2024-01-01"
maxResultsNoMaximum transaction rows, newest first, e.g. 200
minValueUsdNoMinimum transaction value in USD (shares x price), e.g. 100000
insiderRolesNoOnly insiders with one of these roles: director, officer, ten_percent_owner, other, e.g. ["director", "officer"]
lookbackDaysNoUsed only when `dateFrom` is empty: read filings from this many days back until today, e.g. 30
clusterBuysOnlyNotrue = only open-market purchases that are part of a cluster: at least 2 different directors or officers of the same company buying, filed within `clusterWindowDays`, together worth at least $100,000
clusterSellsOnlyNotrue = only open-market sales that are part of a cluster (same rule as cluster buys, for sales)
transactionCodesNoForm 4 transaction codes to return, e.g. ["P"] for open-market purchases only
clusterWindowDaysNoHow many days of filings count as one cluster of insider buying or selling, e.g. 14
includeClusterSignalsNotrue = also output one row per cluster signal (record_type "cluster"): the day several insiders of a company bought or sold together

Output Schema

NameRequiredDescriptionDefault
rowsYes
toolNo
countYes
messageNo
warningsNo
balance_usdNo
charged_usdNo
duration_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / maxResults / examples
      Added value: +[
      +  20
      +]
    • addedInput schema / properties / tickers / examples
      Added value: +[
      +  [
      +    "AAPL"
      +  ]
      +]
    • addedInput schema / properties / transactionCodes / examples
      Added value: +[
      +  [
      +    "P",
      +    "S"
      +  ]
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "balance_usd": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "charged_usd": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "count": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "duration_seconds": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "message": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "rows": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "accepted_at": {
      +            "description": "EDGAR acceptance time with New York offset (live EDGAR rows only).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "accession_number": {
      +            "description": "SEC accession number of the Form 4 filing.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "accession_numbers": {
      +            "description": "Cluster rows: the Form 4 filings in the cluster.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "acquired_disposed": {
      +            "description": "A = acquired, D = disposed.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "cluster_date": {
      +            "description": "Purchases in a cluster: the date of that cluster signal.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "cluster_insiders": {
      +            "description": "Transactions: distinct directors/officers buying this issuer in the cluster window up to this filing date (null for non-buys or when the window reaches before the data read). Clusters: insiders in the cluster.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "cluster_side": {
      +            "description": "Cluster rows only: buy = insiders buying together, sell = insiders selling together (10b5-1 plan sales excluded).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "cluster_value_usd": {
      +            "description": "Total open-market purchase value of those insiders in the window.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "cluster_window_days": {
      +            "description": "Cluster rows: the window used.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "filing_date": {
      +            "description": "Date the SEC received the filing (YYYY-MM-DD). For cluster rows: the day the cluster rule was first met.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "filing_url": {
      +            "description": "EDGAR filing index page.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "first_filing_date": {
      +            "description": "Cluster rows: filing date of the first buy in the cluster.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "form": {
      +            "description": "4, or 4/A for an amendment.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "in_cluster": {
      +            "description": "Purchases only: part of a cluster signal.",
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "insider_cik": {
      +            "description": "SEC CIK of the reporting person.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "insider_name": {
      +            "description": "Reporting person (the first one in a joint filing).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "insider_names": {
      +            "description": "Cluster rows: the buying insiders.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "insider_roles": {
      +            "description": "director, officer, ten_percent_owner, other (combined over all joint filers).",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "issuer_cik": {
      +            "description": "SEC CIK of the issuer (10 digits).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "issuer_name": {
      +            "description": "Company whose shares were traded, as filed.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "officer_title": {
      +            "description": "Officer title, e.g. Chief Executive Officer.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "owner_count": {
      +            "description": "Number of reporting persons on the filing (joint filings > 1).",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "ownership": {
      +            "description": "direct or indirect (e.g. through a trust or fund).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "plan_10b5_1": {
      +            "description": "Made under a Rule 10b5-1 trading plan: true/false from the Form 4 checkbox (filings from 2023-04-01), true when a footnote says so, null when the filing predates the checkbox and no footnote mentions a plan (unknown, not 'no plan'). The box is optional for plans adopted before 2023-02-27, so false can still be such a plan.",
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "price": {
      +            "description": "Price per share in USD (null when the filing gives none).",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "record_type": {
      +            "description": "transaction = one Form 4 transaction; cluster = one cluster-buy or cluster-sell signal.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "retrieved_at": {
      +            "description": "UTC time the row was produced.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "schema_version": {
      +            "description": "Output schema version.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "security_title": {
      +            "description": "Security, e.g. Common Stock.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "shares": {
      +            "description": "Number of shares.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "shares_owned_after": {
      +            "description": "Shares owned after the transaction.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "source": {
      +            "description": "edgar-xml (parsed Form 4 XML), dera (SEC Insider Transactions Data Sets) or derived (cluster).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "source_url": {
      +            "description": "The SEC page to cite: the Form 4 filing (edgar-xml rows: the filing text; dera rows: the filing index page; see `source`).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "ticker": {
      +            "description": "Trading symbol as filed, or the listed ticker of the row's share class (BRK.B for Class B shares filed as BRK.A); null if that class has none.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "transaction_code": {
      +            "description": "Form 4 code: P purchase, S sale, A award, M option exercise, F tax withholding, G gift, ...",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "transaction_date": {
      +            "description": "Date of the transaction (YYYY-MM-DD).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "transaction_type": {
      +            "description": "Plain-English meaning of the transaction code.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "usable_from": {
      +            "description": "First weekday after filing_date: the earliest day a backtest may act on this row (Form 4s can be filed until 22:00 New York time, after the close). Trade at the first market open on or after this date.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "value_usd": {
      +            "description": "shares x price.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": "array"
      +    },
      +    "tool": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "warnings": {
      +      "items": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "rows",
      +    "count"
      +  ],
      +  "type": "object"
      +}
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, open-world, but the description adds a lot beyond them: per-row billing, the cost per unit, a 55-second timeout, free failed calls, graceful partial results with a warnings field, and rate limits with the exact refusal behavior and retry delay. That is exactly the operational context an agent needs to decide whether and how to call this.

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?

It is front-loaded with purpose, then defaults, then inputs, then cost and limits, which is a sensible order for a dense tool. It is long, which is defensible for 13 parameters, but the pricing is stated twice, once as 'charged per row returned, at the price below' and again in the closing Price line, which is small redundancy.

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?

With 13 parameters, an output schema present, and rich annotations, the description still covers scope, defaults, parameter interactions, billing, timeout, rate limits, and degraded-response behavior. Nothing an agent needs to call this correctly or predict its cost is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is already high, and the description still adds meaning: lookbackDays is only used when dateFrom is empty, minValueUsd is shares times price, transactionCodes defaults to open-market P and S, and a cluster is defined as 2+ insiders of one company within clusterWindowDays, with includeClusterSignals adding one summary row. The only minor gap is that the cluster dollar threshold and a few code meanings are left to the schema.

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?

The opening sentence gives a specific verb and resource (insider purchases and sales from SEC Form 4), the coverage window (2006 to today), the exact fields returned, and an additional capability (cluster-buy/cluster-sell signals). It explicitly names the two sibling tools to use for adjacent needs, so an agent can separate this from get_sec_ownership and search_sec_filings without opening any schema.

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

Usage Guidelines5/5

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

It states when to use this versus alternatives (fund holdings and 5% stakes go to get_sec_ownership, raw filings to search_sec_filings) and gives the default scope rules: last 7 days market-wide, 90 days for named companies. It also explains the two ways to specify companies, tickers or ciks with a cap of 5, and that omitting both means the whole market.

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.