Skip to main content
Glama
respanai

Respan MCP Server

Official
by respanai

list_customers

Retrieve paginated customer lists with sorting by cost, activity, or tokens to identify top users and monitor usage.

Instructions

List customers/users with pagination and sorting.

Retrieves a paginated list of customers who have made API requests through Respan.

QUERY PARAMETERS:

  • page_size: Number of customers per page (max 50 for MCP, API supports up to 1000)

  • page: Page number (default 1)

  • sort_by: Sort field. Prefix with - for descending order. Examples: -total_cost (highest spending first), -number_of_requests (most active first)

  • environment: Filter by environment ("prod" or "test")

RESPONSE FIELDS:

  • id: Unique internal identifier

  • customer_identifier: Your unique identifier for this customer

  • email: Customer email (if provided)

  • name: Customer name (if provided)

  • environment: Environment (prod/test)

  • first_seen: First activity timestamp

  • last_active_timeframe: Last activity timestamp

  • active_days: Number of days with activity

  • number_of_requests: Total API requests made

  • total_tokens: Total tokens used

  • total_cost: Total cost in USD

  • average_latency: Average response time in seconds

  • average_ttft: Average time to first token in seconds

Use this to identify top users by cost, most active users, or find specific customers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (default 1)
sort_byNoSort field. Prefix with - for descending order. Default: -first_seen
page_sizeNoCustomers per page (1-50, default 20)
environmentNoFilter by environment: 'prod' or 'test'
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses pagination, sorting options, environment filtering, and MCP-specific page_size limits. It does not mention authorization, rate limits, or data freshness, but for a read-only listing tool the behavioral surface is well covered.

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 well organized with clear sections for query parameters, response fields, and use cases. It is somewhat long because of the response-field list, but since there is no output schema, those fields are valuable rather than redundant.

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?

The description covers parameters, response fields, scope, and practical use cases, which is especially helpful given the absence of an output schema. It is not fully exhaustive (e.g., no error handling or auth prerequisites), but it gives an agent enough context to select and invoke the tool effectively.

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, but the description adds meaningful value with sort_by examples ('-total_cost', '-number_of_requests'), environment enumeration, and the important MCP max page_size distinction (50 vs 1000). This goes beyond the schema's basic parameter documentation.

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 opens with 'List customers/users with pagination and sorting,' a specific verb and resource with clear scope. It clarifies that only customers who have made API requests are included, and 'get_customer_detail' among siblings implies a related but distinct single-record operation.

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 provides concrete use cases: 'identify top users by cost, most active users, or find specific customers.' It does not explicitly state when not to use this tool or point to get_customer_detail as an alternative, but the context is clear enough for typical list-vs-detail decisions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/respanai/respan-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server