get_company_facts

Pack: sec · Endpoint: https://gateway.pipeworx.io/sec/mcp

Get XBRL financial facts for a company using its CIK number. Returns structured financial data including revenue, net income, total assets, and other reported metrics over time.

Parameters

NameTypeRequiredDescription
cikstringyesCompany CIK number (digits only, e.g., “320193” for Apple)

Example call

Arguments

{
  "cik": "320193"
}

curl

curl -X POST https://gateway.pipeworx.io/sec/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_company_facts","arguments":{"cik":"320193"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_company_facts', {
  "cik": "320193"
});

Response shape

Always returns: cik, company_name, key_financials, available_concepts

FieldTypeDescription
cikstringCompany CIK number
company_namestringOfficial company name
key_financialsobjectKey financial metrics with most recent annual values
available_conceptsnumberTotal number of US-GAAP financial concepts available for this company
Full JSON Schema
{
  "type": "object",
  "properties": {
    "cik": {
      "type": "string",
      "description": "Company CIK number"
    },
    "company_name": {
      "type": "string",
      "description": "Official company name"
    },
    "key_financials": {
      "type": "object",
      "description": "Key financial metrics with most recent annual values",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "description": "Human-readable label for the financial metric"
          },
          "most_recent_annual": {
            "oneOf": [
              {
                "type": "null",
                "description": "No annual data found for this metric"
              },
              {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "number",
                    "description": "Fiscal year of the most recent annual filing"
                  },
                  "value": {
                    "type": "number",
                    "description": "The financial metric value"
                  },
                  "filed": {
                    "type": "string",
                    "description": "Date the filing was submitted (YYYY-MM-DD)"
                  }
                },
                "required": [
                  "year",
                  "value",
                  "filed"
                ]
              }
            ]
          }
        },
        "required": [
          "label",
          "most_recent_annual"
        ]
      }
    },
    "available_concepts": {
      "type": "number",
      "description": "Total number of US-GAAP financial concepts available for this company"
    }
  },
  "required": [
    "cik",
    "company_name",
    "key_financials",
    "available_concepts"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "sec": {
      "url": "https://gateway.pipeworx.io/sec/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026