Skip to main content
Glama

STRATA & TrashPan B2A Clean Data MCP Server

query_corporate_registry

Read-onlyIdempotent

Read-only, idempotent query of 5,858,407 JP firms in 47 prefectures, 44,293 domains, invoices, grades, LEIs, and OFAC (API key or x402; 24h). Pass mode with corporateNumber, domain, or lei (default mode="lookup", limit=50, offset=0); returns entities ordered by match rank. Note: For recalls, use query_regulatory_recalls instead.

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": "query_corporate_registry"
  }
}

Input Schema

NameRequiredDescriptionDefault
leiNo20-character ISO 17442 Legal Entity Identifier (e.g. "5493006W3QUS5LMH6R84" for Toyota Motor Corporation).
leisNoBatch of 1 to 1,000 20-character ISO 17442 LEI codes.
modeNoQuery mode: "lookup" / "batch" for O(1) 13-digit corporate number or domain batch lookup (1 to 1,000), "screen" / "filter" for multi-condition corporate substance & co-located address density filtering across all 47 prefectures, "gleif_lei" for ISO 17442 LEI / English corporate name / BIC / LAPSED lookup across 4,357 Japanese LEI corporations, "ofac_sanctions" for Zero-PII U.S. Treasury OFAC organizational sanctions screening (26,364 organizational records; Individual scope out_of_scope), "gov_qualification" for Digital Agency Unified Government Qualification (全省庁統一資格, Government of Japan Standard Terms of Use v2.0) A–D grade & company scale lookup across 62,630 indexed corporations in all 47 prefectures (partial catalog: 0 unresolved >500-hit slices, 13 pagination pages truncated by non-JCN rows — unindexed JCNs return not_observed), or "edinet_gc_amendments" for rolling-75d FSA EDINET API v2 Going Concern notes & amended securities report XBRL numeric diffs (3,061 filings).lookup
docIdNoIn "edinet_gc_amendments" mode, 8-character EDINET filing document ID (e.g. "S100ABCD").
limitNoMaximum corporate/sanctions records to return per call (1 to 1,000, default 50).
domainNoFilter or reverse-lookup by normalized official corporate website host (e.g. "andque.com", "smarthr.jp") across 107,126 directory corporations / 44,227 unique corporate domains (4,551 live-measured B2A Readiness Tier & SPF/DMARC corporations).
offsetNoZero-based pagination offset (0..10000, default 0). Combine with limit to page through large result sets deterministically.
domainsNoBatch of 1 to 1,000 corporate domains for counterparty batch verification.
keywordNoOptional substring filter across corporate name, municipality, or domain.
secCodeNoIn "edinet_gc_amendments" mode, 4- or 5-character Japanese securities code (e.g. "7203" or "72030").
edinetCodeNoIn "edinet_gc_amendments" mode, 6-character FSA EDINET submitter code (e.g. "E02144").
entityNameNoOrganization or corporate legal name for Zero-PII OFAC SDN Entity sanctions screening.
hasBicOnlyNoIn "gleif_lei" mode, when true returns only Japanese corporations with registered SWIFT BIC codes.
lapsedOnlyNoIn "gleif_lei" mode, when true returns only Japanese corporations whose LEI annual renewal status is LAPSED.
prefectureNoPrefecture name or code (e.g. "東京都", "大阪府", "13").
assetSymbolNoIn "ofac_sanctions" catalog browse mode (when walletAddress/entityName are omitted), optional digital currency ticker filter across 600 organization-linked SDN wallets (e.g. "TRX", "ETH", "XBT", "USDT", "ARB", "BCH", "XMR", "SOL").
entityNamesNoBatch of 1 to 1,000 organization names for Zero-PII OFAC SDN Entity sanctions screening.
companyScaleNoIn "gov_qualification" mode, statutory company scale ("large" 大企業, "sme" 中小企業, "micro" 小規模企業, or "other" その他).
walletAddressNoCrypto wallet address (EVM/Base/ETH 0x..., BTC, SOL, TRX, etc.) for OFAC SDN Digital Currency Address sanctions screening.
amendmentsOnlyNoIn "edinet_gc_amendments" mode, when true returns only amended securities/quarterly/semi-annual reports (訂正報告書) with XBRL before/after element diff metadata.
prefectureCodeNo2-digit JIS prefecture code ("01" to "47", e.g. "13" for Tokyo, "27" for Osaka).
corporateNumberNo13-digit Japanese Corporate Number with valid NTA Mod-9 check digit (e.g. "6010001269339", "3120001079845") across 5,858,407 registered corporate entities (2,475,488 qualified invoice issuers).
requireGleifLeiNoIn "screen" / "filter" mode, when true requires the corporation to hold an active or registered GLEIF LEI.
walletAddressesNoBatch of 1 to 1,000 crypto wallet addresses for pre-settlement OFAC sanctions screening.
corporateNumbersNoBatch of 1 to 1,000 13-digit Japanese Corporate Numbers.
excludeLapsedLeiNoIn "screen" / "filter" mode, when true excludes corporations whose GLEIF LEI status is LAPSED.
goingConcernOnlyNoIn "edinet_gc_amendments" mode, when true returns only corporate filings with statutory Going Concern notes (継続企業の前提に関する注記), Going Concern material events (重要事象等), or auditor Going Concern emphasis.
maxAddressDensityNoMaximum number of active corporations registered at the same normalized building address (1 to 100,000, e.g. 49 or 50 to exclude high-density co-located addresses).
includeWeakAliasesNoIn "ofac_sanctions" mode, controls whether U.S. Treasury OFAC <category>weak</category> organizational AKAs (2,160 aliases) are included. Defaults to false (matches primary names + 11,549 strong AKAs only). When true, weak AKAs are also matched and tagged with matchedVia="weak_aka_alias" and akaStrength="weak".
maxNameChangeCountNoMaximum historical corporate name change count (0 to 1,000).
maxRelocationCountNoMaximum historical head-office relocation count (0 to 1,000).
qualificationGradeNoIn "gov_qualification" mode, exact statutory procurement qualification grade ("A", "B", "C", or "D").
excludeGoingConcernNoIn "screen" / "filter" mode, when true excludes corporations with active EDINET Going Concern notes or Going Concern material events.
minQualificationGradeNoMinimum statutory procurement qualification grade ("A" highest through "D") in "gov_qualification" or "screen" mode.
strictExcludeUnobservedNoIn "screen" / "filter" mode, controls unknown/unobserved handling for exclusion filters (excludeGoingConcern, excludeRecentEdinetAmendments, excludeLapsedLei). When false (default), unobserved corporations (e.g. not_observed_in_window for 75d EDINET or no registered LEI) are retained with explicit unobservedOrExcludedScopes[] tags (never certified clean). When true, unobserved corporations are ALSO excluded.
excludeHighDensity50PlusNoWhen true, excludes corporations registered at addresses with 50 or more co-located active corporations.
excludeParrySpamObservedNoWhen true, excludes entities with observed PARRY unsolicited outbound domain/telephone matches, published administrative sanction records, or revoked/expired invoice registration.
requireInvoiceRegisteredNoWhen true, requires active NTA Qualified Invoice Issuer registration without revocation or expiration.
requireRealBusinessSignalNoWhen true, requires at least one verified public activity signal (government procurement award, subsidy approval, IP/trademark registration, permit certification, financial disclosure, or official corporate domain).
excludeRecentEdinetAmendmentsNoIn "screen" / "filter" mode, when true excludes corporations that filed recent amended securities reports on EDINET.

