Skip to main content
Glama
zalo-mcp
by nhminhhh

zalo_upload_image

Upload a local JPG or PNG image (max 1 MB) to Zalo OA and get an attachment_id for Zalo messaging workflows.

Instructions

Upload a local image file (JPG/PNG, max 1MB) to Zalo OA and receive an attachment_id.

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_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesAbsolute or relative path to the local image file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description does the heavy lifting by disclosing input constraints (JPG/PNG only, 1MB cap) and the returned artifact, which is genuinely useful. It remains silent on auth/scope requirements, attachment lifetime, and failure behavior for oversized or wrong-format files.

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?

One sentence, front-loaded with the action, then the constraints, then the result. Nothing is padded or redundant.

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 one-parameter tool with no output schema, the description is close to sufficient: it states both the file constraints and the return value. Only the downstream usage of attachment_id and error conditions are left unstated.

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 already 100% for the single file_path parameter, and the description goes beyond it by adding accepted formats and the size limit — constraints an agent cannot infer from a plain 'path to the local image file'. That is real added meaning rather than restatement.

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?

A specific verb ('Upload') plus resource ('local image file') plus the return value ('attachment_id'), which cleanly separates it from zalo_send_image_message. It does not explicitly name a sibling, but the format constraints make the scope unambiguous.

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?

The phrasing 'receive an attachment_id' implies this is a prerequisite step before sending an image, but the description never says so outright or names zalo_send_image_message as the natural next call. No conditions for when not to use it are given.

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