Skip to main content
Glama

Customers

list_customers
Read-onlyIdempotent

List customers (clients/contacts) for an organization, or pass customer_id to read one customer. Pass search to match customer name (substring, case-insensitive). Paginated with limit (max 100, default 20) and offset; customer_id ignores search and pagination. organization_id defaults to your active organization.

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_customers"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNorows per page, capped at 100; 20 when omitted
offsetNorows to skip before this page; omit to start at the first row
searchNocase-insensitive substring match on customer name
customer_idNoread this one customer instead of listing; an id from an earlier list_customers call
organization_idNoorganization to act in, an id from get_me; omit to use your active organization

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNotool payload (API/composite/confirmation object); object, array, or primitive JSON
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / customer_id
      Added value: +{
      +  "description": "read this one customer instead of listing; an id from an earlier list_customers call",
      +  "type": "string"
      +}
    • changedInput schema / properties / limit / description
      Previous value: -"max 100, default 20"New value: +"rows per page, capped at 100; 20 when omitted"
    • addedInput schema / properties / limit / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / limit / minimum
      Added value: +-9007199254740991
    • changedInput schema / properties / offset / description
      Previous value: -"default 0"New value: +"rows to skip before this page; omit to start at the first row"
    • addedInput schema / properties / offset / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / offset / minimum
      Added value: +-9007199254740991
    • changedInput schema / properties / organization_id / description
      Previous value: -"defaults to your active organization"New value: +"organization to act in, an id from get_me; omit to use your active organization"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "description": "tool payload (API/composite/confirmation object); object, array, or primitive JSON"
      +    },
      +    "error": {
      +      "description": "when ok is false",
      +      "type": "string"
      +    },
      +    "ok": {
      +      "description": "true on success (including confirmation_required prompts)",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds useful behavior beyond that: default and maximum page size, substring case-insensitive matching, and the rule that customer_id overrides search and pagination. It says nothing about result ordering, total counts, or rate limits, so it is good but not exhaustive.

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?

Four dense sentences, front-loaded with the two operating modes before the filtering and pagination rules. Minor waste from restating limit/offset defaults that the schema already documents verbatim.

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?

All five parameters are optional and fully described in the schema, an output schema exists so return values need no explanation, and annotations cover safety. The description supplies the remaining decision-relevant facts: mode selection, pagination caps, and the active-organization default.

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 the baseline is 3; the description earns an extra point by stating an interaction the schema does not encode — that customer_id causes search and pagination to be ignored. The limit, offset, and search semantics it repeats are already documented per-parameter, so those add little.

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?

States a specific verb and resource (list customers, with the parenthetical 'clients/contacts' clarifying vocabulary) and covers both modes: list, or read one via customer_id. It does not explicitly differentiate itself from similarly named siblings such as list_quickbooks_customers or list_hubspot_contacts, so an agent must still infer which customer source it wants.

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

Usage Guidelines4/5

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

Gives clear mode-selection guidance: pass customer_id to read a single customer, pass search to filter by name, otherwise paginate. It also states precedence ('customer_id ignores search and pagination') and the organization_id default. It stops short of naming alternatives or when-not-to-use conditions, which keeps it below a 5.

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.