Skip to main content
Glama

Sergio by Serviche

Change a platform email rule

update_platform_email_rule
Idempotent

Changes one rule that decides how a booking platform's or form relay's notices are recognised and routed, as the rule editor's Save does: rule_id, then any of name, sender_pattern (*@domain), subject_pattern, source_label, priority, is_active, routing_mode, routing_behavior, use_block_format, event_kind ('client_message' makes it a relay source, 'other' does not). A duplicate sender+subject is refused with the rule that owns it. Pass the same idempotency_key when retrying.

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": {
      "rule_id": "<rule_id>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "update_platform_email_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
rule_idYes
priorityNo
is_activeNo
event_kindNo
routing_modeNo
source_labelNo
sender_patternNo
idempotency_keyYesYour id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation.
subject_patternNo
routing_behaviorNo
use_block_formatNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly=false and idempotent=true, but the description adds genuinely non-obvious behavior: a duplicate sender+subject is refused and the conflicting rule is returned, and event_kind='client_message' makes the rule a relay source. It omits permission requirements and whether omitted fields are preserved rather than cleared.

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?

One dense sentence that front-loads purpose before the field list, with no filler. The long comma-separated enumeration of eleven parameters makes it slightly run-on but every element is load-bearing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter mutation with no output schema, it covers the important unknowns: partial-update shape, duplicate rejection, enum semantics, and idempotent retry. It does not state what the call returns or the permission profile, which are the remaining gaps.

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 only 8%, so the description must carry parameter meaning, and it does enumerate every field plus decode sender_pattern ('*@domain') and the event_kind enum. However, routing_mode ('auto' vs 'ai'), routing_behavior, use_block_format, and priority are named but never explained, leaving roughly a third of the parameters semantically empty.

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?

States a specific verb and resource ('Changes one rule that decides how a booking platform's or form relay's notices are recognised and routed') and anchors it to a known behavior, 'as the rule editor's Save does'. An agent can distinguish it from delete_platform_email_rule or add_platform_email_preset from the description alone.

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?

The 'rule_id, then any of ...' phrasing communicates partial-update semantics (supply only the fields to change), which is the key usage decision here. The retry rule ('Pass the same idempotency_key when retrying') is explicit. It offers no when-not guidance or named alternative, keeping it short of a 5.

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