get_automation_rule
Updated May 21, 20261 min read
Get a single automation rule by ID. Returns the full rule including all conditions (geography, weight, delivery type, etc.) and assigned carrier accounts.
The most detailed read in the automation-rules family. Use when
list_automation_rules
doesn't surface enough detail to explain a decision.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
tenantId | string | Yes | The tenant. |
ruleset_id | string | Yes | The ruleset the rule belongs to. |
rule_id | string | Yes | The rule id. |
Returns
A single rule object — sequence, name, full condition tree (geography, weight, delivery type, custom-attribute matches, etc.), target carrier account(s), status.
Example agent prompts
"Show me the full conditions for rule R-042 in ruleset RS-001."
get_automation_rule(
tenantId="…",
ruleset_id="RS-001",
rule_id="R-042"
)
The agent narrates the rule structure: "R-042 fires for forward shipments to KSA where weight > 5kg, routing to DHL UAE 2."
Related tools
list_automation_rules— the index. Usually enough; drop to this tool only for full conditions.get_custom_attributes— if a rule references custom attributes, the agent should resolve what those keys mean.
Notes
- Editing rules is not an MCP capability. Direct users to the Dashboard for changes.