lcp-mcp-server

v1.4.0
lcp-mcp-server Checked 3 days ago Published 16 days ago

LCP (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.

ParameterTypeDescription
payload *objectLead payload — consumer, location, compliance, provenance, attributes, channel, etc. See LCP lead schema.
receiver_id *stringLCP 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).

ParameterTypeDescription
payload *objectCall payload — call block (call_id, status, durations, recording, etc.), consumer, location, compliance, attributes. See LCP call schema.
receiver_id *stringLCP 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…

ParameterTypeDescription
items *arrayLead items, processed in the order given.
receiver_id *stringLCP receiver ID of the platform.
request_idstringOptional 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…

ParameterTypeDescription
callback_url *stringHTTPS callback URL. Public resolved addresses only.
event_types *arrayExplicit event allowlist; unadvertised names are refused.
receiver_id *stringLCP receiver ID of the platform.
filterobjectPrivacy-safe filter over core enums/ids only.
replay_fromstringOpaque cursor from GET /v1/lcp/events; replays that event set deterministically.

query_lead_status

Query the status and lifecycle of a previously submitted lead.

ParameterTypeDescription
lead_id *stringThe 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.

ParameterTypeDescription
name *stringSchema 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).

ParameterTypeDescription
caller_phone_hashstring64-hex per-pair HMAC of the caller's phone (never plaintext).
cursorstringOpaque cursor from a previous page.
fromstringInclusive lower bound, YYYY-MM-DDTHH:MM:SSZ.
lead_idstringPublisher record handle.
limitinteger
message_typestring'ack' is a legal filter with no stored rows in v1.
request_idstringExact message id (UUID).
statusstringOpen status vocabulary (§6).
tostringInclusive upper bound, YYYY-MM-DDTHH:MM:SSZ.
verticalstring

list_offers

List active offers available to the authenticated sender. Optionally filter by vertical.

ParameterTypeDescription
verticalstringFilter 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.

ParameterTypeDescription
decision *stringaccept = bid for the lead; reject = do not want; pass = decline to bid.
ping_id *stringID of the ping being responded to.
bid_price_centsintegerBid price in cents. Required when decision = accept.
buyer_referencestringBuyer's internal tracking reference.
currencystringISO 4217 currency code the bid is expressed in (e.g. AUD, USD). Required when decision = accept.
estimated_contact_secondsintegerEstimated time-to-contact in seconds.
fx_expires_atstringCanonical whole-second UTC end of the rate's validity; strictly later than fx_timestamp. Required with fx_rate.
fx_ratestringLEP-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_sourcestringNamed rate provider, or 'bilateral'. Required with fx_rate.
fx_timestampstringCanonical whole-second UTC instant the rate was observed. Required with fx_rate.
reject_reasonstringWhy rejected (optional).
slots_claimedintegerv1.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`.

ParameterTypeDescription
correlation_id *stringmessage.id of the ping being priced.
currency *string
expires_at *stringAbsolute RFC 3339 UTC end, not later than the ping's expires_at.
floor_price_cents *integerRestated from the ping.
offer_id *stringMust equal the ping's offer_id.
ping_id *stringThe ping this negotiation prices.
price_cents *integerThe ask in minor units (>= floor_price_cents).
receiver_id *stringBuyer that was pinged.
idempotency_keystringStable key; a replay returns the original ack.
max_roundsinteger
negotiation_idstringOpaque negotiation id (generated when omitted).
rounds_remainingintegerDefaults 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.

ParameterTypeDescription
correlation_id *stringmessage.id of the message being answered.
currency *string
decision *string
expires_at *stringThe negotiation's absolute end, unchanged.
floor_price_cents *integer
negotiation_id *string
offer_id *string
ping_id *string
rounds_remaining *integerYour view before this message is applied; a stale echo is refused.
idempotency_keystring
price_centsintegerRequired unless decision = refuse; on accept it must equal the answered price.
receiver_idstringThe other party (defaults to LCP_PLATFORM_ID when the buyer is calling).
rejection_reasonstringRequired 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.

ParameterTypeDescription
correlation_id *stringmessage.id of the ping.
negotiation_binding_token *string
ping_id *stringMust equal the negotiation's ping.
bid_price_centsintegerOptional; when present it must equal the token price.
currencystring
estimated_contact_secondsinteger