Skip to main content
Glama
LibreDesk MCP

LibreDesk MCP

by Passe12345

update_automation_rule

Replace an existing automation rule by overwriting all fields with the provided body; resend every field explicitly because omitting enabled stores false and disables the rule.

Instructions

Update Automation Rule Replaces a rule: name, description, type, events, enabled and rules are all overwritten with the body, nothing is merged. Send enabled explicitly: leaving it out stores false and disables the rule. Read the rule first (get_automation_rule) and resend every field. The server does not validate the content of rules. Requires the automations:manage permission. PUT /api/v1/automations/rules/{id} Tags: Automations

Input Schema

NameRequiredDescriptionDefault
idYesAutomation rule ID (path parameter)
nameYes(body)
typeYes(body) new_conversation: on every new conversation. conversation_update: on the listed events. time_trigger: periodic, on the hours_since_* conditions
rulesYes(body) A JSON array of rule blocks, not a string
eventsNo(body) Only for conversation_update; leave empty for the other types
enabledNo(body) Only read by update_automation_rule, which stores it (false when omitted). Ignored on create: a created rule is always enabled
descriptionNo(body)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses destructive replace-all semantics, the footgun that omitting `enabled` stores false and disables the rule, that the server performs no validation on `rules`, the required `automations:manage` permission, and the HTTP verb/path. These are exactly the traits an agent needs before mutating an automation.

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?

Dense and front-loaded: replacement semantics and the disabled-on-omission warning come before the read-first advice and permissions. The repeated title line 'Update Automation Rule' is mildly redundant, and the tag/endpoint lines are conventional but not strictly necessary.

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

Completeness5/5

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

For a 7-parameter mutation tool with no output schema and no annotations, the description covers everything critical: replacement behavior, permission requirements, the silent-disable trap, the lack of rules validation, and the prescribed read-then-resend workflow. Nothing an agent needs to call it safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns more by adding cross-parameter meaning the schema does not convey on its own: every field must be resent, `enabled` must be sent explicitly, and `events` is only meaningful for conversation_update. It stops short of explaining the type-dependent relationships in detail.

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?

States a specific verb and resource and immediately clarifies that it is a full replacement rather than a partial merge ('name, description, type, events, enabled and rules are all overwritten with the body, nothing is merged'). This makes it distinguishable from create_automation_rule and toggle_automation_rule in intent, though siblings are not named explicitly.

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?

Gives a clear prerequisite/workflow: 'Read the rule first (`get_automation_rule`) and resend every field.' That names an alternative tool and the condition that selects it. It does not explicitly say when to prefer toggle_automation_rule over this tool for enabling/disabling, which keeps it from a 5.

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

Deploy Server

Other Tools