Skip to main content
Glama
zalo-mcp
by nhminhhh

zalo_refresh_token

Refresh the Zalo OA access token via OAuth v4, using ZALO_OA_REFRESH_TOKEN by default or a provided override to maintain authenticated API access.

Instructions

Refresh the Zalo OA access token using OAuth v4. Uses ZALO_OA_REFRESH_TOKEN by default or an optional refresh_token override.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "zalo_refresh_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
refresh_tokenNoOptional OAuth v4 refresh token override. Defaults to ZALO_OA_REFRESH_TOKEN.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/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. It does add useful behavioral context—OAuth v4 and that ZALO_OA_REFRESH_TOKEN is the default credential with an optional override—but omits what a refresh does to the existing token (invalidation), expiry semantics, and the response shape. Meaningful but incomplete disclosure warrants a 3.

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?

Two tight sentences with zero waste, and the core action is front-loaded before the credential-default detail. Nothing superfluous.

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 token tool with no output schema, the description covers purpose, protocol (OAuth v4), and credential sourcing. It omits only the return nature (the new token) and trigger conditions, minor gaps that keep it from a 5.

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% and the single parameter is already documented. The description restates the same default/override semantics, adding no meaning beyond what the schema provides. Baseline 3 is appropriate.

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: 'Refresh the Zalo OA access token using OAuth v4.' That is unambiguous and not confusable with any sibling, none of which handle tokens. It stops just short of 5 because it doesn't describe the outcome of the refresh (e.g., that a new token is returned and/or the old one invalidated).

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 description implies when the tool applies (token refresh) and explains the credential source via the default/override sentence, but gives no explicit guidance on when to invoke it, such as on an expired token or 401 response. Usage is implied rather than stated, so a 3.

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