Skip to main content
Glama

TreinoAI

Enviar formulário a um cliente

atribuir_formulario
DestructiveIdempotent

Envia um modelo de formulário do time (anamnese, check-in, medidas) para um cliente responder. O cliente recebe uma notificação e vê o formulário no app. Isso chega ao cliente e não se desfaz por esta conexão, então cada chamada precisa da confirmação do treinador. Exige chave_idempotencia: repetir o mesmo pedido com a mesma chave devolve o envio já feito, sem avisar o cliente de novo.

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>",
      "cliente_id": "<cliente_id>",
      "modelo_id": "<modelo_id>"
    },
    "name": "atribuir_formulario"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelo_idYesId do modelo de formulário do time. Encontre-o com buscar_dados_do_time (entity "forms").
cliente_idYesId do cliente. Encontre-o com buscar_dados_do_time (entity "clients").
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
envio_idNo
repetidaYes
situacaoYes
modelo_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the concrete side effects: the client receives a notification and sees the form in the app, and the send is not undone through this connection. It also explains the idempotency contract (replay returns the prior send without re-notifying) and the confirmation gate, all of which the agent needs before invoking a destructive, open-world mutation.

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?

Four short sentences that are front-loaded with what is sent and who receives it, then move to irreversibility, confirmation, and the idempotency key. Slight overlap with the schema's chave_idempotencia text costs a little, but nothing is padded.

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?

The tool has an output schema, so return values need no explanation, and the annotations already declare destructiveHint and idempotentHint. What remains — client-visible side effects, irreversibility, and the trainer-confirmation requirement — is fully covered, leaving nothing an agent needs missing before calling it.

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 coverage is 100% and the idempotency key's semantics (replay behavior, 30-day validity, rejection when reused with a different payload) are already spelled out in the property descriptions. The description gestures at the key's purpose but adds no syntax, format, or edge-case detail that the schema does not already provide.

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+resource ('Envia um modelo de formulário do time') and enumerates the concrete template types (anamnese, check-in, medidas), so an agent knows exactly what is being assigned. It does not explicitly contrast itself with near-name siblings such as atribuir_programa or enviar_mensagem, so differentiation is inferred rather than stated.

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?

It supplies a real precondition — each call needs the trainer's confirmation because the action reaches the client — and explains when to reuse the idempotency key after a connection failure. It gives no explicit when-not or alternative route (e.g., why send a form versus atribuir_programa or enviar_mensagem), so guidance is implied rather than comparative.

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