Skip to main content
Glama

test_dingtalk_connection

Read-only

Check that the DingTalk (钉钉) connection works: fetches a fresh accessToken with AppKey and AppSecret, then lists the top-level departments with it — an authenticated read, not just a reachability check. Use right after entering AppKey and AppSecret. Tells apart a wrong AppKey/AppSecret (invalidClientIdOrSecret), missing contacts permission (60011) and an IP allow-list block (60020). Changes nothing.

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": "test_dingtalk_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond readOnlyHint/openWorldHint, it discloses that the check performs an authenticated read against the contacts API and even enumerates the failure taxonomy (invalidClientIdOrSecret, 60011 permission, 60020 IP allow-list), letting an agent diagnose results without extra calls. "Changes nothing" and "authenticated read, not just a reachability check" pin the exact behavioral profile.

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?

Lead sentence states the action, the second gives usage timing, the third lists failure modes, and the closer rules out side effects — no filler, and the most decision-relevant facts are front-loaded.

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?

With no parameters, no output schema, and annotations covering the safety profile, the description supplies everything else an agent needs: what is called, what a success implies, what conditions it distinguishes, and that nothing is mutated.

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?

The tool takes zero parameters, so the baseline is 4. The description usefully clarifies that AppKey/AppSecret are consumed implicitly from stored configuration rather than passed as arguments, which prevents an agent from hunting for them in the schema.

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?

The description names the specific verb sequence — fetch a fresh accessToken, then list top-level departments — and explicitly contrasts it with a mere reachability check. Because the sibling set is a long list of parallel test_<service>_connection tools, naming DingTalk and its concrete probe makes selection unambiguous.

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?

"Use right after entering AppKey and AppSecret" gives a clear triggering condition. It doesn't state exclusions or when to prefer another tool, but with siblings differentiated purely by service name, no exclusion is meaningfully needed.

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.