Output Schema

NameRequiredDescriptionDefault
itemsYesZero-PII Japanese corporate registry (5,858,407 R2-sharded corporations, 44,293 domains, 62,630 Unified Qualification corps, 4,357 GLEIF LEIs, 3,061 EDINET GC/amendments, 14,053 Kanpo notices, 26,364 OFAC organizational records) ordered by match rank.
statsYesExecution telemetry including itemCount, durationMs, and upstream breakdown.
offsetYesZero-based pagination offset applied to the matched record slice.
successYesTrue when the read-only query completed without upstream or validation failure.
streamIdYesUnderlying B2A data stream identifier that fulfilled the query.
toolNameYesExecuted MCP tool name for deterministic audit correlation.
sealStatusYesTAPP Sigstore Rekor cryptographic Merkle seal status of the dataset.
generated_atYesISO-8601 UTC timestamp when this response payload was generated.
sha256DigestYesDeterministic 64-character hex SHA-256 provenance digest of the returned items.
partialResultNoTrue only if a live upstream sub-source returned partial coverage.
returnedCountYesNumber of structured records returned in items for this page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / corporateNumber / description
      Previous value: -"13-digit Japanese Corporate Number with valid NTA Mod-9 check digit (e.g. \"6010001269339\", \"3120001079845\") across 5,858,407 registered corporations in all 10,000 R2 shards (generation gen_37500fcdaacecf05)."New value: +"13-digit Japanese Corporate Number with valid NTA Mod-9 check digit (e.g. \"6010001269339\", \"3120001079845\") across 5,858,407 registered corporate entities (2,475,488 qualified invoice issuers)."
    • changedInput schema / properties / domain / description
      Previous value: -"Filter or reverse-lookup by normalized official corporate website host (e.g. \"andque.com\", \"smarthr.jp\") across 107,126 D1 directory corporations / 44,227 unique corporate domains (4,551 live-measured B2A Readiness Tier & SPF/DMARC corporations)."New value: +"Filter or reverse-lookup by normalized official corporate website host (e.g. \"andque.com\", \"smarthr.jp\") across 107,126 directory corporations / 44,227 unique corporate domains (4,551 live-measured B2A Readiness Tier & SPF/DMARC corporations)."
  2. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the description's "read-only, idempotent" is redundant. It does add useful operational context beyond annotations: API-key or x402 access, a 24-hour note, dataset counts, and that results are ordered by match rank.

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?

Only three sentences for a very large tool, with the core lookup usage and the recall exclusion front-loaded. The exact dataset counts and repeated safety hints add some bulk, but the structure remains focused and usable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is a complex 40-parameter, eight-mode query surface with an output schema and fully described parameters. The description covers high-level purpose, authentication, defaults, and one sibling exclusion, but it omits mode-selection guidance and mode-specific prerequisites, leaving the schema to carry most of the operational detail.

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?

Schema description coverage is 100%, so all 40 parameters are already richly documented. The description only restates a few defaults (mode="lookup", limit=50, offset=0) and the primary lookup identifiers; it adds little meaning for the many batch, screening, OFAC, and EDINET parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ("query") and resource ("JP firms" / corporate registry), with dataset scale and included data types, and distinguishes itself from the recalls sibling. However, it is an omnibus tool spanning eight modes, and the opening sentence bundles domains, invoices, grades, LEIs, and OFAC without clearly defining each mode's scope.

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

Usage Guidelines3/5

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

Explicitly routes recall queries to query_regulatory_recalls and gives a default lookup recipe with corporateNumber, domain, or lei. It does not explain when to choose batch, screen, filter, gleif_lei, ofac_sanctions, gov_qualification, or edinet_gc_amendments, so mode selection is largely left to the schema.

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.

Resources