manage_extract_rules
List, create or delete custom extraction rules for the token project. create requires a paid plan (free tier gets isError, code=quota_exceeded; rule count per plan); list/delete work on every plan. list returns at most the first 100 rules. create: name + fields ({fieldName: JS regex source}), optional scopeInboxId/matchFrom/matchSubject; delete: ruleId.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "manage_extract_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Required for create. | |
| action | Yes | ||
| fields | No | Field name -> regex source, e.g. {"code": "\\b\\d{6}\\b"}. 1-8 fields; required for create. | |
| ruleId | No | Required for delete. | |
| matchFrom | No | Optional case-insensitive substring matcher on the sender. | |
| matchSubject | No | Optional case-insensitive substring matcher on the subject. | |
| scopeInboxId | No | Optional: restrict the rule to one inbox. |