Skip to content

Leads actions

4 actions. Every field marked Required must be sent; account, dryRun, idempotencyKey, confirmCredits and quoteId are the control fields every surface adds.

leads.list · read

Leads found by the account’s Signals agents, hottest first, with why each one fits.

  • MCP tool: get_leads. Loaded by default in MCP clients.
  • REST: GET /v1/leads/list
  • CLI: xholic leads list
  • Scope: read
  • Plan: Every plan, including the trial
  • Cost: Free.
  • Rate limit bucket: read

Input

Field Type Required Description
agentId string (uuid) No
status “ALL” \ “COLLECTED” \ “CONTACTED” \
limit integer 1–20 No Default: 10.
account string ≤ 64 chars No X account to act on, as @handle. Leave it out to use the connection’s default account.

leads.set_status · write

Mark a lead COLLECTED (keep), CONTACTED (reached out) or DISMISSED (not now). Pass suppress true with DISMISSED to never surface this person again. Call it only when the user asked for this in the conversation; never on your own initiative.

  • MCP tool: set_lead_status. Loaded by default in MCP clients.
  • REST: POST /v1/leads/set-status
  • CLI: xholic leads set-status
  • Scope: write
  • Plan: Every plan, including the trial
  • Cost: Free.
  • Rate limit bucket: write

Input

Field Type Required Description
id string (uuid) Yes Lead id from get_leads.
status “COLLECTED” \ “CONTACTED” \ “DISMISSED”
suppress boolean No Never show this person as a lead again.
account string ≤ 64 chars No X account to act on, as @handle. Leave it out to use the connection’s default account.
dryRun boolean No Return exactly what would happen without doing it.
idempotencyKey string ≤ 200 chars No A unique key for this write. Repeating a call with the same key returns the first result instead of acting twice.

leads.write_opener · write

Have Xholic’s AI write an opening DM for one lead from get_leads, from what they posted and the account’s voice. Returns the stored opener for free when there is one; pass regenerate true for a new one. Use only when the user asks for Xholic to write it; otherwise write it yourself. Spends Xholic AI credits when it writes: quote first, show it to the user, and pass confirmCredits after they agree. Nothing is sent.

  • MCP tool: leads_write_opener. Catalog: reach it with find_actions and run_write_action, or turn on the full toolset.
  • REST: POST /v1/leads/write-opener
  • CLI: xholic leads write-opener
  • Scope: write
  • Plan: Every plan, including the trial
  • Cost: Xholic AI: up to about 3 credits (Xholic AI DM opener for this lead (free when one is stored)). Returns a quote first; pass confirmCredits after the user agrees.
  • Rate limit bucket: write

Input

Field Type Required Description
id string (uuid) Yes Lead id from get_leads.
regenerate boolean No Write a new opener even when one is stored.
account string ≤ 64 chars No X account to act on, as @handle. Leave it out to use the connection’s default account.
dryRun boolean No Return exactly what would happen without doing it.
idempotencyKey string ≤ 200 chars No A unique key for this write. Repeating a call with the same key returns the first result instead of acting twice.
confirmCredits number 0–100000 No Xholic AI credits the user agreed to spend. Call first without it to get the quote, show the quote to the user, and pass the amount only after they say yes.
quoteId string ≤ 100 chars No The quoteId from the quote the user agreed to. Send it with confirmCredits.

leads.rate · write

Mark a lead as a FIT or NOT_FIT, with an optional short reason, so the Signals agent learns who to find. Pass verdict null to clear the rating. Call it only when the user asked for this in the conversation; never on your own initiative.

  • MCP tool: rate_lead. Loaded by default in MCP clients.
  • REST: POST /v1/leads/rate
  • CLI: xholic leads rate
  • Scope: write
  • Plan: Every plan, including the trial
  • Cost: Free.
  • Rate limit bucket: write

Input

Field Type Required Description
id string (uuid) Yes Lead id from get_leads.
verdict “FIT” \ “NOT_FIT” or null Yes
reason string ≤ 200 chars or null No
account string ≤ 64 chars No X account to act on, as @handle. Leave it out to use the connection’s default account.
dryRun boolean No Return exactly what would happen without doing it.
idempotencyKey string ≤ 200 chars No A unique key for this write. Repeating a call with the same key returns the first result instead of acting twice.