# Folio Full Agent Reference > Canonical legal-entity data engine by Ordalie. Local-first official registers served via Streamable HTTP MCP, Markdown dossiers, and REST API. ## Endpoints - Remote MCP (Streamable HTTP, zero-auth): https://folio.ordalie.com/mcp - MCP Server Card: https://folio.ordalie.com/.well-known/mcp.json - Markdown dossier: https://folio.ordalie.com/company/{CC}/{ID}-{slug}.md (ID-only variants 301 redirect to canonical) - Markdown negotiation: GET https://folio.ordalie.com/company/{CC}/{ID}-{slug} with Accept: text/markdown - OpenAPI 3.1: https://folio.ordalie.com/openapi.json - Live source health: https://folio.ordalie.com/status ## MCP Tools (5-Tool Surface) ### 1. search_entities Search companies, persons, or properties across official registers. - Parameters: - q (string, optional when FR filters are set): Search query (2-200 chars), company name, person name, or identifier. - country_code (string, optional, default "ALL" for company / "FR" for person or property): ISO-2 country code or "ALL". - kind (string, optional, default "company"): "company", "person", or "property". - status (string, optional): e.g. "active", "inactive", "ceased". - activity_code (string, optional): NAF/APE or SIC code. - department (string, optional): French department code (e.g. "75"). - postal_code (string, optional): Postal code prefix. - turnover_min (string, optional): Minimum annual turnover in EUR. - turnover_max (string, optional): Maximum annual turnover in EUR. - per_page (integer, optional, default 5, max 10): Results per page. - Example: {"q": "LVMH", "country_code": "FR", "per_page": 5} ### 2. get_entity Retrieve a full entity dossier (identity, financials, officers, alerts, real estate, official sources). - Parameters: - country_code (string, required): ISO-2 country code (e.g. "FR", "GB", "US"). - id (string, required): National identifier (SIREN, Companies House number, SEC CIK, etc.). - kind (string, optional, default "company"): "company", "person", or "property". - records (array of strings, optional): Record types to include (defaults to core identity, governance, accounts, notices, alerts, and property records). - records_limit (integer, optional, default 10, max 25 anonymous / 100 authenticated): Max records per type. - format (string, optional, default "markdown"): "markdown" (compact 2-4 KB) or "json". - Example: {"country_code": "FR", "id": "775670417", "format": "markdown"} ### 3. get_entity_graph Explore ownership, directorship, parent/subsidiary, and control relationships. - Parameters: - country_code (string, optional, default "FR"): ISO-2 country code. - id (string, required): National identifier. - kind (string, optional, default "company"): "company" or "person". - depth (integer, optional, default 1, max 2 with API key): Traversal depth. - limit (integer, optional, default 15, max 30): Max connected nodes/edges. - Example: {"country_code": "FR", "id": "775670417", "depth": 1, "limit": 15} ### 4. screen_sanctions Screen an entity or person name against 6 official sanctions regimes (FR DG Tresor, EU, UN, US OFAC SDN, UK OFSI, SECO). - Parameters: - q (string, required): Name or alias to screen. - per_page (integer, optional, default 10, max 20): Max matching listings. - Example: {"q": "Sberbank", "per_page": 10} ### 5. get_sector_benchmarks Fetch NAF/APE sector financial benchmarks (turnover, EBITDA, net margin, equity ratios by year and revenue band). - Parameters: - activity_code (string, required): NAF/APE activity code (e.g. "6201Z"). - country_code (string, optional, default "FR"): ISO-2 country code. - year (integer, optional): Closing year. - revenue_band (string, optional): Revenue cohort band. - Example: {"activity_code": "6201Z", "country_code": "FR"} ## Country National ID Formats - FR (France): 9-digit SIREN (e.g. 775670417). 14-digit SIRET is normalized to SIREN for company lookups. - GB (United Kingdom): 8-character Companies House number, zero-padded (e.g. 00000006, SC123456). - US (United States): SEC EDGAR CIK, up to 10 digits (e.g. 0000320193). - DE (Germany): Handelsregister identifier (court + register + number). - SG (Singapore): ACRA UEN (9-10 alphanumeric characters). - CA (Canada): Corporations Canada corporation number. - Global (GLEIF): 20-character ISO 17442 LEI (supported for cross-border resolution across DE, CH, BE, ES, LU, NL, NO, IT, DK, FI, IE, CZ, PL, SK, RO, SE). ## Record Types - accounts: Annual financial statements (turnover, EBITDA, operating income, net income, equity). - appointment: Directors, officers, legal representatives, and auditors. - control: Beneficial owners (UBO) and control percentages. - parent: Parent companies and holding entities. - subsidiary: Controlled subsidiaries. - insolvency: Insolvency, receivership, and liquidation proceedings. - listing: Sanctions and regulatory watchlists. - ownership: Real-estate parcel ownership and property holdings. - notice: Official gazette publications (BODACC, BALO). - label: Official certifications and quality labels (ESS, RGE, Qualiopi, etc.). - grant: Public grants and subsidies. - indicator: Risk, financial, and compliance indicators. ## Sane Defaults & Guardrails - Null and unknown fields are omitted from JSON responses to minimize token usage. - Use records_limit (default 10) to cap per-type record arrays. - Anonymous calls to /mcp and /company/{CC}/{ID}.md run strictly against local disk caches (zero outbound upstream calls). - Officer birth dates are stripped from public Markdown dossiers for GDPR/CNIL compliance. - Pass Authorization: Bearer on /mcp or api-key: on /v1/* for live register refresh and higher quotas.