Skip to main content
Glama

Lyre Leads

Count saved leads

count_saved_leads
Read-onlyIdempotent

FREE and exact. Counts leads THIS ACCOUNT has already searched and saved, matching any combination of filters, with a breakdown of how many are enriched, have an email, have a contact email, or have been relevance-checked. Use it to size a job over data the account already owns before spending: "how many of my saved roofers have no CRM and a verified email". CRITICAL: this is NOT an inventory of what Lyre Leads can find, and a small result here means the account has not searched much yet, nothing more. Never report this number to a user as the amount of data available, and never use it to answer "how many X do you have" — call estimate_list for that.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityNoSubstring match on city
typeNoSubstring match on the Google Maps business category, e.g. "Dentist"
queryNoSubstring match on the search keyword that found the lead, e.g. "roofing"
countryNoSubstring match on country
has_cmsNotrue = a CMS was detected. false = enriched and none detected (custom/hand-built site).
has_crmNotrue = a CRM was detected. false = enriched and none detected. This is the classic "they have no CRM, sell them one" filter.
enrolledNotrue = enrolled in enrichment: re-checked about monthly at no charge. Every business a search found is enrolled. false = not enrolled (usually imported); enroll_leads enrolls it at two businesses per lead.
has_emailNotrue = has a business email. false = enriched and confirmed to have none (excludes never-checked rows).
relevanceNoOne of: yes, no, unclear. Did a model reading the business website judge it to be the kind of business this row's own search query asked for? Runs inside enrichment at no extra cost, and every verdict carries a verbatim quote from the page in relevance_evidence. Absent means never judged, which is not the same as "no". Filter on "yes" to drop the results Google Maps returned that are not the trade you searched for.
search_idNoRestrict to one batch from search_leads
max_ratingNoMaximum Google star rating. Use with min_reviews to find well-reviewed but poorly-rated businesses.
min_ratingNoMinimum Google star rating
has_websiteNotrue = has a website. false = enriched and confirmed to have none.
max_reviewsNoMaximum Google review count
min_reviewsNoMinimum Google review count
ai_crawler_accessNoOne of: open, partial, blocked, unknown. "blocked" = the site is invisible to AI search engines.
enrichment_statusNoOne of: enriched, pending, unverifiable, no_website, failed
has_contact_emailNotrue = a named contact address is on file.
email_verification_statusNoOne of: verified, catch_all, unknown, invalid

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources