Skip to main content
Glama
zalo-mcp
by nhminhhh

zalo_send_file_message

Send a file attachment to a Zalo user using a file token from zalo_upload_file, so AI clients can deliver uploaded files in Zalo conversations.

Instructions

Send a file attachment message to a Zalo user using a file token from zalo_upload_file.

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": {
      "user_id": "<user_id>",
      "file_token": "<file_token>"
    },
    "name": "zalo_send_file_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_idYesRecipient Zalo user_id
file_tokenYesZalo file token returned by zalo_upload_file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior2/5

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

With no annotations provided, the description carries the full behavioral burden and largely does not meet it. It says nothing about whether the operation is a write/send with delivery guarantees, whether tokens are single-use or expire, what permissions are needed, rate limits, or what happens on failure.

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?

A single sentence with the action front-loaded and no redundant clauses. Every phrase contributes: the message type, the recipient, and the token source.

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

Completeness3/5

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

For a two-parameter, no-annotation send tool with no output schema, the definition covers the essential call mechanics and dependency but omits return expectations (e.g., message_id) and error behavior. It is adequate to invoke correctly but thin on outcomes.

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?

Both parameters are fully documented in the schema, including "Zalo file token returned by zalo_upload_file," so the baseline is 3. The description's parameter-related text restates the schema's file_token note rather than adding new semantics such as token lifetime or user_id format.

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 uses a specific verb+resource pair: "Send a file attachment message to a Zalo user." The qualifier "file attachment" implicitly separates it from the text, image, template, and promotion senders in the sibling list, though no sibling is named explicitly.

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 states a clear prerequisite: the file_token must come from zalo_upload_file, which tells the agent the required call ordering before invoking this tool. It does not spell out when to prefer this over zalo_send_image_message or other send variants, so the routing guidance is context-implied rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.