Skip to main content
Glama

test_feishu_connection

Read-only

Check that the Feishu (飞书) / Lark connection works: fetches a fresh tenant_access_token with App ID and App Secret, then reads the app's bot info (name, activation status) with it — an authenticated read. Use right after entering App ID and App Secret. Tells apart wrong credentials (10003/10014), a disabled bot capability (230006), an IP allow-list block (99991401) and the wrong platform (Feishu China vs. Lark international). 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_feishu_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and openWorldHint; the description adds real substance on top by disclosing the two-step auth flow and enumerating the specific failure classes it distinguishes (bad credentials 10003/10014, disabled bot 230006, IP allow-list 99991401, wrong platform). The closing "Changes nothing" reinforces the read-only profile without contradicting it.

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?

Purpose is front-loaded, then timing, then the diagnostic taxonomy, then a safety note — a sensible order with no filler. The error-code list makes the middle sentence dense, but each clause carries actionable information.

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?

No output schema exists, so the description carries the return-value burden and does: it names the bot info returned (name, activation status) and describes the error outcomes. For a zero-parameter read-only health check, nothing an agent needs to call it correctly is missing.

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?

With zero input parameters the baseline is 4, and the description correctly signals that App ID and App Secret come from configured settings rather than call arguments, so the agent knows it need not supply them. It could be slightly more explicit that no arguments are accepted.

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?

Starts with a specific verb and resource ("Check that the Feishu / Lark connection works") and then spells out the actual mechanism: a tenant_access_token fetch followed by a bot-info read. That is enough to distinguish it from the many sibling test_*_connection tools, which cover different platforms.

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 a clear trigger, "Use right after entering App ID and App Secret," which tells the agent exactly when in a setup flow to call it. It does not name an alternative or state when not to call it, but for a zero-parameter smoke test the context is sufficient.

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.