--- description: Enforces safe and correct use of IFTTT MCP tools — confirmation before destructive or side-effectful operations, no guessed identifiers, and proper connection error handling alwaysApply: true --- ifttt-lifecycle: - Never guess service slugs, trigger/action/query identifiers, or Applet slugs. Always discover them via `search_services`, `get_steps`, `my_applets`, or `get_applet` first. - If the IFTTT MCP server itself is unauthenticated (tools missing, or every call fails with an auth error), do not read or edit config files such as `mcp.json` and do not retry in a loop. Direct the user to Cursor Settings → Tools & MCP → Connect next to `ifttt`, then wait for their confirmation before retrying. - `create_applet` enables the Applet immediately. Summarize what the Applet will do (trigger, actions, and any queries or delay) and get the user's confirmation before creating it. - Confirm with the user before calling `remove_applet` (permanent) or `run_action` (performs the action for real — messages get sent, devices get switched). - Copy `step_template` from discovery results verbatim when building Applet configs; only fill in `account_id` and field values. Do not invent field names. - When a tool reports a service is not connected or an account is offline, do not retry blindly. Call `connect_service`, present the returned `connect_url` or `reconnect_url` to the user as a link, wait for them to confirm, then retry the original request. - On `create_applet` or `edit_applet` validation errors, fix the specific fields named in the structured `errors` and retry once; never resubmit unchanged input. - Features gated by subscription (e.g. Filter Code requires Pro+): if a tool reports a plan restriction, tell the user which plan is required and link to https://ifttt.com/plans instead of retrying. - For `set_applet_filter_code`, pass a natural-language description of the desired logic — never raw TypeScript/JavaScript. - If an operation on a community Applet responds with `made_it_your_own: true`, tell the user a new user-owned copy was created and use the returned `applet_slug` from then on.