Skip to main content
Glama

TreinoAI

Adicionar cliente

criar_cliente
Idempotent

Adiciona um cliente ao time pelo nome e e-mail, sem enviar convite, e-mail, mensagem ou notificação. Um cliente novo só acessa o app depois que o treinador enviar o convite pelo painel. Se o e-mail já tem conta no TreinoAI, a conta é vinculada ao time, e um cliente arquivado no time volta a ele. Essas pessoas já têm conta e veem o time no app, sem aviso. Nunca devolve senha nem link de acesso. Exige chave_idempotencia: repetir o mesmo pedido com a mesma chave devolve o cliente já adicionado.

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": {
      "chave_idempotencia": "<chave_idempotencia>",
      "nome": "<nome>",
      "email": "<email>"
    },
    "name": "criar_cliente"
  }
}

Input Schema

NameRequiredDescriptionDefault
nomeYesPrimeiro nome do cliente.
emailYesE-mail do cliente.
telefoneNoTelefone do cliente.
sobrenomeNoSobrenome do cliente.
chave_idempotenciaYesUma chave nova para cada pedido (por exemplo um UUID). Para repetir o mesmo pedido, como depois de uma falha de conexão, use a mesma chave: o resultado anterior volta e nada é criado de novo. A mesma chave com um pedido diferente é recusada. Vale por 30 dias.

Output Schema

NameRequiredDescriptionDefault
linkYes
repetidaYes
situacaoYes
cliente_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that no invite/e-mail/message/notification is sent, that new clients cannot access the app until a separate panel invite, that an existing account is linked and an archived client is un-archived with no notice, and that no password or access link is ever returned. It also states the mandatory idempotency-key semantics and that repeating a request returns the previously created client. This is exactly the extra context annotations cannot carry.

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 most important constraint (what is NOT sent) is front-loaded right after the verb, and each subsequent sentence adds a distinct behavioral fact. The sentence "Essas pessoas já têm conta e veem o time no app, sem aviso" partly restates the preceding linking/restore point, but overall the length is justified by the number of behaviors disclosed.

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

Completeness5/5

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

For a create-style mutation tool with an existing output schema and annotations covering idempotency and non-destructiveness, the description covers everything an agent needs: who gets notified (nobody), what access results, what happens on a duplicate e-mail, and what the idempotency key does on retry. No material gap remains.

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 already 100%, and the schema itself explains the idempotency key and field formats in detail. The description reinforces the requirement ("Exige chave_idempotencia") and adds meaning to the e-mail parameter by explaining the existing-account linking behavior, but it adds little about nome, sobrenome, or telefone beyond what the schema states.

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 opens with a specific verb and resource ("Adiciona um cliente ao time pelo nome e e-mail") and immediately delimits scope by ruling out invitations, e-mails, messages, and notifications, which separates it from message-sending siblings. It doesn't name a sibling alternative, but the resource and side-effect profile are unambiguous.

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?

It clearly frames the context of the action: a new client can only access the app after the trainer sends the invite from the panel, and an e-mail that already has an account is linked to the team. This tells the agent what situation the tool is for, though it never states an explicit "do not use when" or points to a sibling for a related need.

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