Skip to main content
Glama

Listar clientes

listar_clientes
Read-onlyIdempotent

Los clientes del comercio, como en el portal › Clientes: nombre, referencia (p. ej. apartamento o alumno), sus planes y, si los hay, sus pagos (último pago, total pagado, estado de pago y días de atraso). No incluye cédula, teléfono ni correo. Filtra por texto, estado de pago, plan o si tiene suscripción. Devuelve el total para paginar. Sólo con una conexión en producción; en modo prueba responde solo_produccion.

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

Input Schema

NameRequiredDescriptionDefault
qNotexto a buscar (nombre o referencia)
susNocon = con suscripción, sin = sin suscripción
pagoNoal_dia, pendiente o atrasado
planNoid del plan
limitNomáximo de resultados (por omisión 20, hasta 50)
offsetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations (which only say read-only/idempotent/non-destructive): it discloses an environment/auth constraint (producción only, solo_produccion otherwise), the pagination contract (devuelve el total), and which sensitive fields are deliberately omitted from the response. These are exactly the traits an agent cannot infer from structured fields.

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 the resource and returned fields, then filters, then the production constraint. Dense and mostly waste-free; the listing of pago sub-fields is slightly verbose but pays for itself in returned-value clarity.

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?

With 6 optional params, no output schema, and read-only semantics already covered by annotations, the description supplies enough: what is returned, what is not, how filtering works, and the environment restriction. Only minor gaps remain (default page size, enum meanings) that the schema already covers.

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 description coverage is already 83%, so the schema carries most parameter meaning. The description adds modest but real value by tying limit/offset to the returned total for pagination and by characterizing the filter families, though it does not explain enum values or the max of 50, which the schema handles.

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 resource (los clientes del comercio) and enumerates exactly which fields come back: nombre, referencia, planes, pagos with sub-fields, plus an explicit exclusion list (cédula, teléfono, correo). This makes it distinguishable from siblings like listar_planes or listar_suscripciones, which are narrower resources.

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 concrete usage context: the supported filters (texto, estado de pago, plan, con/sin suscripción) and the hard prerequisite that it only works on a production connection, returning solo_produccion in test mode. It does not explicitly route to a sibling alternative, but the scope and precondition are clear enough for an agent to decide.

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