Skip to main content
Glama

List customers

list_customers
Read-onlyIdempotent

Lists the customers of a company, with optional filters. Rows contain data entered by the user (names, numbers).

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": {
      "company_id": "<company_id>"
    },
    "name": "list_customers"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage of the list, starting at 1; the answer tells in next_page whether a next page exists.
typeNoOnly customers of this type: LEGAL (a company) or NATURAL (a person).
queryNoText to search for in the name, tax number, VAT ID and registration number of the customers.
company_idYesThe id of the company, from list_companies.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds one piece of context beyond that — that rows contain user-entered data (names, numbers) — but says nothing about ordering, total counts, or how pagination terminates beyond what the schema's next_page note already provides.

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?

Two short sentences with the core operation front-loaded and no redundant restatement of the tool title. The second sentence is brief but somewhat tangential relative to what an agent most needs to know about filtering and pagination.

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 read-only list tool with full schema coverage, complete annotations, and no output schema, the definition is adequate but thin. It omits any mention of pagination behavior or the practical need to page through results, which is the main thing an agent must handle when calling a list endpoint.

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

Parameters3/5

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

Schema description coverage is 100%, so all four parameters (page, type, query, company_id) are already documented, including the LEGAL/NATURAL enum meaning and the fields searched by query. The description's "optional filters" adds nothing beyond that; baseline 3 applies when the schema carries the semantic load.

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?

The description uses a specific verb and resource ("Lists the customers of a company") and notes that filters are optional, which tells an agent this is a scoped collection read. It does not explicitly distinguish itself from get_customer or list_companies, leaving a small ambiguity about single-record vs collection retrieval.

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 only implied: an agent can infer it should call this when it needs a set of customers belonging to one company. There is no explicit when-to-use statement, no mention of get_customer as the alternative for a single customer, and no stated prerequisites beyond the schema's company_id.

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