Skip to main content
Glama

test_wecom_connection

Read-only

Check that the WeCom (企业微信 / WeChat Work) connection works: fetches a fresh access_token with Corp ID and app secret, then reads the app itself (name, visibility scope) with it — an authenticated read, not just a reachability check. Use right after entering Corp ID, Agent ID and secret. Tells apart a wrong secret (40001), a wrong Corp ID (40013), a wrong Agent ID (40056) and the trusted-IP block (60020: apps created after 2022-06-20 only accept calls from whitelisted IPs). 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_wecom_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description discloses the full behavior: a network call to mint a token, a subsequent authenticated read of the app object, and the specific failure semantics with numeric error codes (40001 secret, 40013 Corp ID, 40056 Agent ID, 60020 IP whitelist). The whitelist caveat for apps created after 2022-06-20 is exactly the kind of non-obvious operational constraint an agent would otherwise misdiagnose, and "Changes nothing" confirms the no-mutation contract.

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?

The purpose is front-loaded and each subsequent clause adds actionable information; the error-code enumeration is dense but high-value for interpreting failures. The closing "Changes nothing" overlaps with readOnlyHint and is the only partially redundant element.

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?

With no parameters and no output schema, the description carries the full burden and mostly meets it: it names what a success reveals (app name, visibility scope) and enumerates failure modes. It does not describe the exact response shape or how results/errors are surfaced to the caller, which is the remaining gap.

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 nonetheless clarifies that the credentials it consumes (Corp ID, Agent ID, secret) must already have been entered, which explains where the inputs come from even though they are not 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 states a specific verb and resource — checking the WeCom connection — and then spells out exactly what that check consists of: fetching an access_token and reading the app's name and visibility scope. It also distinguishes itself from a generic ping ("an authenticated read, not just a reachability check"), so an agent knows this is a deeper validation than a reachability probe.

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?

It gives an explicit trigger: "Use right after entering Corp ID, Agent ID and secret." That tells the agent precisely when in the setup flow to invoke it. It stops short of explicit when-not-to-use guidance or naming alternatives, but within a family of provider-specific connection tests there is no plausible alternate to route to.

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.