Skip to main content
Glama

SEC Financial Facts (XBRL)

finance.edgar.company_facts
Read-onlyIdempotent

Retrieve XBRL financial facts for US public companies — revenue, net income, assets, and more — from the last five reporting periods using SEC EDGAR filings.

Instructions

XBRL financial facts for a US public company — revenue, net income, assets, liabilities, equity, EPS, cash, operating income. Returns last 5 reporting periods per metric with form type and date. Structured data from 10-K/10-Q filings (SEC EDGAR)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cikYesSEC CIK number (e.g. "320193" for Apple). Returns XBRL financial facts: revenue, net income, assets, liabilities

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
Behavior4/5

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

Annotations indicate read-only, idempotent, and open-world behavior. Description adds that it returns 'last 5 reporting periods per metric with form type and date', which is useful behavioral context beyond what annotations alone provide.

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

Conciseness5/5

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

Two concise sentences with no unnecessary words. Front-loaded with key information: what it does, what metrics, how many periods, and data source.

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?

Given a single required parameter, availability of output schema, and clear description of output structure (metrics, periods, form type, date), the description is fully complete for an agent to select and invoke the tool correctly.

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?

Parameter schema has 100% coverage with description 'SEC CIK number (e.g. '320193' for Apple)'. Description adds example but no further semantic meaning. According to rubric, high schema coverage gives baseline 3, which is appropriate.

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?

Description clearly specifies verb (returns), resource (XBRL financial facts), and target (US public company). Lists specific metrics (revenue, net income, assets, liabilities, equity, EPS, cash, operating income) and differentiates from sibling tools like finance.edgar.filings and finance.edgar.company_search by focusing on structured XBRL data.

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?

Description implies usage context for obtaining financial metrics from 10-K/10-Q filings, but does not explicitly state when to prefer this tool over alternatives like finance.edgar.xbrl_concept or finance.edgar.xbrl_frames. Still, the scope is clear and aligned with typical agent needs.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/whiteknightonhorse/APIbase'

If you have feedback or need assistance with the MCP directory API, please join our Discord server