clickmax-leads
Use when the user wants to create, find, deduplicate, inspect (including a contact's Raio-X), filter, verify the e-mail of, change the message opt-in of, export to a CSV file, or compare CRM leads and their commercial context inside Clickmax, or to check whether a contact import/export finished.
How do I install this agent skill?
npx skills add https://docs.clickmax.io --skill clickmax-leadsIs this agent skill safe to install?
No partner audit is available yet. Read the source before installing.
What does this agent skill do?
As tools abaixo aparecem com os nomes que o MCP da Clickmax registra. Se o seu cliente de IA prefixar nomes de tool (
mcp__<servidor>__,mcp_<servidor>_, ou outro), use o nome já prefixado que aparecer na sua lista de tools.
When this applies
Use this skill when the user wants lead discovery/inspection OR to create a lead: search/filter contacts, inspect one lead, check whether an email already exists, verify a contact's e-mail, find contacts with e-mail problems or fraud signals, create a new contact, compare lead-origin patterns, or pull a lead's payments/invoices/products.
Not this skill:
- tagging/classification ->
clickmax-tags - manual lists or dynamic segments ->
clickmax-list-segments - kanban pipelines/opportunity cards ->
clickmax-pipelines
Key assumptions
leads_filter_schemadescribes the legacy filter model; never use it to buildleads_searchfiltersleads_searchis the main entry for cohort discovery.filtersis required ([]= all leads), andperPageaccepts 1-100. Its onlysortByvalues areopportunities_asc/opportunities_desc; omittingsortByreturns leads NEWEST-FIRST bycreatedAt. So "the last N leads" usesfilters: [],page: 1,perPage: N(N <= 100) with nosortByleads_getis enriched commercial context, not just a flat row- payments, invoices, common products, and origin trees are lead-adjacent projections, not separate core entities
- tags, lists, and segments group leads; they do not replace the lead record itself
- lifecycle and temperature are mutable business signals; report them as current state, not immutable history
- e-mail status lives on the lead (
emailStatus,emailValidatedAt,emailInvalidReason) and comes back in BOTHleads_searchrows andleads_get:pending= not verified yet |valid|invalid(bounces; fix or exclude) |risky(deliverable but disposable/catch-all/role address; sending is still allowed, the user decides). Reading it costs nothing — do not verify just to read it validfrom the automatic background pass only confirms the DOMAIN;leads_validate_emailasks for a mailbox-level check. Editing a contact e-mail already resets it topendingand triggers a check by itselfleads_validate_emailis a PAID provider lookup (1 credit per address), synchronous, limited to 10 calls/min, and repeating it for the same lead within 1 hour just returns the stored verdict. It is for one specific contact, never a base-wide sweepleads_createneedsname+ at least one ofemail/telephone/instagram. Same e-mail = 409; same phone (normalized, BR mobile with/without 9th digit) = NO new contact: the oldest match's id comes back and onlytagIdsare applied to it, the rest of the request is dropped silently; Instagram is not deduplicated on createleads_xraymoney fields are redacted without sales permission (0 / empty / null), so 0 LTV there is not "never bought"; itssummaryis only a cached one (24h, per language), null is normalsuspectedFraud(+suspectedFraudReasonsemail/document) is a read-time warning of card testing, true only when BOTH the e-mail has no relation to the name AND the document is suspect (empty, all zeros, or not 11/14 digits). Nothing is stored or blocked; fixing the e-mail or document clears it. It is a filter field like any other, so it also works in segments
Thought process
- Decide whether the user needs one lead, a filtered cohort, or supporting aggregates.
- If the user describes filters vaguely, inspect the filter schema first.
- Use
leads_searchfor cohorts andleads_getfor one concrete lead. - Pull supporting projections only when they materially answer the request.
Execute guide
- For cohort discovery, follow the
leads_searchinput contract; do not translate fields from the legacy filter-schema operation. - Search cohorts with
leads_search, passing the requiredfiltersarray ([]when unfiltered) plus optional paging and sort fields. Use this for discovery, comparison, and broad CRM filtering. - Inspect one known lead with
leads_get, passing the lead id. Treat this as the main enriched lead view. - Add commercial context with
leads_payments,leads_invoices, andleads_common_productsonly when payments, billing status, or bought-product patterns materially change the answer. Unlike its siblings,leads_common_productsrequiresfilter(not optional) — always pass a filter, even a broad one. - Duplicate check before creating:
leads_check_duplicateswith every identifier you have (e-mail, phone, Instagram) → one oldest match per channel. A match = offer to use/update that contact instead of creating.leads_exists_by_emailonly answers yes/no for an e-mail. - "Raio-X" / "is this contact ready to buy, when do I reach them":
leads_xray(intent level + top 3 signals, LTV/ticket/pending, channels with opt-in and last reply, best 2h slot in São Paulo time, 14-day activity). Useleads_contextinstead when full history or pagination is needed. - Opt-in / "para de mandar mensagem pra ele" / "ele pediu pra sair":
leads_message_preferences_updatewithleadId+ the channels to change (whatsapp,email,sms,instagram,telegram,voice;false= stop receiving broadcasts and automations). Read the current state of all six channels first withleads_get(messagePreferences; the X-ray has no SMS/voice) and state which channels will flip before calling. "Sair de tudo" / "todas" = all sixfalse; a request made on one channel without saying "all" = that channel only. Set a channel back totrueonly when the seller says the contact asked to come back — never to unblock a send. "Tira da lista X" = list membership, not this tool (clickmax-list-segments); ask which one when unclear. Opting out does not delete the contact. - CSV / spreadsheet / file of contacts ("gera um CSV com quem tem a tag X", "exporta a lista Y"):
leads_export_csvwith ONE offilters(tag = onetagIditem),listIdorsegmentId; it returns the downloadurl. The user chooses the fields: map the ones they name tocolumns(contact custom fields =cf:<id>with ids fromcustom_fields_listentityType: "leads"); none named → ask which fields they want, offering the default set (name, email, phone, city, state, tags, origin, creation date) as the quick answer. Hand thaturlto the user as the download link, with thecontactscount. Stillpending/active→leads_bulk_jobs_historywithjobIds: [jobId]untilresult.meta.output.urlexists. Never assemble the CSV yourself fromleads_searchpages: it is slower, capped by paging and leaves the user without a file to download. - "Did my import/export finish?":
leads_bulk_jobs_history(newest first;jobNamecrm.leads.import-csv/crm.leads.export-csv…). Import counts are inresult.meta.details(created/updated/duplicated); an export's file link is inresult.meta.output.url. Starting an import needs a file upload in the app — not possible here. - E-mail health of a cohort: filter
leads_searchwith a filter item on fieldemailStatus, operatorequals,valueString=invalid|risky|pending|valid(addnegation: truefor "anything but"). Fraud signals: a filter item on fieldsuspectedFraud, operatorequals,valueBool= true. Report the count (meta.countItens) before rows. - Verify one contact's e-mail with
leads_validate_email, passing the lead id: it returns the newemailStatusright away. Apendingresult after a failure (provider error / inconclusive) is not a verdict — the automatic job retries later; do not retry in a loop. A lead without e-mail cannot be verified. - "How many contacts do I have in total?" ->
analytics_resource_counts(contacts, merged contacts excluded) is one cheap call; useleads_searchmeta.countItenswhen the count must respect filters. - Create one contact with
leads_create—nameplus at least one ofemail/telephone/instagram; runleads_check_duplicatesfirst. It also acceptstagIds/customFieldValuesinline, so a lead can be created pre-tagged/pre-classified in the SAME call instead of a separate tagging step afterward. It returns{ leadId }(for a phone match, the EXISTING contact's id). To seed a pipeline, create each contact here then add them as opportunity cards viaclickmax-pipelines(cards_createneeds the returned lead ids). For several contacts, callleads_createonce per contact. - Use
leads_origins,leads_sub_origins, andleads_origins_treefor source taxonomy and breakdown questions. - Use
leads_payments_utm_autocompletewhen the user needs help discovering UTM values before filtering or diagnosing acquisition patterns. - Preferred order: cohort question ->
leads_search; single lead question ->leads_get-> supporting projections only if needed; origin or UTM exploration -> origin or UTM helper first -> lead search only when matching contacts are also required.
Report
- Start with what was inspected: one lead, cohort, or origin/UTM diagnostic.
- For one lead: summarize identity, status/context, and only the relevant commercial facts.
- For cohorts: summarize count + the most relevant breakdowns before dumping rows.
- Cap long result sets and show
+N morewhen the cohort is too broad. - Follow-up actions are opt-in only.
Warnings
- Do not guess filter fields or operators.
- Do not treat lead payments or invoices as if they were the lead record itself.
leads_exists_by_emailanswers existence, not ownership or enrichment.- Never report a
leads_createcall as "contact created" without checking duplicates: a phone match returns an old contact id silently. - Do not present
suspectedFraudas a verdict on the person: it is a heuristic signal, and a missing document alone does not trigger it.
Anti-patterns
- Asking the user for workspace id.
- Using raw origins/UTM helpers as a substitute for lead search.
- Returning every field when the user only asked for one operational answer.
- Answering a CSV request with a file path or "export it from the screen" instead of the
urlofleads_export_csv. - Calling
leads_validate_emailon many leads to "clean the base" (paid, rate-limited) or just to read a status thatleads_getalready returns.
Clickmax skill revision: 23f2b5440092
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/docs.clickmax.io/clickmax-leads">View clickmax-leads on skillZs</a>