Skip to main content
Glama
zalo-mcp
by nhminhhh

zalo_upload_file

Upload a local PDF, DOC, or DOCX file (up to 5 MB) to a Zalo Official Account and receive a file token for subsequent Zalo workflows.

Instructions

Upload a local document/file (PDF, DOC, DOCX, max 5MB) to Zalo OA and receive a file token.

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": {
      "file_path": "<file_path>"
    },
    "name": "zalo_upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesAbsolute or relative path to the local file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does supply real behavioral facts: accepted formats (PDF, DOC, DOCX), a 5MB size cap, and that the result is a file token rather than a message. It omits whether the token expires, whether uploads are scoped to an OA/permission, and whether the call fails or converts on unsupported formats.

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 no filler: the operation, the resource, the format/size constraints, and the return value all appear in one front-loaded clause. Nothing could be removed without losing information.

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 simple one-parameter tool with no output schema, the description covers input constraints and the shape of the return value, which is most of what is needed. The notable gap is the downstream relationship: an agent still does not learn from this definition that the file token is meant to be passed to zalo_send_file_message.

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% and the schema already explains that file_path is an absolute or relative local path. The description adds meaning beyond that by constraining which file types are acceptable and the 5MB ceiling, which directly governs what value of file_path will succeed.

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 ('Upload a local document/file ... to Zalo OA') and names the return value ('a file token'), which an agent can distinguish from send-oriented siblings like zalo_send_file_message. It stops short of explicitly contrasting itself with those siblings, so it is clear but not fully differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not guidance and no named alternative. The agent must infer that this is a preparatory step whose token is later consumed by zalo_send_file_message, and nothing in the description states whether the file is delivered on upload or only staged.

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