Skip to main content
Glama

FMF Proof

Quota-Aware IM Gateway: register a tenant (30 days)

im_tenant

Registers a Feishu, DingTalk or WeCom bot app with the gateway for 30 days: the app secret is checked with the platform, then kept encrypted and never returned. Sends through the gateway reuse the cached token, merge consecutive messages to the same chat, count every platform call against your monthly quota, and post one alert to your alert chat at 80%.

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

Input Schema

NameRequiredDescriptionDefault
app_idNoApp id (DingTalk: appKey; WeCom: corp id).
platformNofeishu, dingtalk or wecom.
app_secretNoApp secret; kept encrypted and never returned.
robot_codeNoDingTalk only, if it differs from the appKey.
tenant_keyNoTo renew: the key registration returned.
alert_chat_idNoOptional chat for the one 80% alert a month.
quota_monthlyNoPlatform calls a month (Feishu free tier: 10,000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full disclosure burden and does unusually well: it states the 30-day registration lifetime, that the secret is validated against the platform, then stored encrypted and never returned, plus token caching, message merging, per-call quota counting, and a single 80% alert. It still omits failure behavior (what happens if platform validation fails) and whether re-registering the same app_id is idempotent, so it falls short of a 5.

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?

Two sentences, high information density, with the core action front-loaded before the downstream gateway behavior. The second sentence is long and packs five separate behavioral facts; it earns its place but could be split for scanability. No filler or restated name/title.

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 7-parameter tool with no annotations and no output schema, the description should also state what a successful call returns (presumably a tenant_key the caller must save for renewal) and what errors look like. It covers credential handling and quota side effects well but leaves the return contract to inference, which matters because renewal depends on it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every one of the 7 parameters is already documented in the schema (platform values, app_secret handling, robot_code for DingTalk, tenant_key for renewal, alert_chat_id, quota_monthly defaults). The description's mention of the 80% alert and the 30-day term adds light context but no parameter detail the schema lacks, making the baseline 3 correct.

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 opens with a specific verb and resource: 'Registers a Feishu, DingTalk or WeCom bot app with the gateway for 30 days.' That is unambiguous about what the tool does and its supported platforms. It doesn't reference any sibling tool by name, so the agent gets no explicit differentiation signal, which keeps it out of the top band.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the description explains what happens to messages 'sent through the gateway,' which suggests registration is a prerequisite step, but it never says so directly. There is no explicit when-to-use, when-not-to-use, or named alternative. A 'To renew' hint exists but lives in the schema (tenant_key), not the description.

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.

Resources