Skip to main content
Glama
customaise

customaise

Official

set_script_decisions

Idempotent

Choose a script's Script Decisions provider (jev, OpenAI, Gemini, or off) and optionally enable specific question lists so its decision calls run under that provider.

Instructions

Choose the Script Decisions provider for one script on this device: jev, openai-decisions (OpenAI Decisions API), gemini-decisions (Gemini Decisions API), or off. Once a provider is chosen, the script's CM_decisions calls run without asking and are billed to the person's saved key for that provider, so choose one only when the person wants it. sets switches On exactly the question lists it names, by the hashes get_script_decisions returns for this scriptId, and every other list Off. Without sets, unchanged code keeps its On/Off choices and changed code switches every list On. Choosing a provider again also resumes a script the loop guard paused for repeating the same input (pausedReason loop_repeat).

Choosing a provider needs the person to have turned on Script Decisions under Full access in Customaise Settings, Agent permissions; only they can, in the extension. Switching a script off is always allowed. These stay with the person: provider keys, this device's Allow Script Decisions switch, daily limits, pausing this device, a script paused for a runaway loop (loop_runaway), and scripts shared with them. When the error type is person_required, tell the person the next step the message names and do not retry. Other refusals carry type rejected, not_found, auth_required or invalid_argument, with the precise reason in code. After service_unavailable or a timeout the outcome is uncertain: read the state with get_script_decisions before trying again. Returns the script's state as get_script_decisions does for one script. Needs extension 1.4.0 or later.

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": {
      "scriptId": "<scriptId>",
      "provider": "<provider>"
    },
    "name": "set_script_decisions"
  }
}

Input Schema

NameRequiredDescriptionDefault
setsNoHashes of the question lists to switch On, from get_script_decisions with this scriptId; every other list goes Off. Only with a provider. Omit to keep the current choices for unchanged code.
providerYesjev, openai-decisions (OpenAI Decisions API), gemini-decisions (Gemini Decisions API), or off to switch the script provider off.
scriptIdYesThe script ID, from list_scripts or get_script_decisions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv3.4.0
    • changedInput schema / properties / provider / description
      Previous value: -"jev, openai-decisions (Decisions API), or off to switch the script provider off."New value: +"jev, openai-decisions (OpenAI Decisions API), gemini-decisions (Gemini Decisions API), or off to switch the script provider off."
    • changedInput schema / properties / provider / enum
      Previous value: -[
      -  "jev",
      -  "openai-decisions",
      -  "off"
      -]New value: +[
      +  "jev",
      +  "openai-decisions",
      +  "gemini-decisions",
      +  "off"
      +]
    • changedInput schema / properties / sets / description
      Previous value: -"Hashes of the question lists to switch On, from get_script_decisions with this scriptId; every other list goes Off. Only with jev or openai-decisions. Omit to keep the current choices for unchanged code."New value: +"Hashes of the question lists to switch On, from get_script_decisions with this scriptId; every other list goes Off. Only with a provider. Omit to keep the current choices for unchanged code."
  2. Addedv3.2.9

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations (readOnly=false, idempotent=true, destructive=false) by disclosing billing to the person's saved key, the sets On/Off side effects, resume-of-paused-script semantics, the full refusal taxonomy with error types and codes, uncertain-outcome handling, and the extension version requirement.

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?

Purpose and constraints are front-loaded and nearly every sentence carries information, but it is a single dense block with some run-on phrasing ('sets switches On exactly the question lists it names') and repeats the provider enum already in the schema.

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?

Covers everything an agent needs for a mutation tool without an output schema: prerequisites, side effects, error handling per type, retry policy, and an explicit statement that the return value matches get_script_decisions for one script.

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, but the description adds one nuance not in the schema: with no sets, unchanged code keeps its choices while changed code switches every list On, plus scriptId provenance and the meaning of re-choosing a provider.

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 ('Choose the Script Decisions provider for one script on this device'), enumerates all four allowed provider values, and implicitly separates the read-side sibling by describing what happens after a provider is chosen and by pointing to get_script_decisions for state reads.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit about when it is permitted (person must have enabled Script Decisions under Full access in Customaise Settings, Agent permissions), when it is always allowed (switching off), and how to react to refusals: on person_required tell the person and do not retry; after service_unavailable or a timeout read state with get_script_decisions before retrying.

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