Skip to main content
Glama

Sergio by Serviche

Read the contacts table

query_contacts
Idempotent

Reads one page of the Contacts table and its exact count, as the Contacts page does, using the same filter tree: optional scope, search, match, filters, sort, offset, limit, and keyset paging (after / before / fromEnd). idsOnly: true answers every matching id (up to the select-all cap) instead of rows. Writes nothing. This is read-only, so idempotency_key only marks the retry.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "idempotency_key": "<idempotency_key>"
    },
    "name": "query_contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo
afterNo
limitNo
matchNoall joins the filters with and (default), any with or.
scopeNoWhich contacts: active (default, every live contact), archived (archived and spam), or one of the page's built-in views (clients, leads, noname), which add that view's own conditions.
beforeNo
offsetNo
searchNo
filtersNoThe Contacts page's Filter rows. Each filter is { field, op, ...payload }. Fields and their ops: type: is_any_of|is_none_of (values client|lead|staff|applicant|other|spam|system); phone: contains|not_contains|is_empty|is_not_empty; email: contains|not_contains|is_empty|is_not_empty; company: contains|not_contains|is_empty|is_not_empty; address: contains|not_contains|is_empty|is_not_empty; service_type: is_any_of|is_none_of|is_empty|is_not_empty; home_size: is_any_of|is_none_of|is_empty|is_not_empty; bedrooms: is_any_of|is_none_of|is_empty|is_not_empty; bathrooms: is_any_of|is_none_of|is_empty|is_not_empty; preferred_cleaner: is_any_of|is_none_of|is_empty|is_not_empty; communication_preference: is_any_of|is_none_of|is_empty|is_not_empty; pets: is_any_of (values yes|no); vip: is_any_of (values yes|no); custom_field: is_any_of|is_none_of|contains|not_contains|is_empty|is_not_empty (values with fieldKey naming the field); service_category: is_any_of|is_none_of|is_empty|is_not_empty (values residential|commercial|both); lead_source: is_any_of|is_none_of|is_empty|is_not_empty (values thumbtack|google_lsa|yelp|bark|website_form|google_business_profile|referral|booking_software|direct|web_chat|facebook|instagram|other); list: is_any_of|is_none_of|is_empty|is_not_empty (values list ids); tag: is_any_of|is_none_of|is_empty|is_not_empty (values tag ids); notes: contains|not_contains|is_empty|is_not_empty; assignee: is_any_of|is_none_of; missing: is_any_of (values name|phone|email|company); date_added: in_last_days|more_than_days_ago|between; last_contact: in_last_days|more_than_days_ago|between|is_empty|is_not_empty; last_message: in_last_days|more_than_days_ago|between; campaign: is_any_of|is_none_of|is_empty|is_not_empty (values campaign ids); opted_out: is_any_of|is_none_of|is_empty|is_not_empty (values texts|emails|promos|email_promos|everything); lead_status: is_any_of|is_none_of|is_empty|is_not_empty (values new|contacted|in_campaign|in_discussion|quote_sent|closed|lost); lead_outcome: is_any_of|is_none_of|is_empty|is_not_empty (values open|booked|lost|cold|missed|not_a_lead|client); lead_closed: in_last_days|more_than_days_ago|between|is_empty|is_not_empty; provider: is_any_of|is_none_of|is_empty|is_not_empty (values any_staff|any_contractor|name:<name>); booking_count: eq|gt|lt|at_least|at_most|between; last_booking: in_last_days|more_than_days_ago|between|is_empty|is_not_empty; next_booking: in_next_days|between|is_empty|is_not_empty; first_booking: more_than_days_ago|in_last_days|between|is_empty|is_not_empty; frequency: is_any_of (values recurring|one_time); schedule: is_any_of|is_none_of|is_empty|is_not_empty (values weekly|every_2_weeks|every_3_weeks|every_4_weeks|every_6_weeks|every_8_weeks|custom_weekly|other); recurring_since: more_than_days_ago|in_last_days|between|is_empty|is_not_empty; last_service: is_any_of|is_none_of|is_empty|is_not_empty; last_booking_price: at_least|at_most|between|is_empty|is_not_empty; lifetime_value: gt|lt|at_least|at_most|between|is_empty|is_not_empty. Payload per op: is_any_of -> values: [...]; is_none_of -> values: [...]; contains -> text; not_contains -> text; in_last_days -> days; more_than_days_ago -> days; in_next_days -> days; between -> from+to (YYYY-MM-DD) for dates, min+max for numbers; eq -> number; gt -> number; lt -> number; at_least -> number; at_most -> number; is_empty -> nothing; is_not_empty -> nothing. Sort is a list of { field, dir: asc|desc } with field one of name|type|phone|email|company|assignee|last_contact|date_added|booking_count|last_booking|next_booking|lifetime_value|provider|service_category|lead_source.
fromEndNo
idsOnlyNo
idempotency_keyYesYour id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / filters / description
      Previous value: -"The Contacts page's Filter rows. Each filter is { field, op, ...payload }. Fields and their ops: type: is_any_of|is_none_of (values client|lead|staff|applicant|other|spam|system); phone: contains|not_contains|is_empty|is_not_empty; email: contains|not_contains|is_empty|is_not_empty; company: contains|not_contains|is_empty|is_not_empty; address: contains|not_contains|is_empty|is_not_empty; service_type: is_any_of|is_none_of|is_empty|is_not_empty; home_size: is_any_of|is_none_of|is_empty|is_not_empty; bedrooms: is_any_of|is_none_of|is_empty|is_not_empty; bathrooms: is_any_of|is_none_of|is_empty|is_not_empty; preferred_cleaner: is_any_of|is_none_of|is_empty|is_not_empty; communication_preference: is_any_of|is_none_of|is_empty|is_not_empty; pets: is_any_of (values yes|no); vip: is_any_of (values yes|no); custom_field: is_any_of|is_none_of|contains|not_contains|is_empty|is_not_empty (values with fieldKey naming the field); service_category: is_any_of|is_none_of|is_empty|is_not_empty (values residential|commercial|both); lead_source: is_any_of|is_none_of|is_empty|is_not_empty (values thumbtack|google_lsa|yelp|bark|website_form|google_business_profile|referral|booking_software|direct|web_chat|facebook|other); list: is_any_of|is_none_of|is_empty|is_not_empty (values list ids); tag: is_any_of|is_none_of|is_empty|is_not_empty (values tag ids); notes: contains|not_contains|is_empty|is_not_empty; assignee: is_any_of|is_none_of; missing: is_any_of (values name|phone|email|company); date_added: in_last_days|more_than_days_ago|between; last_contact: in_last_days|more_than_days_ago|between|is_empty|is_not_empty; last_message: in_last_days|more_than_days_ago|between; campaign: is_any_of|is_none_of|is_empty|is_not_empty (values campaign ids); opted_out: is_any_of|is_none_of|is_empty|is_not_empty (values texts|emails|promos|email_promos|everything); lead_status: is_any_of|is_none_of|is_empty|is_not_empty (values new|contacted|in_campaign|in_discussion|quote_sent|closed|lost); lead_outcome: is_any_of|is_none_of|is_empty|is_not_empty (values open|booked|lost|cold|missed|not_a_lead|client); lead_closed: in_last_days|more_than_days_ago|between|is_empty|is_not_empty; provider: is_any_of|is_none_of|is_empty|is_not_empty (values any_staff|any_contractor|name:<name>); booking_count: eq|gt|lt|at_least|at_most|between; last_booking: in_last_days|more_than_days_ago|between|is_empty|is_not_empty; next_booking: in_next_days|between|is_empty|is_not_empty; first_booking: more_than_days_ago|in_last_days|between|is_empty|is_not_empty; frequency: is_any_of (values recurring|one_time); schedule: is_any_of|is_none_of|is_empty|is_not_empty (values weekly|every_2_weeks|every_3_weeks|every_4_weeks|every_6_weeks|every_8_weeks|custom_weekly|other); recurring_since: more_than_days_ago|in_last_days|between|is_empty|is_not_empty; last_service: is_any_of|is_none_of|is_empty|is_not_empty; last_booking_price: at_least|at_most|between|is_empty|is_not_empty; lifetime_value: gt|lt|at_least|at_most|between|is_empty|is_not_empty. Payload per op: is_any_of -> values: [...]; is_none_of -> values: [...]; contains -> text; not_contains -> text; in_last_days -> days; more_than_days_ago -> days; in_next_days -> days; between -> from+to (YYYY-MM-DD) for dates, min+max for numbers; eq -> number; gt -> number; lt -> number; at_least -> number; at_most -> number; is_empty -> nothing; is_not_empty -> nothing. Sort is a list of { field, dir: asc|desc } with field one of name|type|phone|email|company|assignee|last_contact|date_added|booking_count|last_booking|next_booking|lifetime_value|provider|service_category|lead_source."New value: +"The Contacts page's Filter rows. Each filter is { field, op, ...payload }. Fields and their ops: type: is_any_of|is_none_of (values client|lead|staff|applicant|other|spam|system); phone: contains|not_contains|is_empty|is_not_empty; email: contains|not_contains|is_empty|is_not_empty; company: contains|not_contains|is_empty|is_not_empty; address: contains|not_contains|is_empty|is_not_empty; service_type: is_any_of|is_none_of|is_empty|is_not_empty; home_size: is_any_of|is_none_of|is_empty|is_not_empty; bedrooms: is_any_of|is_none_of|is_empty|is_not_empty; bathrooms: is_any_of|is_none_of|is_empty|is_not_empty; preferred_cleaner: is_any_of|is_none_of|is_empty|is_not_empty; communication_preference: is_any_of|is_none_of|is_empty|is_not_empty; pets: is_any_of (values yes|no); vip: is_any_of (values yes|no); custom_field: is_any_of|is_none_of|contains|not_contains|is_empty|is_not_empty (values with fieldKey naming the field); service_category: is_any_of|is_none_of|is_empty|is_not_empty (values residential|commercial|both); lead_source: is_any_of|is_none_of|is_empty|is_not_empty (values thumbtack|google_lsa|yelp|bark|website_form|google_business_profile|referral|booking_software|direct|web_chat|facebook|instagram|other); list: is_any_of|is_none_of|is_empty|is_not_empty (values list ids); tag: is_any_of|is_none_of|is_empty|is_not_empty (values tag ids); notes: contains|not_contains|is_empty|is_not_empty; assignee: is_any_of|is_none_of; missing: is_any_of (values name|phone|email|company); date_added: in_last_days|more_than_days_ago|between; last_contact: in_last_days|more_than_days_ago|between|is_empty|is_not_empty; last_message: in_last_days|more_than_days_ago|between; campaign: is_any_of|is_none_of|is_empty|is_not_empty (values campaign ids); opted_out: is_any_of|is_none_of|is_empty|is_not_empty (values texts|emails|promos|email_promos|everything); lead_status: is_any_of|is_none_of|is_empty|is_not_empty (values new|contacted|in_campaign|in_discussion|quote_sent|closed|lost); lead_outcome: is_any_of|is_none_of|is_empty|is_not_empty (values open|booked|lost|cold|missed|not_a_lead|client); lead_closed: in_last_days|more_than_days_ago|between|is_empty|is_not_empty; provider: is_any_of|is_none_of|is_empty|is_not_empty (values any_staff|any_contractor|name:<name>); booking_count: eq|gt|lt|at_least|at_most|between; last_booking: in_last_days|more_than_days_ago|between|is_empty|is_not_empty; next_booking: in_next_days|between|is_empty|is_not_empty; first_booking: more_than_days_ago|in_last_days|between|is_empty|is_not_empty; frequency: is_any_of (values recurring|one_time); schedule: is_any_of|is_none_of|is_empty|is_not_empty (values weekly|every_2_weeks|every_3_weeks|every_4_weeks|every_6_weeks|every_8_weeks|custom_weekly|other); recurring_since: more_than_days_ago|in_last_days|between|is_empty|is_not_empty; last_service: is_any_of|is_none_of|is_empty|is_not_empty; last_booking_price: at_least|at_most|between|is_empty|is_not_empty; lifetime_value: gt|lt|at_least|at_most|between|is_empty|is_not_empty. Payload per op: is_any_of -> values: [...]; is_none_of -> values: [...]; contains -> text; not_contains -> text; in_last_days -> days; more_than_days_ago -> days; in_next_days -> days; between -> from+to (YYYY-MM-DD) for dates, min+max for numbers; eq -> number; gt -> number; lt -> number; at_least -> number; at_most -> number; is_empty -> nothing; is_not_empty -> nothing. Sort is a list of { field, dir: asc|desc } with field one of name|type|phone|email|company|assignee|last_contact|date_added|booking_count|last_booking|next_booking|lifetime_value|provider|service_category|lead_source."
  2. Changed1 schema field changed
    • changedInput schema / properties / filters / description
      Previous value: -"The Contacts page's Filter rows. Each filter is { field, op, ...payload }. Fields and their ops: type: is_any_of|is_none_of (values client|lead|staff|applicant|other|spam|system); phone: contains|not_contains|is_empty|is_not_empty; email: contains|not_contains|is_empty|is_not_empty; company: contains|not_contains|is_empty|is_not_empty; address: contains|not_contains|is_empty|is_not_empty; service_type: is_any_of|is_none_of|is_empty|is_not_empty; home_size: is_any_of|is_none_of|is_empty|is_not_empty; bedrooms: is_any_of|is_none_of|is_empty|is_not_empty; bathrooms: is_any_of|is_none_of|is_empty|is_not_empty; preferred_cleaner: is_any_of|is_none_of|is_empty|is_not_empty; communication_preference: is_any_of|is_none_of|is_empty|is_not_empty; pets: is_any_of (values yes|no); vip: is_any_of (values yes|no); custom_field: is_any_of|is_none_of|contains|not_contains|is_empty|is_not_empty (values with fieldKey naming the field); service_category: is_any_of|is_none_of|is_empty|is_not_empty (values residential|commercial|both); lead_source: is_any_of|is_none_of|is_empty|is_not_empty (values thumbtack|google_lsa|yelp|bark|website_form|google_business_profile|referral|booking_software|direct|web_chat|other); list: is_any_of|is_none_of|is_empty|is_not_empty (values list ids); tag: is_any_of|is_none_of|is_empty|is_not_empty (values tag ids); notes: contains|not_contains|is_empty|is_not_empty; assignee: is_any_of|is_none_of; missing: is_any_of (values name|phone|email|company); date_added: in_last_days|more_than_days_ago|between; last_contact: in_last_days|more_than_days_ago|between|is_empty|is_not_empty; last_message: in_last_days|more_than_days_ago|between; campaign: is_any_of|is_none_of|is_empty|is_not_empty (values campaign ids); opted_out: is_any_of|is_none_of|is_empty|is_not_empty (values texts|emails|promos|email_promos|everything); lead_status: is_any_of|is_none_of|is_empty|is_not_empty (values new|contacted|in_campaign|in_discussion|quote_sent|closed|lost); lead_outcome: is_any_of|is_none_of|is_empty|is_not_empty (values open|booked|lost|cold|missed|not_a_lead|client); lead_closed: in_last_days|more_than_days_ago|between|is_empty|is_not_empty; provider: is_any_of|is_none_of|is_empty|is_not_empty (values any_staff|any_contractor|name:<name>); booking_count: eq|gt|lt|at_least|at_most|between; last_booking: in_last_days|more_than_days_ago|between|is_empty|is_not_empty; next_booking: in_next_days|between|is_empty|is_not_empty; first_booking: more_than_days_ago|in_last_days|between|is_empty|is_not_empty; frequency: is_any_of (values recurring|one_time); schedule: is_any_of|is_none_of|is_empty|is_not_empty (values weekly|every_2_weeks|every_3_weeks|every_4_weeks|every_6_weeks|every_8_weeks|custom_weekly|other); recurring_since: more_than_days_ago|in_last_days|between|is_empty|is_not_empty; last_service: is_any_of|is_none_of|is_empty|is_not_empty; last_booking_price: at_least|at_most|between|is_empty|is_not_empty; lifetime_value: gt|lt|at_least|at_most|between|is_empty|is_not_empty. Payload per op: is_any_of -> values: [...]; is_none_of -> values: [...]; contains -> text; not_contains -> text; in_last_days -> days; more_than_days_ago -> days; in_next_days -> days; between -> from+to (YYYY-MM-DD) for dates, min+max for numbers; eq -> number; gt -> number; lt -> number; at_least -> number; at_most -> number; is_empty -> nothing; is_not_empty -> nothing. Sort is a list of { field, dir: asc|desc } with field one of name|type|phone|email|company|assignee|last_contact|date_added|booking_count|last_booking|next_booking|lifetime_value|provider|service_category|lead_source."New value: +"The Contacts page's Filter rows. Each filter is { field, op, ...payload }. Fields and their ops: type: is_any_of|is_none_of (values client|lead|staff|applicant|other|spam|system); phone: contains|not_contains|is_empty|is_not_empty; email: contains|not_contains|is_empty|is_not_empty; company: contains|not_contains|is_empty|is_not_empty; address: contains|not_contains|is_empty|is_not_empty; service_type: is_any_of|is_none_of|is_empty|is_not_empty; home_size: is_any_of|is_none_of|is_empty|is_not_empty; bedrooms: is_any_of|is_none_of|is_empty|is_not_empty; bathrooms: is_any_of|is_none_of|is_empty|is_not_empty; preferred_cleaner: is_any_of|is_none_of|is_empty|is_not_empty; communication_preference: is_any_of|is_none_of|is_empty|is_not_empty; pets: is_any_of (values yes|no); vip: is_any_of (values yes|no); custom_field: is_any_of|is_none_of|contains|not_contains|is_empty|is_not_empty (values with fieldKey naming the field); service_category: is_any_of|is_none_of|is_empty|is_not_empty (values residential|commercial|both); lead_source: is_any_of|is_none_of|is_empty|is_not_empty (values thumbtack|google_lsa|yelp|bark|website_form|google_business_profile|referral|booking_software|direct|web_chat|facebook|other); list: is_any_of|is_none_of|is_empty|is_not_empty (values list ids); tag: is_any_of|is_none_of|is_empty|is_not_empty (values tag ids); notes: contains|not_contains|is_empty|is_not_empty; assignee: is_any_of|is_none_of; missing: is_any_of (values name|phone|email|company); date_added: in_last_days|more_than_days_ago|between; last_contact: in_last_days|more_than_days_ago|between|is_empty|is_not_empty; last_message: in_last_days|more_than_days_ago|between; campaign: is_any_of|is_none_of|is_empty|is_not_empty (values campaign ids); opted_out: is_any_of|is_none_of|is_empty|is_not_empty (values texts|emails|promos|email_promos|everything); lead_status: is_any_of|is_none_of|is_empty|is_not_empty (values new|contacted|in_campaign|in_discussion|quote_sent|closed|lost); lead_outcome: is_any_of|is_none_of|is_empty|is_not_empty (values open|booked|lost|cold|missed|not_a_lead|client); lead_closed: in_last_days|more_than_days_ago|between|is_empty|is_not_empty; provider: is_any_of|is_none_of|is_empty|is_not_empty (values any_staff|any_contractor|name:<name>); booking_count: eq|gt|lt|at_least|at_most|between; last_booking: in_last_days|more_than_days_ago|between|is_empty|is_not_empty; next_booking: in_next_days|between|is_empty|is_not_empty; first_booking: more_than_days_ago|in_last_days|between|is_empty|is_not_empty; frequency: is_any_of (values recurring|one_time); schedule: is_any_of|is_none_of|is_empty|is_not_empty (values weekly|every_2_weeks|every_3_weeks|every_4_weeks|every_6_weeks|every_8_weeks|custom_weekly|other); recurring_since: more_than_days_ago|in_last_days|between|is_empty|is_not_empty; last_service: is_any_of|is_none_of|is_empty|is_not_empty; last_booking_price: at_least|at_most|between|is_empty|is_not_empty; lifetime_value: gt|lt|at_least|at_most|between|is_empty|is_not_empty. Payload per op: is_any_of -> values: [...]; is_none_of -> values: [...]; contains -> text; not_contains -> text; in_last_days -> days; more_than_days_ago -> days; in_next_days -> days; between -> from+to (YYYY-MM-DD) for dates, min+max for numbers; eq -> number; gt -> number; lt -> number; at_least -> number; at_most -> number; is_empty -> nothing; is_not_empty -> nothing. Sort is a list of { field, dir: asc|desc } with field one of name|type|phone|email|company|assignee|last_contact|date_added|booking_count|last_booking|next_booking|lifetime_value|provider|service_category|lead_source."
  3. Changed15 schema fields changed
    • removedInput schema / properties / filters / additionalProperties
      Removed value: -{}
    • addedInput schema / properties / filters / description
      Added value: +"The Contacts page's Filter rows. Each filter is { field, op, ...payload }. Fields and their ops: type: is_any_of|is_none_of (values client|lead|staff|applicant|other|spam|system); phone: contains|not_contains|is_empty|is_not_empty; email: contains|not_contains|is_empty|is_not_empty; company: contains|not_contains|is_empty|is_not_empty; address: contains|not_contains|is_empty|is_not_empty; service_type: is_any_of|is_none_of|is_empty|is_not_empty; home_size: is_any_of|is_none_of|is_empty|is_not_empty; bedrooms: is_any_of|is_none_of|is_empty|is_not_empty; bathrooms: is_any_of|is_none_of|is_empty|is_not_empty; preferred_cleaner: is_any_of|is_none_of|is_empty|is_not_empty; communication_preference: is_any_of|is_none_of|is_empty|is_not_empty; pets: is_any_of (values yes|no); vip: is_any_of (values yes|no); custom_field: is_any_of|is_none_of|contains|not_contains|is_empty|is_not_empty (values with fieldKey naming the field); service_category: is_any_of|is_none_of|is_empty|is_not_empty (values residential|commercial|both); lead_source: is_any_of|is_none_of|is_empty|is_not_empty (values thumbtack|google_lsa|yelp|bark|website_form|google_business_profile|referral|booking_software|direct|web_chat|other); list: is_any_of|is_none_of|is_empty|is_not_empty (values list ids); tag: is_any_of|is_none_of|is_empty|is_not_empty (values tag ids); notes: contains|not_contains|is_empty|is_not_empty; assignee: is_any_of|is_none_of; missing: is_any_of (values name|phone|email|company); date_added: in_last_days|more_than_days_ago|between; last_contact: in_last_days|more_than_days_ago|between|is_empty|is_not_empty; last_message: in_last_days|more_than_days_ago|between; campaign: is_any_of|is_none_of|is_empty|is_not_empty (values campaign ids); opted_out: is_any_of|is_none_of|is_empty|is_not_empty (values texts|emails|promos|email_promos|everything); lead_status: is_any_of|is_none_of|is_empty|is_not_empty (values new|contacted|in_campaign|in_discussion|quote_sent|closed|lost); lead_outcome: is_any_of|is_none_of|is_empty|is_not_empty (values open|booked|lost|cold|missed|not_a_lead|client); lead_closed: in_last_days|more_than_days_ago|between|is_empty|is_not_empty; provider: is_any_of|is_none_of|is_empty|is_not_empty (values any_staff|any_contractor|name:<name>); booking_count: eq|gt|lt|at_least|at_most|between; last_booking: in_last_days|more_than_days_ago|between|is_empty|is_not_empty; next_booking: in_next_days|between|is_empty|is_not_empty; first_booking: more_than_days_ago|in_last_days|between|is_empty|is_not_empty; frequency: is_any_of (values recurring|one_time); schedule: is_any_of|is_none_of|is_empty|is_not_empty (values weekly|every_2_weeks|every_3_weeks|every_4_weeks|every_6_weeks|every_8_weeks|custom_weekly|other); recurring_since: more_than_days_ago|in_last_days|between|is_empty|is_not_empty; last_service: is_any_of|is_none_of|is_empty|is_not_empty; last_booking_price: at_least|at_most|between|is_empty|is_not_empty; lifetime_value: gt|lt|at_least|at_most|between|is_empty|is_not_empty. Payload per op: is_any_of -> values: [...]; is_none_of -> values: [...]; contains -> text; not_contains -> text; in_last_days -> days; more_than_days_ago -> days; in_next_days -> days; between -> from+to (YYYY-MM-DD) for dates, min+max for numbers; eq -> number; gt -> number; lt -> number; at_least -> number; at_most -> number; is_empty -> nothing; is_not_empty -> nothing. Sort is a list of { field, dir: asc|desc } with field one of name|type|phone|email|company|assignee|last_contact|date_added|booking_count|last_booking|next_booking|lifetime_value|provider|service_category|lead_source."
    • addedInput schema / properties / filters / items
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "days": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "field": {
      +      "enum": [
      +        "type",
      +        "phone",
      +        "email",
      +        "company",
      +        "address",
      +        "service_type",
      +        "home_size",
      +        "bedrooms",
      +        "bathrooms",
      +        "preferred_cleaner",
      +        "communication_preference",
      +        "pets",
      +        "vip",
      +        "custom_field",
      +        "service_category",
      +        "lead_source",
      +        "list",
      +        "tag",
      +        "notes",
      +        "assignee",
      +        "missing",
      +        "date_added",
      +        "last_contact",
      +        "last_message",
      +        "campaign",
      +        "opted_out",
      +        "lead_status",
      +        "lead_outcome",
      +        "lead_closed",
      +        "provider",
      +        "booking_count",
      +        "last_booking",
      +        "next_booking",
      +        "first_booking",
      +        "frequency",
      +        "schedule",
      +        "recurring_since",
      +        "last_service",
      +        "last_booking_price",
      +        "lifetime_value"
      +      ],
      +      "type": "string"
      +    },
      +    "fieldKey": {
      +      "maxLength": 80,
      +      "type": "string"
      +    },
      +    "from": {
      +      "maxLength": 10,
      +      "type": "string"
      +    },
      +    "max": {
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "min": {
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "number": {
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "op": {
      +      "enum": [
      +        "is_any_of",
      +        "is_none_of",
      +        "contains",
      +        "not_contains",
      +        "in_last_days",
      +        "more_than_days_ago",
      +        "in_next_days",
      +        "between",
      +        "eq",
      +        "gt",
      +        "lt",
      +        "at_least",
      +        "at_most",
      +        "is_empty",
      +        "is_not_empty"
      +      ],
      +      "type": "string"
      +    },
      +    "text": {
      +      "maxLength": 200,
      +      "type": "string"
      +    },
      +    "to": {
      +      "maxLength": 10,
      +      "type": "string"
      +    },
      +    "values": {
      +      "items": {
      +        "maxLength": 200,
      +        "type": "string"
      +      },
      +      "maxItems": 100,
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "field",
      +    "op"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / filters / maxItems
      Added value: +20
    • removedInput schema / properties / filters / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • changedInput schema / properties / filters / type
      Previous value: -"object"New value: +"array"
    • addedInput schema / properties / match / description
      Added value: +"all joins the filters with and (default), any with or."
    • addedInput schema / properties / match / enum
      Added value: +[
      +  "all",
      +  "any"
      +]
    • addedInput schema / properties / match / type
      Added value: +"string"
    • addedInput schema / properties / scope / description
      Added value: +"Which contacts: active (default, every live contact), archived (archived and spam), or one of the page's built-in views (clients, leads, noname), which add that view's own conditions."
    • addedInput schema / properties / scope / enum
      Added value: +[
      +  "active",
      +  "archived",
      +  "all",
      +  "clients",
      +  "leads",
      +  "noname"
      +]
    • removedInput schema / properties / scope / maxLength
      Removed value: -40
    • addedInput schema / properties / sort / items
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "dir": {
      +      "enum": [
      +        "asc",
      +        "desc"
      +      ],
      +      "type": "string"
      +    },
      +    "field": {
      +      "enum": [
      +        "name",
      +        "type",
      +        "phone",
      +        "email",
      +        "company",
      +        "assignee",
      +        "last_contact",
      +        "date_added",
      +        "booking_count",
      +        "last_booking",
      +        "next_booking",
      +        "lifetime_value",
      +        "provider",
      +        "service_category",
      +        "lead_source"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "field",
      +    "dir"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / sort / maxItems
      Added value: +3
    • addedInput schema / properties / sort / type
      Added value: +"array"
  4. Added

TDQS

B3.1/5.0
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description states "Writes nothing. This is read-only", but the supplied annotations declare readOnlyHint=false, which asserts the opposite. That direct conflict is exactly what the contradiction rule targets, so the score is 1 despite otherwise useful disclosure about idempotency_key only marking a retry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense paragraph, but it is front-loaded with the core read operation and the mode-switching detail (idsOnly, paging) before the write/idempotency note. Every clause carries information for a 12-parameter tool; wording like "as the Contacts page does" is slightly decorative.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex, 12-parameter query tool with no output schema, the definition covers inputs and return cardinality (one page plus exact count) but never sketches the returned row shape or how the count is delivered. An agent knows what to send but not fully what it will get back.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33%, so the description must compensate, and it does by enumerating the full parameter set (scope, search, match, filters, sort, offset, limit, after/before/fromEnd, idsOnly) and explaining the two modes of keyset paging. It adds real meaning for idsOnly, which has no schema description at all, including the select-all cap behavior.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ("Reads one page of the Contacts table and its exact count") and scopes it to the page's filter tree, so an agent can distinguish it from edit_contacts or other write tools. Sibling differentiation is implied by "Writes nothing" rather than stated against a named alternative like query or read, which keeps it short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied through the feature list (paging via offset/limit or keyset, idsOnly for select-all) but there is no explicit "use this when..." or an exclusion pointing to the non-paged query siblings. An agent can infer the right context, but must reason about it rather than read it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources