lcp-mcp-server
v1.4.0LCP (Lead Context Protocol) MCP server — thin adapter wrapping LCP REST endpoints as agent tools.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
submit_lead
Submit a lead to an LCP-compliant endpoint. The payload should contain lead fields (consumer, location, compliance, attributes, channel, etc.). The server wraps it in an LCP envelope.
| Parameter | Type | Description |
|---|---|---|
payload * | object | Lead payload — consumer, location, compliance, provenance, attributes, channel, etc. See LCP lead schema. |
receiver_id * | string | LCP receiver ID (e.g. 'spx'). |
submit_call
Submit a call lead to an LCP-compliant endpoint. The payload should contain call fields (call block, consumer, location, compliance, attributes).
| Parameter | Type | Description |
|---|---|---|
payload * | object | Call payload — call block (call_id, status, durations, recording, etc.), consumer, location, compliance, attributes. See LCP call schema. |
receiver_id * | string | LCP receiver ID. |
submit_leads_batch
Submit up to 100 leads in one bounded batch (LEP-0001 / W2-03). Each item is an ordinary lead payload with its own optional idempotency_key; replaying an item returns its original result. The request is the LEP batch message — request_id plus items of {item_id, idempotency_key, payload} — and the platform answers 207 with {request_id, summary, results}, one receipt per item in input order (item_id plus accepted/duplicate/rejected/error, lead_id, and error when failed) — one item's failure never fails its siblings, so retry only the failed items. The batch is refused whole (413) above 100…
| Parameter | Type | Description |
|---|---|---|
items * | array | Lead items, processed in the order given. |
receiver_id * | string | LCP receiver ID of the platform. |
request_id | string | Optional request identifier echoed in the response (generated when omitted). |
subscribe_to_events
Register a tenant-scoped event subscription (LEP-0001 W3). event_types is an explicit allowlist drawn from the platform's capabilities().events — no wildcard exists. callback_url must pass the SSRF rule (public resolved address; http only in a sandbox). filter is a closed key set of core enums/ids (event_type, message_type, vertical, status, lead_id); consumer paths are refused by name. The response carries the per-subscription HMAC secret exactly once — deliveries are signed over <timestamp>\n<event_id>\n<body>. replay_from replays a cursor from GET /v1/lcp/events. The subscription featur…
| Parameter | Type | Description |
|---|---|---|
callback_url * | string | HTTPS callback URL. Public resolved addresses only. |
event_types * | array | Explicit event allowlist; unadvertised names are refused. |
receiver_id * | string | LCP receiver ID of the platform. |
filter | object | Privacy-safe filter over core enums/ids only. |
replay_from | string | Opaque cursor from GET /v1/lcp/events; replays that event set deterministically. |
query_lead_status
Query the status and lifecycle of a previously submitted lead.
| Parameter | Type | Description |
|---|---|---|
lead_id * | string | The lead ID to query. |
get_schema
Retrieve a JSON Schema by name. Core schemas: envelope, core, lead, call, ping, post, ack, event, bid, offer. Vertical schemas: 'verticals/mortgage', etc. Falls back to local repo files if the REST endpoint is unavailable.
| Parameter | Type | Description |
|---|---|---|
name * | string | Schema name (e.g. 'envelope', 'lead', 'verticals/mortgage'). |
get_capabilities
Discover the capabilities of the LCP endpoint — supported versions, message types, verticals, countries, auth methods, events, conformance level.
get_request_history
Query the LCP request history (LEP-0005): paginated audit rows for requests this credential sent or received. Filters: request_id, lead_id, message_type, status, vertical, caller_phone_hash (per-pair HMAC), from/to (whole-second ISO timestamps), limit (1-200, default 50), cursor. Rows carry metadata only — never raw envelope bodies or plaintext contacts. Pagination is returned in the result's `pagination` object (MCP results have no headers).
| Parameter | Type | Description |
|---|---|---|
caller_phone_hash | string | 64-hex per-pair HMAC of the caller's phone (never plaintext). |
cursor | string | Opaque cursor from a previous page. |
from | string | Inclusive lower bound, YYYY-MM-DDTHH:MM:SSZ. |
lead_id | string | Publisher record handle. |
limit | integer | |
message_type | string | 'ack' is a legal filter with no stored rows in v1. |
request_id | string | Exact message id (UUID). |
status | string | Open status vocabulary (§6). |
to | string | Inclusive upper bound, YYYY-MM-DDTHH:MM:SSZ. |
vertical | string |
list_offers
List active offers available to the authenticated sender. Optionally filter by vertical.
| Parameter | Type | Description |
|---|---|---|
vertical | string | Filter offers by vertical (e.g. 'mortgage'). |
submit_bid
Submit a bid in response to a ping. The platform collects all bids and selects the winner. The winner receives a post with full PII.
| Parameter | Type | Description |
|---|---|---|
decision * | string | accept = bid for the lead; reject = do not want; pass = decline to bid. |
ping_id * | string | ID of the ping being responded to. |
bid_price_cents | integer | Bid price in cents. Required when decision = accept. |
buyer_reference | string | Buyer's internal tracking reference. |
currency | string | ISO 4217 currency code the bid is expressed in (e.g. AUD, USD). Required when decision = accept. |
estimated_contact_seconds | integer | Estimated time-to-contact in seconds. |
fx_expires_at | string | Canonical whole-second UTC end of the rate's validity; strictly later than fx_timestamp. Required with fx_rate. |
fx_rate | string | LEP-0010: native major units per 1 settlement (offer-currency) major unit. Required when currency differs from the offer's currency; inert on a same-currency bid. Plain decimal, 6-12 fractional digits… |
fx_source | string | Named rate provider, or 'bilateral'. Required with fx_rate. |
fx_timestamp | string | Canonical whole-second UTC instant the rate was observed. Required with fx_rate. |
reject_reason | string | Why rejected (optional). |
slots_claimed | integer | v1.1 (LEP-0003 §2): buyer slots claimed if selected — single-slot only at v1.1; send only when the platform advertises a 1.x minor >= 1 element in lcp_versions (SPEC.md §8 capability gate). |
send_quote
Open a bounded agent-to-agent price negotiation (LEP-0009) for a ping this platform already sent. Platform-role tool: the platform states its ask, the buyer counters/accepts/refuses. Payload is ping-safe (integer minor units, ISO 4217 currency, ids, round counters, timestamps) with no consumer PII and no free text. Requires the platform to advertise feature `negotiation`.
| Parameter | Type | Description |
|---|---|---|
correlation_id * | string | message.id of the ping being priced. |
currency * | string | |
expires_at * | string | Absolute RFC 3339 UTC end, not later than the ping's expires_at. |
floor_price_cents * | integer | Restated from the ping. |
offer_id * | string | Must equal the ping's offer_id. |
ping_id * | string | The ping this negotiation prices. |
price_cents * | integer | The ask in minor units (>= floor_price_cents). |
receiver_id * | string | Buyer that was pinged. |
idempotency_key | string | Stable key; a replay returns the original ack. |
max_rounds | integer | |
negotiation_id | string | Opaque negotiation id (generated when omitted). |
rounds_remaining | integer | Defaults to max_rounds on the opening quote. |
send_counter
Answer the standing negotiation message (LEP-0009): decision `counter` moves the price within the monotone bounds, `accept` closes at the answered price and returns a single-use binding token, `refuse` closes with a reason. Buyer- or platform-role; `decision` is explicit so an agent cannot counter without stating a price.
| Parameter | Type | Description |
|---|---|---|
correlation_id * | string | message.id of the message being answered. |
currency * | string | |
decision * | string | |
expires_at * | string | The negotiation's absolute end, unchanged. |
floor_price_cents * | integer | |
negotiation_id * | string | |
offer_id * | string | |
ping_id * | string | |
rounds_remaining * | integer | Your view before this message is applied; a stale echo is refused. |
idempotency_key | string | |
price_cents | integer | Required unless decision = refuse; on accept it must equal the answered price. |
receiver_id | string | The other party (defaults to LCP_PLATFORM_ID when the buyer is calling). |
rejection_reason | string | Required when decision = refuse (open enum, e.g. below_floor_price, negotiation_closed). |
redeem_negotiation_token
Redeem a LEP-0009 binding token on the bid path: submit a bid with decision accept and the single-use token in place of bid_price_cents. First redemption creates the bid; replaying the same envelope returns the original acknowledgement and creates no second bid.
| Parameter | Type | Description |
|---|---|---|
correlation_id * | string | message.id of the ping. |
negotiation_binding_token * | string | |
ping_id * | string | Must equal the negotiation's ping. |
bid_price_cents | integer | Optional; when present it must equal the token price. |
currency | string | |
estimated_contact_seconds | integer |