Skip to main content
Glama

List Clients

list_clients
Read-onlyIdempotent

List / SELECT clients. This is the marketing selection engine: filter by q (name), tag (a grouping_id from the account's tags), state (2-letter), county (+ county_state), near_zip OR near_client (a client_id) with radius_miles for a geo radius, and has_email / has_phone (true to require one on file). Filters AND together. Each row has clients_id, name, city, state, zip, email, phone. Use the same filters with tag_clients, enroll_clients or make_call_list to act on the whole selection.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_clients"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoSearch text; with multiple words, all must match.
tagNoA tag's grouping_id (from your tags / client selection).
limitNoMaximum rows to return (integer; default varies, cap ~100).
stateNoUS state as a 2-letter code, e.g. MI.
countyNoA US county name (use with county_state).
offsetNoRows to skip, for paging (0-based integer).
near_zipNoA US ZIP code to search around (use with radius_miles).
has_emailNoIf true, only include records that have an email on file.
has_phoneNoIf true, only include records that have a phone on file.
near_clientNoA client id to search around geographically (use with radius_miles).
county_stateNoThe county's US state as a 2-letter code, e.g. MI.
radius_milesNoSearch radius in miles from the ZIP or client.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • addedInput schema / properties / county / description
      Added value: +"A US county name (use with county_state)."
    • addedInput schema / properties / county_state / description
      Added value: +"The county's US state as a 2-letter code, e.g. MI."
    • addedInput schema / properties / has_email / description
      Added value: +"If true, only include records that have an email on file."
    • addedInput schema / properties / has_phone / description
      Added value: +"If true, only include records that have a phone on file."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum rows to return (integer; default varies, cap ~100)."
    • addedInput schema / properties / near_client / description
      Added value: +"A client id to search around geographically (use with radius_miles)."
    • addedInput schema / properties / near_zip / description
      Added value: +"A US ZIP code to search around (use with radius_miles)."
    • addedInput schema / properties / offset / description
      Added value: +"Rows to skip, for paging (0-based integer)."
    • addedInput schema / properties / q / description
      Added value: +"Search text; with multiple words, all must match."
    • addedInput schema / properties / radius_miles / description
      Added value: +"Search radius in miles from the ZIP or client."
    • addedInput schema / properties / state / description
      Added value: +"US state as a 2-letter code, e.g. MI."
    • addedInput schema / properties / tag / description
      Added value: +"A tag's grouping_id (from your tags / client selection)."
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior. The description adds value beyond that by disclosing the return columns (clients_id, name, city, state, zip, email, phone) and the AND-combination semantics of filters, which annotations do not cover.

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?

Front-loaded with purpose, then filters, then return shape, then alternatives; every sentence carries information. The filter enumeration is dense and runs long, but no sentence is filler.

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

Completeness5/5

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

With 12 parameters, no output schema, and full schema coverage, the description fills the key gaps: the return columns and the filter-combination rule. Nothing an agent needs to call it correctly is missing, aside from an exact default limit, which is minor.

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 100%, so per-parameter meaning is already documented, but the description adds coupling semantics the schema states only loosely: county pairs with county_state, near_zip OR near_client pairs with radius_miles, and has_email/has_phone mean 'require one on file'. This goes beyond the flat schema properties.

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

Purpose5/5

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

States a specific verb and resource ('List / SELECT clients') and frames the tool as the marketing selection engine. It also names the sibling action tools (tag_clients, enroll_clients, make_call_list), so an agent can distinguish selection from action without opening schemas.

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

Usage Guidelines5/5

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

Explicitly directs the agent: use these filters here to select, then use the same filters with tag_clients, enroll_clients, or make_call_list to act on the whole selection. That is a clear when-to-use-this-versus-those routing rule.

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