Skip to main content
Glama

dingtalk_cli

Run any dws subcommand through a single escape hatch and return its output as JSON, letting agents execute DingTalk operations not covered by dedicated tools.

Instructions

Escape hatch: run an arbitrary dws subcommand and return its JSON output. Pass the argv array without the binary name, e.g. ["contact","dept","get-info","--dept-id","123"]. Output is always requested as --format json.

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": {
      "argv": "<argv>"
    },
    "name": "dingtalk_cli"
  }
}

Input Schema

NameRequiredDescriptionDefault
argvYesdws arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.1

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden. It usefully discloses the output format contract (always passes --format json) and the argv convention, but it never warns that an arbitrary subcommand can mutate or delete data, nor mentions auth/permission requirements or how errors surface. For a catch-all executor that can do anything a CLI can do, that safety omission is material.

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 short sentences plus one inline example, with the framing ('Escape hatch') and the two behavioral facts front-loaded. Nothing is redundant or padded.

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 one-parameter tool with no output schema this is nearly sufficient, but the missing pieces are the consequential ones: no statement of whether arbitrary subcommands can have side effects, and no pointer to how an agent finds valid subcommand names. Those gaps matter more here than for a narrow typed tool.

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 itself only says 'dws arguments', so the description adds real meaning: the argv array excludes the binary name and each token, including flag/value pairs, is a separate array element, illustrated with a concrete example. It stops short of describing how to discover valid subcommands (presumably via dingtalk_catalog).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific action ('run an arbitrary dws subcommand') and its return ('JSON output'), and frames it as an 'Escape hatch', which instantly separates it from the typed dingtalk_* siblings. An agent can tell this is the generic fallback rather than a domain operation.

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?

The word 'escape hatch' plus 'arbitrary subcommand' clearly signals this is for cases the dedicated tools don't cover, and the sample argv shows a contact/dept call that would otherwise map to a sibling. It never states the exclusion explicitly ('prefer dingtalk_* when available') or that undocumented subcommands are the intended target, so the guidance is strong but inferential.

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