Skip to main content
Glama

Manage Auto-Categorization Rules

manage_rules
Destructive

List, create, delete, or re-apply deterministic sync rules that assign categories, tags, and internal-transfer flags using substring or /regex/i matches.

Instructions

List, create, delete, or re-apply deterministic rules that automatically assign categories, tags, or internal-transfer flags during every sync. Supports plain substring match or /regex/i patterns.

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_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleNoRequired for 'create'.
actionYes
ruleIdNoRequired for 'delete'.
overwriteManualNoFor 'apply': if true, re-evaluates even previously categorized rows (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already state destructive=true and readOnly=false, so the description needn't re-declare danger. It usefully adds that rules take effect on every sync (persistent side effect) and that matching supports substring or /regex/i patterns. It does not disclose what delete removes beyond the rule (e.g., whether applied categories revert) or the scope of apply against existing rows, which is the key risk for a destructive tool.

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 tight sentences with the operation list front-loaded and the matching syntax following. No filler. It is slightly dense in the first sentence but nothing is redundant.

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 four-action, nested-object tool with destructive effects and no output schema, the description covers purpose and persistence but leaves the consequences of delete and apply unstated. An agent can pick an action but cannot fully predict the blast radius without reading the schema for overwriteManual and ruleId.

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 coverage is 75%, so most parameters are documented structurally (priority ordering, overwriteManual, matchMerchant/matchDescription regex note). The description reinforces the substring-or-/regex/i semantics and the recurring-sync effect, but adds little about the nested rule fields or action-dependent requirements beyond what the schema already says.

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 names the resource (auto-categorization rules) and enumerates the four operations as list/create/delete/re-apply. It also distinguishes these rules from one-off tagging by stating they run 'during every sync' and are 'deterministic'. Sibling differentiation is implicit rather than explicit, keeping it just below a 5.

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 context is implied: use this for persistent, automatic categorization applied on every sync, as opposed to manual tagging. However, there is no explicit 'when not to use', no mention of preferring tag_transactions for already-imported rows, and no guidance on which of the four actions to pick for a given goal.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.