Quota-Aware IM Gateway: register a tenant (30 days)
im_tenantRegisters 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
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | No | App id (DingTalk: appKey; WeCom: corp id). | |
| platform | No | feishu, dingtalk or wecom. | |
| app_secret | No | App secret; kept encrypted and never returned. | |
| robot_code | No | DingTalk only, if it differs from the appKey. | |
| tenant_key | No | To renew: the key registration returned. | |
| alert_chat_id | No | Optional chat for the one 80% alert a month. | |
| quota_monthly | No | Platform calls a month (Feishu free tier: 10,000). |