Skip to main content
Glama

Get Customer Profiles

get_customer_profiles
Read-onlyIdempotent

Returns the paginated list of customer profiles (aggregated order history, spending, ratings, and VIP/subscription status per customer) for the current company. Defaults to page 1 with up to 50 customers if page/limit are omitted. Supports searching by name, filtering by order type/customer type/order and driver rating, and sorting. Check the returned meta.totalPages and meta.nextPage: if meta.page is less than meta.totalPages and the user's request requires seeing every customer (not just a sample or summary), call this tool again with page=meta.nextPage to fetch the remaining pages, without asking the user to specify a page number themselves.

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": "get_customer_profiles"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoFree-text search over customer name
pageNoPage number, starting at 1
limitNoNumber of customers per page
sortTypeNoField to sort by
orderTypeNoRestrict to customers with delivery orders, pickup orders, or all orders
orderRatingNoRestrict to customers whose average food/order rating falls in this range
customerTypeNoRestrict to VIP customers, recently-first-ordered customers, or all customers
driverRatingNoRestrict to customers whose average driver rating falls in this range
sortingOrderNoSort direction

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish that this is a safe, read-only, idempotent operation, so the description focuses usefully on behavior beyond safety. It discloses default pagination behavior and the presence of meta.totalPages, meta.nextPage, and meta.page, which is valuable because there is no output schema.

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?

The description is front-loaded with the purpose and then gives filter, sorting, and pagination guidance in a logical order. The pagination instruction is somewhat long and repetitive, but every sentence contributes practical calling instructions.

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

Completeness4/5

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

For a nine-parameter read-only list tool with no output schema, the description provides enough behavioral context: what the records contain, how pagination defaults work, and how to continue through pages. Minor details such as default sorting behavior are omitted, but the main operational requirements are covered.

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 schema already documents each parameter. The description adds meaningful semantic context by stating the default page and limit values and by explaining how the pagination parameters relate to meta.nextPage during multi-page retrieval.

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?

The description states a specific verb and resource: it returns a paginated list of customer profiles for the current company. It also names the content of each profile (aggregated order history, spending, ratings, VIP/subscription status), making it clearly distinct from sibling order- and carrier-oriented tools.

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?

The description gives clear usage context for pagination: it explains default page behavior and explicitly says to keep following meta.nextPage when the user needs every customer rather than a sample. It does not name an alternative tool or state when not to use this tool, but the resource-specific scope makes alternatives less ambiguous.

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