Skip to main content
Glama

Run IM CLI command

run
Destructive

Execute native DingTalk or WeCom CLI commands through one interface and return JSON output; preview write actions before confirming.

Instructions

统一 IM 透传:执行指定平台的 CLI 命令并返回其 JSON 输出。args 是原生命令参数(不是自然语言)。写操作需用户明确意图:可先用 --dry-run 预览,确认后钉钉加 --yes。发现能力见资源 im://providers、im://dingtalk/services、im://wecom/sessions、im://dingtalk/templates。

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": {
      "provider": "<provider>",
      "args": "<args>"
    },
    "name": "run"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYes对应平台 CLI 的命令及参数(字符串数组)
providerYesIM 平台标识:dingtalk=钉钉,wecom=企业微信

Output Schema

NameRequiredDescriptionDefault
okYes
dataNoCLI 的 JSON 输出(非 JSON 时为原始文本)
errorNo
commandNo实际执行的命令(人类可读)
providerYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.6

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and openWorldHint=true, so the safety bar is lower. The description still adds real value beyond them: the confirmation workflow for write operations, the platform-specific --yes requirement, and the note that output is JSON. It does not describe error behavior or side effects on other sessions.

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?

Four short sentences, each carrying a distinct load: purpose, arg format, write-safety workflow, discovery resources. The purpose and the args constraint are front-loaded, and nothing is repeated from the schema or annotations.

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

Completeness5/5

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

An output schema exists, so return values need no explanation. For an open-world passthrough tool, the description covers the essentials an agent needs: what gets executed, what args mean, how to preview and confirm destructive actions, and where to discover supported capabilities.

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%, which sets a baseline of 3, and the description earns above that by clarifying that args are raw CLI arguments rather than natural-language text — a distinction the schema's "命令及参数" wording does not make. Provider semantics are left to the schema enum descriptions.

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 states a specific verb and resource: run a CLI command on a named platform and return its JSON output. "统一 IM 透传" plus the provider enum makes the passthrough nature unambiguous. It doesn't explicitly distinguish itself from siblings like login or login_status, keeping it short of a 5.

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?

Gives concrete operational guidance: args must be native CLI parameters rather than natural language, write operations require explicit user intent, and the preview-then-confirm flow (--dry-run, then --yes for DingTalk) is spelled out. Discovery entry points are routed to specific resources. It stops short of saying when to use this tool versus the login/info siblings.

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

Deploy Server

Other Tools