Skip to main content
Glama

list_clients

Read-onlyIdempotent

Find the company's saved clients.

Look a recipient up here before typing one into issue_invoice: when it is already saved, pass its id as client_id and the name, document and address come from the registry. Most recently used first unless sort_by says otherwise. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
limitNoRows per page, 1 to 100.
offsetNoRows to skip, for the next page: offset + limit.
searchNoPart of the name, or the CPF/CNPJ with or without punctuation.
sourceNoOnly those saved from this source.
sort_byNoOrder by.last_used_at
inactiveNoList the deactivated clients instead of the active ones.
order_byNoasc or desc.desc
company_idNoUUID of the company acted for. Omit for a single company; else see list_authorized_companies. Send one, never both.
company_tax_idNoCNPJ or CPF of the company acted for, never the recipient or a taxpayer looked up. Omit for a single company; else see list_authorized_companies. Send one, never both.

Output Schema

NameRequiredDescriptionDefault
dataNo
totalNoHow many match, not how many are here.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / order_by
      Added value: +{
      +  "default": "desc",
      +  "description": "asc or desc.",
      +  "enum": [
      +    "asc",
      +    "desc"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / sort_by
      Added value: +{
      +  "default": "last_used_at",
      +  "description": "Order by.",
      +  "enum": [
      +    "name",
      +    "last_used_at",
      +    "created_at",
      +    "uses_count"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / source
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "manual",
      +        "issued",
      +        "issuance",
      +        "import"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Only those saved from this source."
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / company_id / description
      Previous value: -"UUID of the company acted for. Omit it if the connection covers a single company; else see list_authorized_companies. company_id or company_tax_id, never both."New value: +"UUID of the company acted for. Omit for a single company; else see list_authorized_companies. Send one, never both."
    • changedInput schema / properties / company_tax_id / description
      Previous value: -"CNPJ or CPF of the company acted for, never the recipient or a taxpayer looked up. Omit it if the connection covers a single company; else see list_authorized_companies. company_id or company_tax_id, never both."New value: +"CNPJ or CPF of the company acted for, never the recipient or a taxpayer looked up. Omit for a single company; else see list_authorized_companies. Send one, never both."
  3. Changed2 schema fields changed
    • changedInput schema / properties / company_id / description
      Previous value: -"UUID of the company this call acts for. Omit it when the connection covers a single company; with several it is required (see list_authorized_companies). Send company_id or company_tax_id, never both."New value: +"UUID of the company acted for. Omit it if the connection covers a single company; else see list_authorized_companies. company_id or company_tax_id, never both."
    • changedInput schema / properties / company_tax_id / description
      Previous value: -"CNPJ or CPF of the company this call acts for, never the recipient or a taxpayer being looked up. Omit it when the connection covers a single company; with several it is required (see list_authorized_companies). Send company_id or company_tax_id, never both."New value: +"CNPJ or CPF of the company acted for, never the recipient or a taxpayer looked up. Omit it if the connection covers a single company; else see list_authorized_companies. company_id or company_tax_id, never both."
  4. Changed1 schema field changed
    • changedOutput schema / $defs / ClientRecord / properties / tax_id / description
      Previous value: -"CPF or CNPJ, digits only."New value: +"CPF (11 digits) or CNPJ (14 characters, unpunctuated). A CNPJ may carry letters in its first 12 positions since July 2026, so never treat it as a number."
  5. Changed2 schema fields changed
    • addedInput schema / properties / inactive
      Added value: +{
      +  "default": false,
      +  "description": "List the deactivated clients instead of the active ones.",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / include_inactive
      Removed value: -{
      -  "default": false,
      -  "description": "Also list clients that were deactivated.",
      -  "type": "boolean"
      -}
  6. Changed25 schema fields changed
    • changedInput schema / properties / company_id / description
      Previous value: -"UUID of the company this call acts for, as list_authorized_companies shows it. Omit it when the connection covers a single company: that company is used. Required when the connection covers several — call list_authorized_companies to see them, with their ids and what each one allows. Give company_id or company_tax_id, never both."New value: +"UUID of the company this call acts for. Omit it when the connection covers a single company; with several it is required (see list_authorized_companies). Send company_id or company_tax_id, never both."
    • removedInput schema / properties / company_id / title
      Removed value: -"Company Id"
    • changedInput schema / properties / company_tax_id / description
      Previous value: -"CNPJ or CPF of the company this call acts for — the company using Stackin, never the recipient or a taxpayer being looked up. Punctuation is ignored. Omit it when the connection covers a single company: that company is used. Required when the connection covers several — call list_authorized_companies to see them, with their ids and what each one allows. Give company_id or company_tax_id, never both."New value: +"CNPJ or CPF of the company this call acts for, never the recipient or a taxpayer being looked up. Omit it when the connection covers a single company; with several it is required (see list_authorized_companies). Send company_id or company_tax_id, never both."
    • removedInput schema / properties / company_tax_id / title
      Removed value: -"Company Tax Id"
    • addedInput schema / properties / include_inactive / description
      Added value: +"Also list clients that were deactivated."
    • removedInput schema / properties / include_inactive / title
      Removed value: -"Include Inactive"
    • addedInput schema / properties / limit / description
      Added value: +"Rows per page, 1 to 100."
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • addedInput schema / properties / offset / description
      Added value: +"Rows to skip, for the next page: offset + limit."
    • removedInput schema / properties / offset / title
      Removed value: -"Offset"
    • removedInput schema / properties / search / title
      Removed value: -"Search"
    • removedInput schema / title
      Removed value: -"list_clientsArguments"
    • removedOutput schema / $defs / ClientRecord / properties / address / title
      Removed value: -"Address"
    • removedOutput schema / $defs / ClientRecord / properties / foreign_id / title
      Removed value: -"Foreign Id"
    • removedOutput schema / $defs / ClientRecord / properties / id / title
      Removed value: -"Id"
    • removedOutput schema / $defs / ClientRecord / properties / is_active / title
      Removed value: -"Is Active"
    • removedOutput schema / $defs / ClientRecord / properties / last_used_at / title
      Removed value: -"Last Used At"
    • removedOutput schema / $defs / ClientRecord / properties / name / title
      Removed value: -"Name"
    • removedOutput schema / $defs / ClientRecord / properties / source / title
      Removed value: -"Source"
    • removedOutput schema / $defs / ClientRecord / properties / tax_id / title
      Removed value: -"Tax Id"
    • removedOutput schema / $defs / ClientRecord / properties / uses_count / title
      Removed value: -"Uses Count"
    • removedOutput schema / $defs / ClientRecord / title
      Removed value: -"ClientRecord"
    • removedOutput schema / properties / data / title
      Removed value: -"Data"
    • removedOutput schema / properties / total / title
      Removed value: -"Total"
    • removedOutput schema / title
      Removed value: -"ClientList"
  7. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so "Read-only" in the text is redundant. The description still adds real behavior beyond that: default result ordering is most-recently-used first unless sort_by overrides it, and downstream fields are sourced from the registry rather than user input.

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?

Three short sentences front-loaded with purpose, then workflow, then ordering as an aside, with no filler. The hard line breaks mid-sentence make it slightly less scannable than it could be, and "Read-only" duplicates the annotations.

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 a full output schema, 100% parameter coverage, and complete annotations, the heavy lifting is done structurally, and the description adds the workflow and ordering context an agent needs to choose this over issuing blind. It omits any mention of pagination or filtering semantics, which the schema covers, so a small residual gap only.

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 limit, offset, search, source, sort_by, inactive, order_by, and the company identifiers; baseline is 3. The description modestly raises this by explaining that sort order defaults to most recently used and that client_id links the record so name/document/address are filled from the registry.

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?

"Find the company's saved clients" gives a specific verb and resource with a scoping qualifier (saved, company's), so an agent can tell this is a registry lookup rather than an invoice or company tool. It does not explicitly contrast with get_client, which retrieves a single client, so the listing-versus-fetch distinction is only implicit.

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

Usage Guidelines5/5

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

It states the triggering workflow directly: look the recipient up here before typing one into issue_invoice, and pass the returned id as client_id so name/document/address come from the registry. It also names an alternative target (list_authorized_companies) for resolving the company, leaving nothing to inference.

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.