Skip to main content
Glama

Enviar ao bot

enviar_ao_bot

Envia pedido ou encaminha resposta de outro bot. Pode consumir crédito. Exige chave da conta ou organização e conexão autorizada pelo administrador em Bots. Retenção segue a escolha do espaço. Chave da conta ou organização, com conexão externa autorizada em Bots. Responde 202 com a tarefa em andamento. A inferência usa a política, os limites e o crédito da organização. Até 1.024 tokens de saída, 150 segundos e uma tarefa por organização. Erro da inferência aparece em tarefa.erro. O id evita nova execução enquanto a mensagem estiver no histórico; não há retry automático.

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": {
      "id": "<id>",
      "bot": "<bot>",
      "texto": "<texto>"
    },
    "name": "enviar_ao_bot"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesUUID da ação. Preserve ao repetir após falha de rede.
botYesId do bot de destino.
textoYesPedido de 1 a 4.000 caracteres.
origemNoId de outro bot. Anexa sua última resposta ao pedido.

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?

Goes well beyond the annotations: it discloses credit consumption, an async 202 response with a pending task, organization-level policy/limits, a 1,024-token output cap, a 150-second limit, one task per organization, errors surfacing on 'tarefa.erro', and data retention following the workspace setting. These are exactly the operational constraints an agent cannot infer from readOnlyHint/idempotentHint/destructiveHint=false.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is front-loaded with the purpose sentence, but the auth requirement is stated twice almost verbatim ('Exige chave da conta ou organização e conexão autorizada pelo administrador em Bots... Chave da conta ou organização, com conexão externa autorizada em Bots'). The remaining text is a run-on chain of facts with no grouping by concern (auth, limits, retry, errors).

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?

For a 4-parameter mutation tool with no output schema, the description supplies the async contract, limits, error field, and cost warning, which is most of what an agent needs. It omits how to observe task completion (which sibling to poll) and what happens when the Bots connection is not yet authorized.

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 baseline is 3, but the description adds meaning: the 'id' is characterized as a dedupe window tied to message history (why it matters on retry) and 'origem' is explained as attaching another bot's last answer, both slightly beyond the schema text. The 'texto' length bound and 'bot' id are left entirely to the schema.

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?

States a specific verb and resource in the opening sentence: 'Envia pedido ou encaminha resposta de outro bot', which also clarifies the dual mode (new request vs. forwarding another bot's last reply via 'origem'). It does not name any sibling tool (e.g., 'consultar_bots' or 'cancelar_bot') to contrast against, so differentiation relies on the agent knowing the catalog.

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 preconditions — account/organization key plus an external connection authorized by the admin under Bots — and states that the id prevents re-execution and that there is no automatic retry, which effectively tells the agent how to retry safely. It stops short of explicit when-not-to-use guidance or pointing to an alternative tool for related operations.

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