Skip to main content
Glama

Set a channel's secret

colliedesk_channels_credentials_set

Store a secret a channel's type needs (an access token of its account). It is sealed and only its last four characters are shown again. The names by type: zalo: app_secret, oa_secret_key, access_token, refresh_token (email, web_form and help_chat keep none here).

Needs: channels:manage_credentials.

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": {
      "channel_id": "<channel_id>",
      "name": "<name>",
      "value": "<value>"
    },
    "name": "colliedesk_channels_credentials_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
valueYes
channel_idYesFrom colliedesk_channels_list.

Output Schema

NameRequiredDescriptionDefault
hintYes
nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnly=false, destructive=false, openWorld=false and idempotent=false. The description adds genuinely non-obvious behavior: the value is sealed and only the last four characters are retrievable afterwards, and a specific permission scope is required. Idempotency implications (whether re-setting the same name overwrites or duplicates) are still unstated, which matters given idempotentHint=false.

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

Conciseness4/5

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

Three short sentences, front-loaded with the core action before the type mapping and the permission note. The nested parenthetical listing zalo names is dense but earns its place; minor awkwardness in 'The names by type:' phrasing is the only friction.

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?

Return values are covered by an output schema, and the description still usefully notes that only the last four characters are shown again. Permission requirements and the per-type name vocabulary are present; the remaining gap is overwrite/rotation semantics for an existing secret, which is material for a mutation tool with idempotentHint=false.

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 only 33%, with 'name' and 'value' carrying no schema description (just a pattern and length bounds). The description compensates well by enumerating the legal 'name' values per channel type and by explaining that 'value' is a sealed secret of which only four characters are echoed back; only channel_id is left to the schema, which already documents it.

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 ('Store a secret a channel's type needs') and clarifies the credential is per-channel-type. It partially disambiguates from sibling secret tools by noting that email, web_form and help_chat channels keep no secret here, but it never names the adjacent rotation/vault tools (e.g. colliedesk_email_secret_rotate) that an agent might confuse with it.

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 gives a concrete per-type mapping (zalo needs app_secret, oa_secret_key, access_token, refresh_token) and a hard prerequisite ('Needs: channels:manage_credentials'), which tells the agent when the call is valid. However, it gives no explicit when-to-use/when-not-to-use guidance relative to the other secret-setting siblings, and it does not say what to do if the credential already exists.

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