Skip to main content
Glama

Отправить сообщение

send_message

Отправить клиенту сообщение по номеру телефона. Уходит с номера проекта в MAX, WhatsApp или Telegram по сценарию: нет первого мессенджера - уходит в следующий. Возвращает id сообщения и план доставки; итог - get_message.

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": {
      "phone": "<phone>",
      "text": "<text>"
    },
    "name": "send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoИмя получателя, необязательно
textYesТекст сообщения, до 4000 символов
phoneYesТелефон получателя в любом формате: +79131234567
policyNoСценарий доставки (list_policies), по умолчанию messengers
senderNoБренд (list_senders), по умолчанию основной
client_refNoВаш номер заказа или записи; повтор того же текста тому же номеру с тем же client_ref в течение 10 минут не задвоит сообщение

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-destructive, open-world operation; the description adds genuine context beyond that: the ordered channel fallback ('if the first messenger is unavailable, it goes to the next') and what the call returns (message id plus delivery plan). It does not cover failure modes or whether a rejected message is retried, but the delivery semantics are unusually well disclosed.

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

Conciseness5/5

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

Three sentences, each load-bearing: the core action first, the routing/fallback behavior second, the return value and follow-up third. No filler or restatement of the title.

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 write tool with no output schema, the description carries the important return information (message id and delivery plan) and points to get_message for the outcome, which is exactly what an agent needs. Minor gaps remain around behavior when all channels fail, but the essential contract is complete.

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%, so every parameter including the policy default and client_ref dedup window is already documented in the schema. The description only reinforces the phone-number targeting and the policy-driven routing, adding no syntax or format detail beyond the structured fields. Baseline 3 is appropriate.

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?

The description opens with a specific verb and resource (send a message to a client by phone number) and immediately distinguishes itself from chat-based siblings by naming the transport channels (MAX, WhatsApp, Telegram). An agent can tell this apart from reply_to_chat or get_message without opening any schema.

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 gives clear operational context — outbound delivery starts from the project's number and follows a policy scenario — and names get_message as the follow-up for the final outcome. It stops short of explicitly stating when to use reply_to_chat or get_chat_messages instead, so it is clear but not fully routing-complete.

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