Skip to main content
Glama

Form4API — SEC Insider Trading

Peer companies

get_company_peers
Read-onlyIdempotent

Peer companies in the same SIC industry, ranked by recent Form 4 activity. Returns other tracked companies in the same industry as the given ticker, for "similar companies" links. Candidates share the company's 4-digit SIC code (matchLevel "sic4"); when too few of those have Form 4 filings in the last 12 months to fill limit, companies sharing only the 2-digit SIC prefix (matchLevel "sic2") are added. Active peers (at least one Form 4 filing dated in the trailing 12 months, filings12m) come first, sic4 before sic2, each tier ordered by filings12m descending then ticker ascending; peers with no filings in the window are appended last only if there is still room. The company itself is excluded, as are companies without a ticker or without a usable SIC code, and any other company holding the same ticker. When several companies hold the ticker, the one GET /v1/companies/{ticker} returns is used. basis is "sic4", "sic2" or "mixed" according to the match levels present in peers, and "none" when peers is empty (including when the company has no SIC code, which is 200 with an empty list, not 404). limit defaults to 10 and is clamped to 1-25. Returns 404 NOT_FOUND if the ticker isn't tracked. Not plan-gated. Results are cached for a few hours.

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": {
      "ticker": "<ticker>"
    },
    "name": "get_company_peers"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of peers to return. Defaults to 10, clamped to 1-25.
tickerYesCompany ticker symbol, case-insensitive (e.g. "AAPL").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare a safe, idempotent, open-world read, and the description layers substantial extra context on top: caching for a few hours, 'Not plan-gated', 404 NOT_FOUND for untracked tickers, and a 200-with-empty-list edge case when the company has no SIC code. It also discloses exclusion rules, ordering, and the meaning of the `basis` field, which is more than the annotations carry.

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?

Purpose and scope are front-loaded in the first sentence, and every subsequent sentence conveys operational detail (match tiers, ordering, edge cases). It is dense and prose-heavy -- the return-shape and error details could be split into shorter, scannable clauses -- but little is genuinely redundant.

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 no output schema, the description carries the burden of explaining return structure, and it does: the `peers` list, `matchLevel` sic4/sic2 tiering, `filings12m`, and the `basis` enumeration including 'none'. Combined with error behavior, caching, and plan gating, an agent has everything needed to call and interpret the result.

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 baseline is 3. The description still adds real meaning: the ticker ambiguity rule ('when several companies hold the ticker, the one GET /v1/companies/{ticker} returns is used') and the limit clamp behavior give the agent information the schema alone does not convey about how the parameter is resolved.

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 names the specific resource (peer companies), the scoping criterion (same SIC industry) and the ranking (recent Form 4 activity), then clarifies it returns 'other tracked companies in the same industry as the given ticker'. This is unambiguous and distinguishable from siblings like list_companies or get_company_insiders without reading the schema.

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?

The description states the intended use case explicitly -- '"similar companies" links' -- which tells an agent when this tool is the right choice. It does not name an alternative tool or state when not to use it (e.g. versus list_companies for broad screening), so it falls short of full routing guidance.

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.