Reference
MCP Connector Reference
The MCP tool catalog, routing guidance, OAuth flow and JSON-RPC examples for AI clients connecting directly — the layer the REST API docs can't describe.
Reviewed against the repository's MCP dispatcher, input schemas, widget code and OAuth implementation. For first-time setup, see Quick start.
This document describes the public MCP endpoint, tool catalog, routing guidance,
OAuth setup, and JSON-RPC examples for assistant integrations. The same MCP
transport, scenario examples and complete advertised tool input schemas are
available inline in /docs and /swagger; both read /openapi.json.
REST API clients should normally use the /v1 REST endpoints. MCP clients
should use POST /mcp and the tool catalog below.
Classification allowance and prepaid credits
EBTI goods classification uses its own organization allowance, separate from the daily MCP meter, case credits and ordinary AI chat. One credit covers one product and up to three successful searches in one classification, including the first; empty/error searches do not consume that credit. Reopen stored evidence for follow-up rather than starting another search. Optional AI explanations have a separate bounded allowance; precedents do not bind the current goods.
Included volume: Free 5 for the entire Free term; Starter 25/month, Team 100, Professional 300, Business 1,000; Enterprise contractual. Paid allowances renew by calendar month UTC. Active paid plans/contracts can buy and use packs of 100 classifications for €5 excluding VAT (3 packs: 300 for €15). Purchased credits have no expiry and survive cancellation and month/plan changes; spending a retained balance requires a resumed active paid plan. Free cannot buy or spend prepaid credits. Existing case/API expiry is unchanged. Evidence follows plan retention, independently of credit validity.
Endpoint
| Endpoint setting | Value |
|---|---|
| Production MCP URL | https://api.compliance-mcp.com/mcp |
| Local development URL | http://127.0.0.1:8001/mcp |
| Protocol | MCP over JSON-RPC 2.0 |
| Main transport | POST /mcp |
| Streaming transport | GET /mcp with Accept: text/event-stream for SSE/resource notifications |
| Auth | Authorization: Bearer <OAuth-access-token> or a direct tk_... organization key |
| Required key capability | mcp_access |
The connector is self-describing. Clients should call initialize, then
tools/list, and can use resources/list and prompts/list when the host supports
them. The server currently returns protocol version 2025-03-26. Retain the
Mcp-Session-Id returned by initialization and send it on subsequent requests,
including the SSE connection, so widget follow-up stays associated with the
session. Send Content-Type: application/json and Accept: application/json
for POST requests; SSE requires Accept: text/event-stream. Clients may send
MCP-Protocol-Version: 2025-03-26 on subsequent requests. The implemented public
transports are POST /mcp and GET /mcp; there is no DELETE session endpoint.
JSON-RPC Methods
Each POST body is one JSON-RPC object. Batch arrays are not supported. id may
be a string or integer; send a unique id for calls you need to correlate. The
server accepts the standard notifications/initialized handshake without an
id and currently acknowledges it with id: null and an empty result.
| Method | params | Result / purpose |
|---|---|---|
initialize | protocolVersion, capabilities, clientInfo | Server protocol version, capabilities and server/version metadata; response header contains Mcp-Session-Id. |
tools/list | {} | Advertised tools, descriptions, annotations and full inputSchema per tool. |
tools/call | name, arguments | Execute one tool; inspect result.isError and the returned evidence. |
resources/list | {} | Available metadata and versioned widget resources. |
resources/read | uri | Resource contents, including its MIME type and text. |
resources/subscribe | uri | Subscribe the current session to one of the four metadata resources below. |
resources/unsubscribe | uri | Stop a metadata resource subscription. |
prompts/list | {} | Prompt templates and their argument requirements. |
prompts/get | name, optional arguments | Render a prompt template; this does not execute its suggested tool. |
The dispatcher also acknowledges incoming notifications/tools/list_changed,
notifications/resources/list_changed, notifications/resources/updated and
notifications/prompts/list_changed. Unknown methods, including ping, return
JSON-RPC error -32601. A POST result is JSON; the separate GET connection
carries server-to-client SSE notifications.
search and fetch are compatibility tools for ChatGPT-style connector
discovery and deep-research mode. They are useful for finding connector
capabilities and CN/TARIC reference text, but they are not the operational
screening path. Business checks should use the domain tools below.
Tool Catalog
The tables cover all 35 tools currently advertised by tools/list. They show
key inputs, not the full schemas; use the returned inputSchema for every
accepted field, default and limit. Short form aliases remain callable but do
not add catalog entries. refresh_chemical_substances is an admin operation,
not an advertised public tool.
Discovery And Metadata
| MCP tool name | Use when | Key inputs |
|---|---|---|
search | ChatGPT-style discovery over TARIC/CN reference data and connector capabilities. Call fetch with the returned result id for full text. | query |
fetch | Retrieve the full text payload for a result id returned by search. | id |
list_sanctions_sources | Inspect the official source catalog and latest refresh metadata. | category, include_disabled |
get_connector_metadata | Inspect connector versions, resources, prompts, source catalog, changelog and notification/fallback behavior. | include_tools, include_sources, include_prompts, include_changelog |
Goods, Customs And Chemicals
| MCP tool name | Use when | Key inputs |
|---|---|---|
get_compliance_report | Run the full goods compliance check with TARIC, RU/BY goods sanctions, goods-risk and export-control evidence, and return an HTML evidence report. Optional case persistence saves durable audit evidence. | taric_code, country, measure_type, additional_code, date, language, report_language, product_texts, persist_case, customs declaration parameters |
check_trade_compliance | Return full TARIC hierarchy, measures, duties, legal references, RU/BY goods sanctions and the goods export-control layers (goods_risk) in raw JSON. | taric_code, country, measure_type, additional_code, date, language, product_texts |
check_sanctions | Run a lightweight goods-sanctions-only check by CN/TARIC code against the RU/BY goods regimes. country is optional: with a destination the result is that destination's verdict, without one every regime is screened and the response reports the code-level flag (screening_scope, code_flagged). | taric_code, country, date, language |
get_overview | Return a compact card with description, hierarchy, duty rate, sanctions status and key legal references. | taric_code, country, date, language |
get_duties | Return duty rates only, stripped of non-duty measures. | taric_code, country, date, language |
get_measures | Return full TARIC measures without sanctions. | taric_code, country, measure_type, additional_code, date, language |
get_cn_description | Return CN/TARIC hierarchy and description only. | taric_code, language |
search_binding_tariff_information | Choose, check or compare candidate HS/CN/TARIC codes from a goods description using EU customs decisions. Returns decision references, codes, goods descriptions, justification excerpts and status. A code is optional; results are classification precedents for review. The form sets persist_run=true to retain evidence for chat follow-up. | query, optional materials, intended_use, operating_principle, completeness, technical_parameters, cn_code, include_expired, include_revoked, limit, persist_run, classification_id, request_id |
search_cn_codes | Look up CN nomenclature headings and descriptions by keyword or numeric prefix; use to verify nomenclature after finding classification precedents. | query, language, limit |
search_chemical_substances | Search the ECICS chemical reference cache by name, CAS, EC, CUS, InChIKey or CN code prefix. Public read-only lookup; ECICS refresh/enrichment is handled by scheduled/admin source-sync runners, not by public MCP clients. | query, language, limit |
search_export_control_candidates | Search export-control candidate wording by CAS RN, CN/TARIC, control code or product text. | query, cas_rn, cn_code, source_code, as_of_date, limit |
get_goods_screening_run | Re-read a recent /goods widget run's full evidence without rerunning get_compliance_report. | optional run_id, include_report_html |
get_ebti_search_run | Read the stored results and submitted product details from a recent customs-classification form search, without repeating the search. Full saved-run JSON is returned in both structuredContent and the model-visible text after its header. With no arguments, retrieves the latest active run for the current MCP session/tenant. | optional run_id |
Goods data uses language=EN or LV. HTML report localization is separate:
report_language accepts en, lv, et, lt, fr or de for the report,
entity-screening and payment-screening tools. Goods code checks do not require
customs declaration details, including after 1 November 2026. validate_declaration
defaults to false; only an explicit true enables the separate product-identifier
document-code checklist. Prefilled declaration fields never enable it automatically.
Set direction=import or export relative to the EU when known. The checklist does
not apply to EU exports and is separate from TARIC measures and sanctions findings.
When requested, declaration inputs are declaration_type, distance_sale, intrinsic_value,
intrinsic_value_currency, additional_procedure_code and
product_identifier_documents. The result is declaration_readiness; it does not
validate actual identifiers, the full declaration, or customs acceptance/release.
Missing checklist data does not change the goods screening verdict. A user who
explicitly requests the checklist must complete it before saving that combined MCP
run as a case; incomplete optional checks do not consume request or case credits.
The /goods widget keeps optional inputs under Additional checks and filters.
Supplied optional values reopen their sections. A completed result appears above
the form with report actions and Edit parameters; edited values mark the old
result as a previous check until the user explicitly runs again. The compact
report summary carries the same scoped decision and counts as the full report,
without duplicating its raw evidence. An optional chat briefing cannot keep a
completed report busy or cause another screening run.
Price-sensitive goods checks also accept declared_price, price_currency,
price_basis, price_unit, declared_quantity, quantity_unit, price_type
and item_basis. Supply the commercial context when relevant and inspect any
unresolved price/quantity conditions; a code match alone cannot resolve them.
Entity, Vessel And PEP Screening
| MCP tool name | Use when | Key inputs |
|---|---|---|
screen_entities | Screen a person, company, vessel, bank, aircraft, alias, identifier or address for sanctions exposure. Can render a report, save a temporary run, or persist a compliance case. | query, address, country, date_of_birth, registration_number, threshold, entity_type, limit, as_of_date, include_historical_closed, list_name, list_names, excluded_list_names, render_report, report_language, persist_run, persist_case |
screen_entity_vop | Classify the supplied name against sanctions candidates using VoP-style close-match codes MTCH, CMTC, NMTC, NOAP. This does not verify bank-account ownership or authorize a payment. | query, country, date_of_birth, registration_number, threshold, entity_type, limit, as_of_date, list_name |
screen_pep | Screen a person against official UK, EU/national and international-organisation PEP rosters plus the non-official enhanced reference layer. A hit is an EDD signal, not a sanctions block. Every negative includes a source receipt and is INCOMPLETE unless all required applicable sources are fresh; coverage.function_scope lists the public functions no fresh source covers, or says this cannot be assessed without a country. Matching also aligns name parts across scripts and spellings at review strength. | query, country, date_of_birth, as_of_date, threshold, limit |
lookup_ofac_asset_related_parties | Read OFAC SDN enhanced owner/operator/related-party metadata for vessels and aircraft. Returned parties must still be screened with screen_entities. | item_type, query, registration_number, limit |
get_entity_screening_run | Re-read a recent /entity widget run's full evidence without rerunning screen_entities. | optional run_id, include_report_html |
KYB, Business Registry
| MCP tool name | Use when | Key inputs |
|---|---|---|
search_business_registry | Find a company in the Latvian, Estonian, Lithuanian, Polish, Kazakhstan, UK, French or Hong Kong company register. Hong Kong is searched only with country=HK. | query, country, limit |
get_business_registry_profile | Full company card plus available related-party records for an already-resolved registry company. | source_ref, registry_code |
screen_business_entity_with_related_parties | Resolve a registry company and screen the company plus selected related parties available from its official source. Returns an aggregate review decision and coverage gaps. | query or registry_code, country or source_ref, include_officers, include_beneficial_owners, include_shareholders, screen_company, threshold, as_of_date |
Registry country values are LV, EE, LT, PL, KZ, GB, FR and HK
(UK is accepted as an alias for GB). Related-party coverage varies by
register: a company-identity result does not establish complete ownership or
UBO coverage. Review coverage, coverage_gaps and the aggregate decision;
missing ownership evidence can produce an incomplete result even without a
sanctions match. Registry information alone is reference evidence.
ISO 20022 Payments
| MCP tool name | Use when | Key inputs |
|---|---|---|
validate_iso20022_payment | Parse supported pain.001/pacs.008 XML and return structural validation status plus the payment chain. No sanctions screening. | xml |
screen_iso20022_payment | Run one-shot ISO 20022 payment screening. Omitting xml retrieves the latest active run for the current MCP session. | xml, threshold, limit, list_name, as_of_date, include_historical_closed |
create_iso20022_payment_case | Screen and persist an audit-ready PaymentCase with message, participant and source evidence. | xml, threshold, limit, list_name, as_of_date, include_historical_closed |
get_payment_case_evidence | Load stored PaymentCase evidence. | case_id |
get_payment_screening_run | Load transient one-shot payment screening evidence without creating a PaymentCase. Safe to call with no arguments for the latest active run. | optional run_id, include_report_html, include_raw_xml |
resolve_payment_bics_agentic | Prepare expert/debug web-search tasks for unresolved payment BIC enrichment. Suggestions are unverified and cannot clear a payment alone. | xml, force_agentic_tasks, include_resolved, max_bics |
Interactive Widgets
| MCP tool name | Use when | Key inputs |
|---|---|---|
open_goods_screening_form / goods | Open the report-request form: search/select a CN/TARIC code, set report parameters, optionally save a compliance case, and open the HTML report widget. The separate declaration-data checkbox is off by default and reveals its fields only when enabled. | optional taric_code, product, country, direction, measure_type, additional_code, date, language, persist_case, validate_declaration, declaration_type, distance_sale, intrinsic_value, intrinsic_value_currency, additional_procedure_code, product_identifier_documents |
open_ebti_search_form | Open the same customs-classification form in ChatGPT and Claude for a goods description, optional technical details and classification-precedent search. The advertised /ebti prompt opens this form. ebti and compatibility alias ebty are accepted as hidden dispatch aliases without separate tools/list entries. | optional query, materials, intended_use, operating_principle, completeness, technical_parameters, cn_code, include_expired, include_revoked, limit, language (EN, LV, FR, ET, LT, RU, DE, PL, ES, NL, UA; UK alias) |
open_entity_screening_form / entity | Open the input form for person/company/vessel/bank/aircraft screening. It submits directly, saves a temporary run, and optionally creates a compliance case; the assistant explains the stored result in chat. | optional item_type, query, address, country, date_of_birth, registration_number, entity_type, list_name, threshold, as_of_date, include_historical_closed, persist_case |
open_payment_screening_form / payment | Open the ISO 20022 payment widget for one-shot screening or persisted PaymentCase creation. | optional xml, threshold, as_of_date, include_historical_closed, persist_case |
The goods and entity openers are input forms: output_mode is chat, and
render_results must be false. Goods submission opens the report widget;
entity submission hands the saved result to the assistant. The goods opener
does not accept product_texts; direct get_compliance_report and
check_trade_compliance calls accept it as a list of product-text strings.
Follow-up uses the matching get_goods_screening_run,
get_entity_screening_run, get_payment_screening_run or get_ebti_search_run.
Pass the returned run id when available. With no id, the tools look up the
latest active evidence for the current session/tenant; EBTI requires an exact
session match when a session id is supplied. Temporary runs have a default
24-hour lifetime and are separate from durable cases. A host may omit
widget-initiated output from the assistant's context: retrieve the run before
asking the user to submit again. Only repeat a check when its inputs change or
the user requests another check.
Routing Guidance
- Choose, check or compare a classification code from a goods description, with or without a suggested code: call
search_binding_tariff_informationfirst. Pass the description inquery; usecn_codeonly when the user wants to restrict the search to that code prefix. - A request to open a customs-code selection form, find-similar-goods form or
/ebti(compatibility alias/ebty): callopen_ebti_search_form. Ordinary descriptions of goods continue to use direct search. - Requested follow-up after that form searches, including the explicit explanation button: call
get_ebti_search_runwith the returned run id, or no arguments if the id is not visible. Search alone does not send a chat message. Read the stored evidence before asking the user to resubmit or copy results; do not repeat the search unless the user changes its parameters or requests a new search. - CN nomenclature wording, heading or numeric-prefix lookup: call
search_cn_codes. - Selected CN/TARIC code plus country for duties, measures or trade compliance: call
get_compliance_report. - Quick duty rate: call
get_overvieworget_duties. - RU/BY goods sanctions only: call
check_sanctions. - Person, company, vessel, aircraft, bank, address or identifier screening:
call
screen_entities. - Vessel/aircraft owner or operator relationship lookup: call
lookup_ofac_asset_related_parties, then screen returned party names withscreen_entities. - Company registry lookup / UBO / related parties: call
search_business_registry, thenscreen_business_entity_with_related_partiesfor the combined registry-plus-sanctions decision. - Payment / PSP / EPC VoP close-match decision: call
screen_entity_vop. - PEP / EDD risk on a person: call
screen_pep, and run it alongsidescreen_entitieswhen sanctions exposure also matters. - ISO 20022 XML parse only: call
validate_iso20022_payment. - ISO 20022 one-shot preview: call
screen_iso20022_payment. - ISO 20022 persisted audit case: call
create_iso20022_payment_case. - Stored payment case follow-up: call
get_payment_case_evidence. - One-shot payment follow-up: call
get_payment_screening_run. If the host has not exposed that tool yet, callscreen_iso20022_paymentwith noxml. - Source/freshness/audit coverage: call
list_sanctions_sources. - Connector version/capabilities/change question: call
get_connector_metadata. - Connector/deep-research discovery only: call
search, thenfetchwith the returned result id. Do not usesearch/fetchas a replacement for screening or compliance decisions.
Ordinary questions such as "Which code fits this hydraulic pump?" or "Does this code fit my product?" start the classification-precedent workflow. Use the user's description without requiring a known code or the name of a tool or database. Compare the returned goods details and justification; a decision binds only its holder and does not establish the classification of the user's goods.
Customs Classification Form In ChatGPT And Claude
The /ebti prompt is titled Customs Classification Form. Requests such as
“открой форму подбора кода” or “форма поиска похожих товаров” open the same form
through open_ebti_search_form in either host. All opening arguments are optional;
the goods description is collected as query. Additional fields capture
materials, intended use, operating principle, completeness and technical
parameters. The interface supports all 11 platform languages: English, Latvian, French,
Estonian, Lithuanian, Russian, German, Polish, Spanish, Dutch and Ukrainian. It defaults to
English when language is omitted. Explicit interface-language requests or
prompt/tool arguments take priority; otherwise the assistant may choose
EN/LV/FR/ET/LT/RU/DE/PL/ES/NL/UA from the current question's context. If unclear or slash-only,
omit language for English. Old chat, host locale or a saved draft alone do not
select the language. The selector can still be changed manually. Published
decision evidence retains its original wording. Current saved English translations appear separately under english_translation, with machine-translation metadata. The form offers English/Original without a new search; interface-language selection does not request a new translation. UK is accepted as an alias for platform locale UA, with HTML language tag uk.
ebti is the canonical name advertised by prompts/list. The compatibility
prompt ebty remains accepted by prompts/get but is hidden from the list.
Both names are also accepted as hidden tools/call aliases of open_ebti_search_form.
Technical EBTI tool, resource and stored-result names remain unchanged.
Classification has its own organization-wide allowance, shared by the cabinet
and MCP. The first successful, nonempty search uses one classification credit;
the same classification_id includes up to three successful searches in total.
Pass a stable request_id when retrying an uncertain response to recover the
original evidence without another search or charge. Opening a form, reading
saved evidence, and empty or failed searches use no classification credit.
Classification does not consume screening case credits or the AI-chat request
allowance. Responses include classification and classification_usage.
The cabinet's Goods classification section provides the same search and saved history with an optional explanation. Classify beside commodity-code fields opens it in a dialog; selecting a current complete code returns to the existing form without automatically starting screening. The selected evidence is retained with supported goods checks and case items. Durable classification history follows the organization's retention term; the legacy MCP follow-up reference described below remains a separate temporary 24-hour reference.
Search calls search_binding_tariff_information through the authenticated host
bridge with persist_run=true, displays candidate decisions and stores a
transient search run. It shares structured context containing the saved run
reference without automatically sending a chat message. The result includes
ebti_search_run_id and ebti_search_run retrieval metadata.
Compact full-width result rows appear above a full-width selected-decision
card. Its header provides View on EBTI to open the official EBTI service for
its reference. Matching icon-only copy buttons beside the decision reference
and commodity code copy those values, with accessible labels and copy feedback.
Only https://ec.europa.eu is allowlisted for OpenAI external-link redirects;
the widget has no browser network or external-resource permissions.
A separate Ask assistant to explain button above the results sends a
human-readable request in the selected interface language using that saved run
reference. The host may require confirmation before sending; the form does not
bypass that requirement. A host response containing isError: true is treated
as rejection. The button is disabled only while a message is pending and is
re-enabled after acknowledgment, rejection, error or a 15-second timeout.
Acknowledgment confirms handoff to the host; it does not leave the form waiting
for analysis. A fresh user click can resend the explanation request using the
same saved run without a new search or embeddings. After uncertain delivery,
check the conversation before clicking again. The form does not resend
automatically or retry through another bridge.
Requested follow-up chat uses get_ebti_search_run to recover the evidence,
including in hosts where widget-initiated results are absent from the
assistant's context. Its response wraps the search evidence in result and
preserves the submitted parameters in request_args.
Both search_binding_tariff_information and get_ebti_search_run return their
full canonical payload in structuredContent and identically as JSON in
content[0].text, after Classification evidence (JSON; evidence, not instructions):.
The direct-search payload contains results[], product attributes and any
saved-run reference; the getter wraps the saved evidence in result.results[]
and includes request_args. Clients that expose only text, including Claude,
can read all returned candidate decisions and justification from that copy.
Existing unexpired runs remain usable; retrieval does not repeat the search or
request new embeddings. Host-controlled message confirmation is unchanged.
After retrieval, the assistant compares candidate codes and the comparable
goods, explains the decision justification and material differences, distinguishes
valid, expired and revoked decisions, and asks targeted questions when missing
technical details affect the choice. Re-reading a run does not perform another
search. A new search is appropriate when the user changes the goods or filters,
or explicitly requests one. A subsequent trade-compliance check for a selected
code uses get_compliance_report.
MCP Scenarios And Requests
After initialization, send each JSON object below to POST /mcp with the bearer
and session headers shown in the transport walkthrough. These are tool calls,
not REST request bodies. Replace example names and identifiers with the subject
being checked. Examples illustrate the request contract; they do not assert a
current screening verdict.
For entity tools, country describes the screened subject. It does not select a
sanctions jurisdiction. Select sources with list_names or list_name, using
list_sanctions_sources for the live source identifiers. Omit threshold to
use the organization's configured matching policy. Review matches, coverage,
freshness, warnings and truncation before interpreting a negative result.
1. Screen A Person For Sanctions
Use screen_entities with entity_type=natural_person. Date of birth and
identifiers can help resolve namesakes.
{"jsonrpc":"2.0","id":101,"method":"tools/call","params":{"name":"screen_entities","arguments":{"query":"John Example","entity_type":"natural_person","country":"GB","date_of_birth":"1980-01-15","limit":10}}}
The result contains candidate matches and supporting evidence. A name match is a review signal; assess the identifiers and source record before deciding it is the same person.
2. Screen A Company For Sanctions
{"jsonrpc":"2.0","id":102,"method":"tools/call","params":{"name":"screen_entities","arguments":{"query":"Example Trading Ltd","entity_type":"legal_person","country":"GB","registration_number":"01234567","limit":10}}}
This screens the company and supplied identifiers. It does not discover its ownership chain or prove that all related parties have been checked. Use the registry workflow below when those are needed.
3. Screen A Vessel By IMO
{"jsonrpc":"2.0","id":103,"method":"tools/call","params":{"name":"screen_entities","arguments":{"registration_number":"IMO 9074729","entity_type":"vessel","limit":10}}}
Inspect the matched vessel identifier and source evidence. To find available
OFAC owner/operator metadata, make a separate lookup, then screen the returned
party names with screen_entities:
{"jsonrpc":"2.0","id":104,"method":"tools/call","params":{"name":"lookup_ofac_asset_related_parties","arguments":{"item_type":"vessel","registration_number":"IMO 9074729","limit":10}}}
Related-party metadata is reference evidence and does not itself screen those parties or establish complete ownership coverage.
4. Screen An Aircraft
{"jsonrpc":"2.0","id":105,"method":"tools/call","params":{"name":"screen_entities","arguments":{"registration_number":"RA-12345","entity_type":"aircraft","limit":10}}}
Compare the registration and available serial/identity evidence. The OFAC
related-party lookup also supports item_type=aircraft for a separate
owner/operator investigation.
5. Screen A Bank Or BIC
{"jsonrpc":"2.0","id":106,"method":"tools/call","params":{"name":"screen_entities","arguments":{"query":"DEUTDEFF","registration_number":"DEUTDEFF","entity_type":"legal_person","limit":10}}}
This is sanctions screening of a bank/identifier. It does not validate an IBAN, account ownership or payment routing. A complete ISO 20022 payment should use the payment workflow to screen its full participant chain.
6. Resolve A Company And Screen Available Related Parties
Find candidates in the relevant official registry:
{"jsonrpc":"2.0","id":107,"method":"tools/call","params":{"name":"search_business_registry","arguments":{"query":"Example","country":"LV","limit":5}}}
Use the selected result's actual source_ref and registry_code for its
company card. The registry code below is illustrative:
{"jsonrpc":"2.0","id":108,"method":"tools/call","params":{"name":"get_business_registry_profile","arguments":{"source_ref":"LV_UR_REFERENCE","registry_code":"40000000000"}}}
Screen that resolved company and the selected available related parties:
{"jsonrpc":"2.0","id":109,"method":"tools/call","params":{"name":"screen_business_entity_with_related_parties","arguments":{"source_ref":"LV_UR_REFERENCE","registry_code":"40000000000","screen_company":true,"include_officers":true,"include_beneficial_owners":true,"include_shareholders":true}}}
Review the aggregate decision, coverage and coverage_gaps. Registry lookup
alone is not sanctions screening. An incomplete ownership/UBO source remains a
coverage gap even if the available names have no match.
7. Screen A Person For PEP Exposure
{"jsonrpc":"2.0","id":110,"method":"tools/call","params":{"name":"screen_pep","arguments":{"query":"John Example","country":"GB","date_of_birth":"1980-01-15","limit":10}}}
A PEP match is an enhanced due diligence signal, not a sanctions prohibition.
Read the source receipt, freshness and coverage.function_scope; a negative
can be INCOMPLETE. Run screen_entities separately for sanctions exposure.
8. Obtain A VoP-Style Name Match
{"jsonrpc":"2.0","id":111,"method":"tools/call","params":{"name":"screen_entity_vop","arguments":{"query":"Example Trading Ltd","entity_type":"legal_person","country":"GB","limit":10}}}
Inspect the returned MTCH, CMTC, NMTC or NOAP code and candidate
evidence. These codes describe sanctions-candidate name matching; this tool
does not verify bank-account ownership or authorize a payment.
9. Find A CN Code Or Read Its Description
For literal nomenclature wording or a numeric prefix:
{"jsonrpc":"2.0","id":112,"method":"tools/call","params":{"name":"search_cn_codes","arguments":{"query":"8517","language":"EN","limit":10}}}
For a selected code's hierarchy without measures or sanctions:
{"jsonrpc":"2.0","id":113,"method":"tools/call","params":{"name":"get_cn_description","arguments":{"taric_code":"8517110000","language":"EN"}}}
The results describe the nomenclature; they do not establish that the goods have been correctly classified.
10. Classify Goods With EBTI Decision Evidence
Use EBTI (European Binding Tariff Information) when you have a product
description and need to choose or review an HS/CN code. search_binding_tariff_information
finds similar official EU customs decisions; compare their goods descriptions,
candidate codes, classification justifications and current/expired/revoked
status with the actual product.
{"jsonrpc":"2.0","id":114,"method":"tools/call","params":{"name":"search_binding_tariff_information","arguments":{"query":"Hydraulic gear pump for industrial machinery","materials":"steel housing","intended_use":"pumping hydraulic oil","limit":5,"persist_run":true,"request_id":"classification-demo-001"}}}
Add known materials, intended_use, operating_principle, completeness
and technical_parameters to describe the goods precisely. A code is optional:
set cn_code only when the search should be restricted to that prefix. Use
search_cn_codes or get_cn_description afterwards to inspect nomenclature
wording. This workflow supports classification review; the tool does not issue
a binding tariff decision for the submitted goods.
To let the user enter or refine the same details in an interactive form:
{"jsonrpc":"2.0","id":1141,"method":"tools/call","params":{"name":"open_ebti_search_form","arguments":{"query":"Hydraulic gear pump for industrial machinery","language":"EN"}}}
After the form searches, retrieve the saved evidence without searching again:
{"jsonrpc":"2.0","id":1142,"method":"tools/call","params":{"name":"get_ebti_search_run","arguments":{}}}
Pass the returned run_id when available; with no id, the reader uses the latest
active search in the session. For a genuine search refinement, pass the returned
classification_id; reuse request_id only when retrying the same uncertain
request. Reading saved results does not perform another classification search.
11. Run A Full Goods Check: Measures And Goods Sanctions
For the combined TARIC, applicable goods-sanctions and goods-risk evidence with an HTML report:
{"jsonrpc":"2.0","id":115,"method":"tools/call","params":{"name":"get_compliance_report","arguments":{"taric_code":"8517110000","country":"RU","direction":"export","language":"EN","report_language":"en","product_texts":["Cordless line telephone"],"persist_case":false}}}
For the raw JSON workflow instead of the report wrapper:
{"jsonrpc":"2.0","id":116,"method":"tools/call","params":{"name":"check_trade_compliance","arguments":{"taric_code":"8517110000","country":"RU","direction":"export","language":"EN","product_texts":["Cordless line telephone"]}}}
Inspect the scoped decision, TARIC measures, goods sanctions, export-control
evidence and unresolved conditions. For other destinations, including KG, use
this full workflow; the lightweight check_sanctions destination input is
restricted to RU/BY. TARIC country relevance depends on the measure; set trade
direction relative to the EU where known. Declaration checks remain opt-in.
12. Read Measures Or Duty Rates Only
{"jsonrpc":"2.0","id":117,"method":"tools/call","params":{"name":"get_measures","arguments":{"taric_code":"8517110000","country":"CN","language":"EN"}}}
{"jsonrpc":"2.0","id":118,"method":"tools/call","params":{"name":"get_duties","arguments":{"taric_code":"8517110000","country":"CN","language":"EN"}}}
get_measures returns the TARIC measure set and legal basis; get_duties
keeps duty types 103/105/106. Neither runs the goods-sanctions workflow. Use
the full goods check above when the question includes measures and embargoes.
13. Check Goods Sanctions / Embargo Restrictions Only
{"jsonrpc":"2.0","id":119,"method":"tools/call","params":{"name":"check_sanctions","arguments":{"taric_code":"8517110000","country":"RU","language":"EN"}}}
With RU/BY, read the destination-specific evidence, legal references and
conditions. Omit country to screen the code across goods regimes and inspect
screening_scope and code_flagged; a cross-regime code flag is not a verdict
for a particular shipment. This tool does not screen the trading parties.
14. Look Up A Chemical And Export-Control Candidates
{"jsonrpc":"2.0","id":120,"method":"tools/call","params":{"name":"search_chemical_substances","arguments":{"query":"67-64-1","language":"en","limit":5}}}
{"jsonrpc":"2.0","id":121,"method":"tools/call","params":{"name":"search_export_control_candidates","arguments":{"cas_rn":"67-64-1","limit":10}}}
The first returns ECICS reference candidates; the second returns potential control entries for technical review. A candidate or CN-code correspondence alone does not determine that a product meets a technical control entry.
15. Validate And Screen An ISO 20022 Payment
validate_iso20022_payment accepts {"xml":"<complete XML document>"} as
its arguments and returns structural validation plus the parsed participant
chain without sanctions screening. screen_iso20022_payment uses that XML to
screen the payment chain. A runnable file-based request is shown in the
transport walkthrough below; it preserves the complete XML and JSON escaping.
{"jsonrpc":"2.0","id":122,"method":"tools/call","params":{"name":"get_payment_screening_run","arguments":{"include_report_html":false,"include_raw_xml":false}}}
The follow-up call reads the latest active one-shot result for the session. Review structural validation, participant matches, source coverage and unresolved BIC enrichment before deciding the payment can proceed. A transient screening result does not create a durable PaymentCase.
16. Save Or Read A Durable PaymentCase
Use the same complete-XML request construction as in the payment walkthrough,
changing params.name to create_iso20022_payment_case to screen and persist
the case. Use its returned id to fetch evidence:
{"jsonrpc":"2.0","id":123,"method":"tools/call","params":{"name":"get_payment_case_evidence","arguments":{"case_id":"pcase_00000000000000000000000000000000"}}}
Replace the illustrative case id with the actual returned id. Saving a case stores audit evidence and consumes the applicable case allowance; it does not mean that the payment has been approved or executed.
17. Open A Screening Form, Recover Evidence And Inspect Sources
Open the goods-screening form with a prefilled code and destination:
{"jsonrpc":"2.0","id":124,"method":"tools/call","params":{"name":"open_goods_screening_form","arguments":{"taric_code":"8517110000","country":"RU","language":"EN"}}}
After the user runs the check, read the saved evidence without repeating it:
{"jsonrpc":"2.0","id":125,"method":"tools/call","params":{"name":"get_goods_screening_run","arguments":{}}}
The equivalent entity/payment openers and get_*_screening_run tools are
listed above; classification uses the EBTI form and saved-search workflow in
scenario 10. Reuse returned run_id where available, especially across multiple
concurrent checks. A temporary run normally expires after 24 hours.
To inspect source coverage and connector versions:
{"jsonrpc":"2.0","id":126,"method":"tools/call","params":{"name":"list_sanctions_sources","arguments":{"category":"sanctions","include_disabled":false}}}
{"jsonrpc":"2.0","id":127,"method":"tools/call","params":{"name":"get_connector_metadata","arguments":{"include_tools":true,"include_prompts":true,"include_sources":false,"include_changelog":true}}}
These calls return discovery and freshness information, not a screening decision for a person, company, shipment or payment.
JSON-RPC Transport Walkthrough
These examples use direct bearer authentication. An OAuth client sends its
issued access token in the same header. Initialization prints response headers;
copy Mcp-Session-Id into the subsequent commands. The commands use Bash syntax;
the payment file example also requires jq.
Initialize
curl -i -X POST "https://api.compliance-mcp.com/mcp" \
-H "Authorization: Bearer tk_..." \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-03-26",
"capabilities": {},
"clientInfo": {"name": "example-client", "version": "1.0.0"}
}
}'
Read result.protocolVersion, result.capabilities and result.serverInfo;
the actual versions are returned by the server. Complete the client handshake:
curl -X POST "https://api.compliance-mcp.com/mcp" \
-H "Authorization: Bearer tk_..." \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Mcp-Session-Id: <session-id-from-initialize>" \
-H "MCP-Protocol-Version: 2025-03-26" \
-d '{"jsonrpc":"2.0","method":"notifications/initialized","params":{}}'
List Tools
curl -X POST "https://api.compliance-mcp.com/mcp" \
-H "Authorization: Bearer tk_..." \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Mcp-Session-Id: <session-id-from-initialize>" \
-H "MCP-Protocol-Version: 2025-03-26" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'
Generate A Goods Compliance Report
curl -X POST "https://api.compliance-mcp.com/mcp" \
-H "Authorization: Bearer tk_..." \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Mcp-Session-Id: <session-id-from-initialize>" \
-H "MCP-Protocol-Version: 2025-03-26" \
-d '{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "get_compliance_report",
"arguments": {
"taric_code": "8517110000",
"country": "RU",
"date": "2026-10-22",
"language": "EN"
}
}
}'
Screen An Entity
curl -X POST "https://api.compliance-mcp.com/mcp" \
-H "Authorization: Bearer tk_..." \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Mcp-Session-Id: <session-id-from-initialize>" \
-H "MCP-Protocol-Version: 2025-03-26" \
-d '{
"jsonrpc": "2.0",
"id": 4,
"method": "tools/call",
"params": {
"name": "screen_entities",
"arguments": {
"query": "Petr Aven",
"threshold": 60,
"limit": 20,
"list_name": "LV_FID_FROZEN"
}
}
}'
One-Shot ISO 20022 Payment Screening
Save a complete supported pain.001 or pacs.008 document as payment.xml.
The repository includes a complete fixture at
docs/demo/iso20022/01-clean-pacs008.xml.
Build the request with an XML file rather than manually escaping its content:
jq -n --rawfile xml payment.xml \
'{jsonrpc:"2.0",id:5,method:"tools/call",params:{name:"screen_iso20022_payment",arguments:{xml:$xml,limit:10}}}' \
| curl -X POST "https://api.compliance-mcp.com/mcp" \
-H "Authorization: Bearer tk_..." \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Mcp-Session-Id: <session-id-from-initialize>" \
-H "MCP-Protocol-Version: 2025-03-26" \
--data-binary @-
For structural validation only, change the tool name to
validate_iso20022_payment and supply only arguments:{xml:$xml}. For a
durable screened case, use create_iso20022_payment_case with the complete XML.
Inspect the resulting case id before calling get_payment_case_evidence.
Follow Up On The Latest One-Shot Payment Run
curl -X POST "https://api.compliance-mcp.com/mcp" \
-H "Authorization: Bearer tk_..." \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Mcp-Session-Id: <session-id-from-initialize>" \
-H "MCP-Protocol-Version: 2025-03-26" \
-d '{
"jsonrpc": "2.0",
"id": 6,
"method": "tools/call",
"params": {
"name": "get_payment_screening_run",
"arguments": {}
}
}'
Read A Resource Or Prompt
Use the same headers and replace the POST body with one of these requests:
{"jsonrpc":"2.0","id":7,"method":"resources/list","params":{}}
{"jsonrpc":"2.0","id":8,"method":"resources/read","params":{"uri":"compliance://server/manifest.json"}}
{"jsonrpc":"2.0","id":9,"method":"prompts/list","params":{}}
{"jsonrpc":"2.0","id":10,"method":"prompts/get","params":{"name":"ebti","arguments":{"query":"Hydraulic gear pump","language":"EN"}}}
resources/read returns result.contents[]; prompts/get returns a template's
messages, which the host may use to request the corresponding tool.
Subscribe And Open The SSE Channel
Subscribe through POST with the same bearer and session headers:
{"jsonrpc":"2.0","id":11,"method":"resources/subscribe","params":{"uri":"compliance://sources/catalog.json"}}
Keep the SSE connection in that session:
curl -N "https://api.compliance-mcp.com/mcp" \
-H "Authorization: Bearer tk_..." \
-H "Accept: text/event-stream" \
-H "Mcp-Session-Id: <session-id-from-initialize>" \
-H "MCP-Protocol-Version: 2025-03-26"
The stream delivers JSON-RPC notifications in SSE data: records. Use
resources/unsubscribe with the same uri to stop the subscription. Hosts
without SSE support can poll metadata and reread catalogs. GET without the SSE
Accept header returns HTTP 405.
Resources And Prompts
The connector exposes metadata through both tools and MCP resources.
| MCP resource URI | MIME type | Purpose |
|---|---|---|
compliance://server/manifest.json | application/json | Connector manifest and version policy. |
compliance://sources/catalog.json | application/json | Machine-readable source catalog and freshness metadata. |
compliance://sources/catalog.md | text/markdown | Human-readable source catalog for audit conversations. |
compliance://server/changelog.md | text/markdown | Connector changelog and customer-facing change summary. |
resources/list and each form tool's ui.resourceUri / openai/outputTemplate
return versioned widget URIs. Read the returned value instead of pinning an
asset version; {version} below is the current widgetAssetVersion from
initialize.
| Widget resource URI | MIME type | Purpose |
|---|---|---|
ui://widget/compliance-report-{version}.html | text/html;profile=mcp-app | Interactive HTML evidence report viewer. |
ui://widget/entity-screening-form-{version}.html | text/html;profile=mcp-app | Entity/person/vessel/bank/aircraft input form. |
ui://widget/goods-screening-form-{version}.html | text/html;profile=mcp-app | TARIC/CN goods report-request form. |
ui://widget/ebti-search-form-{version}.html | text/html;profile=mcp-app | Shared customs-classification search form. |
ui://widget/payment-screening-form-{version}.html | text/html;profile=mcp-app | ISO 20022 payment screening form. |
Unversioned widget URIs remain compatibility aliases; new clients should use the advertised versioned resources.
Prompt templates are exposed through prompts/list and prompts/get for
clients that support them. The visible customs-classification form prompt is
ebti (Customs Classification Form); compatibility alias ebty is accepted by
prompts/get without a duplicate menu entry. The visible entity form prompt is
entity (Entity Screening Form). The goods and payment form prompts are
goods and payment. Legacy prompt names screen and
open_entity_screening_input_form are still accepted by prompts/get, but are
not advertised in prompts/list; this keeps ChatGPT-style menus from showing
duplicate entity-form rows. Clients that do not render prompts as forms should
use the corresponding open_*_screening_form or open_ebti_search_form tools
instead.
The current prompt catalog contains 28 advertised templates. Read
prompts/list for their descriptions and exact required arguments:
| Workflow | Advertised prompt names |
|---|---|
| Goods checks, reports and reference data | run_goods_compliance_check, open_compliance_report, find_cn_code, describe_cn_code, get_goods_overview, get_trade_measures, get_import_duties, check_goods_sanctions |
| Classification and forms | ebti, goods, open_goods_screening_input_form, entity, payment |
| Chemicals and export controls | search_chemical_substances, search_export_control_candidates |
| Registries and asset parties | search_business_registry, get_business_registry_profile, lookup_ofac_asset_related_parties |
| Entity and payment checks | screen_sanctions_entity, screen_payment, verify_payee, audit_payment_case |
| Sources, methodology and audit | show_source_catalog, show_connector_metadata, describe_data_sources, explain_screening_methodology, prepare_audit_summary, what_changed_in_connector |
For example, search_chemical_substances and search_business_registry
require query; get_business_registry_profile requires source_ref and
registry_code; lookup_ofac_asset_related_parties requires item_type;
screen_sanctions_entity requires query; verify_payee requires
payee_name; audit_payment_case requires case_id. Prompt arguments are
template inputs; use the tool's separate inputSchema when executing it.
The server advertises tool, prompt and resource list-change notifications plus
resource subscriptions. Hosts without notification support can reread the
catalogs and get_connector_metadata to refresh versions and source metadata.
OAuth 2.1 For MCP Clients
For OpenAI Web custom connectors and other OAuth-capable MCP hosts, the MCP endpoint advertises protected resource metadata and an OAuth Authorization Code
- PKCE flow.
| OAuth endpoint | URL |
|---|---|
| MCP URL | https://api.compliance-mcp.com/mcp |
| Protected resource metadata | https://api.compliance-mcp.com/.well-known/oauth-protected-resource |
| Protected resource metadata for MCP | https://api.compliance-mcp.com/.well-known/oauth-protected-resource/mcp |
| Authorization server metadata | https://api.compliance-mcp.com/.well-known/oauth-authorization-server |
| OpenID compatibility metadata | https://api.compliance-mcp.com/.well-known/openid-configuration |
| Dynamic client registration | https://api.compliance-mcp.com/oauth/register |
| Authorization endpoint | https://api.compliance-mcp.com/oauth/authorize |
| Token endpoint | https://api.compliance-mcp.com/oauth/token |
| Token/grant revocation | https://api.compliance-mcp.com/oauth/revoke |
OAuth Discovery Flow
- The MCP host reads the protected resource metadata for
/mcp. - The host reads the authorization-server metadata.
- If needed, the host registers a public OAuth client through
/oauth/register. The server accepts trusted MCP connector redirect URIs and returns aclient_idfor that registration. - The host opens
/oauth/authorizewith Authorization Code + PKCE S256. - The user pastes a Compliance Platform organization API key (
tk_...) into the hosted authorization page. - The host exchanges the authorization code at
/oauth/token. - The host calls
/mcpwithAuthorization: Bearer <access_token>.
The source organization key is validated during consent; it is not returned
as an OAuth token. The server issues an opaque mcp_at_... access token for
/mcp, with a one-hour lifetime and mcp_access scope. Request
offline_access during authorization to receive an opaque mcp_rt_... refresh
token with a 30-day lifetime. Without that scope, no refresh token is issued.
Refresh with grant_type=refresh_token at /oauth/token, including the
registered client_id. Refresh tokens rotate: save the newly returned pair
and do not reuse the previous refresh token. Detected reuse revokes its grant
family. POST /oauth/revoke accepts a form field token and revokes the
associated grant family. OAuth credentials are MCP-only; REST calls still
require an organization key with api_access.
Production stores OAuth grants, authorization codes and dynamic registrations in persistent Supabase storage; local development uses the file store. Stored bearer credentials are represented by hashes. A process restart alone does not revoke persisted grants. Each request still checks the source API key's expiry, revocation and enabled capabilities.
Direct Bearer Mode
MCP hosts that support direct bearer authentication can skip OAuth and send the organization key directly:
Authorization: Bearer tk_<organization-api-key>
Never put the key in public connector metadata, instructions, descriptions or screenshots. It belongs only in the OAuth consent form or in the private bearer token setting of the MCP host.
Operational requirements:
- The organization API key must have
mcp_access. - For REST calls, the key must have
api_access; do not assume one capability grants the other. - Authorization codes expire after five minutes and are single-use. OAuth access tokens expire after one hour; refresh access or reauthorize as needed.
- OAuth setup is for external MCP clients. The built-in platform assistant uses
signed internal transport through
/internal/mcp.
Access And Error Model
Every public MCP call is tenant-scoped by the bearer token. Inspect all three
layers: HTTP status, a top-level JSON-RPC error, and result.isError. An HTTP
200 alone does not mean that a tool succeeded or that screening cleared the
subject.
| Failure situation | Expected behavior |
|---|---|
Missing/invalid bearer or denied mcp_access on initialization, discovery or GET | HTTP 401 / 403 with WWW-Authenticate. |
Authentication/capability failure on tools/call | HTTP 200, result.isError=true, plus the challenge in WWW-Authenticate and result._meta["mcp/www_authenticate"]; the host can initiate authorization. |
| Request-level rate/quota limit | HTTP 429; inspect Retry-After when present. |
| Tool billing/quota/capacity failure | HTTP 200 with result.isError=true; _meta.error_code and _meta.retry_after_seconds may supply details. |
| Tool arguments fail schema validation | HTTP 200, result.isError=true, text Request validation failed. |
| Unknown tool | HTTP 200 tool error with text Unknown tool: .... |
| Unknown JSON-RPC method | HTTP 200 with top-level error.code=-32601. |
| Unknown resource/prompt, missing required prompt argument, unsupported subscription URI | HTTP 200 with top-level error.code=-32602. |
| Invalid JSON-RPC envelope / malformed JSON | HTTP 422, {"error":"Request validation failed","code":null}. |
| Source/database failure during tool execution | Usually HTTP 200 tool error; transport failures can return HTTP 5xx. |
For example, valid JSON-RPC with invalid tool arguments returns:
{"jsonrpc":"2.0","id":12,"result":{"content":[{"type":"text","text":"Request validation failed"}],"isError":true}}
An unsupported method instead returns:
{"jsonrpc":"2.0","id":13,"error":{"code":-32601,"message":"Method not found"}}
Successful tool responses normally contain result.content[] for host/model
presentation, optional result.structuredContent for machine-readable evidence,
and result.isError=false. Widget-only metadata may be in result._meta.
Read the tool-specific decision and coverage inside the evidence: transport
success is distinct from a screening decision. A resource or prompt response
has its own result shape and does not use the tool-result wrapper.
Saved-run readers should receive the returned run_id. If none is available,
their documented no-argument mode uses the active session/tenant. Temporary
evidence and SSE subscriptions are not durable cases; retain returned case ids
when durable evidence is required. Reuse the same session header for follow-up.
Tool results are compliance evidence and review signals. They do not replace legal, customs, trade or regulatory advice.
Related Material
- Quick start — choose a workflow and run the first check.
- AI Assistant User Guide — platform screens and guided checks.
- Entity Screening Algorithms — match scoring and interpretation.
- Prompt Scenarios: Banking & Payments — example entity, registry and payment workflows.
Start with one check.
Keep the evidence.
Goods, companies and payment parties, checked against official sources. Work in the platform or connect your AI assistant.
Already have access?Open platform