Skip to main content
Glama

Propose: Switch an item on or off

propose_set_item_state

AI Agents (inside one system): Use when the person asks for this in a system whose AI agent may change records: An item switched on or off, published or set back to draft, or a schedule started or cancelled, such as a workflow, a calendar group or an invoice schedule. Give one item per record, at most 25. Nothing is written yet: the answer shows, per record, what it holds now and would hold after, plus a proposal id. Show it to the person, say so first when something would be sent to the people in their system, ask whether to go ahead, and only then call apply_proposal; when needsApproval is true, share the approve link instead. Not for reading (use search_records or get_record).

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": {
      "system": "<system>",
      "items": "<items>"
    },
    "name": "propose_set_item_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesOne object per record, at most 25.
systemYesWhich AI agent: the system's id from get_ai_agent_options, or the name of the system or its connection. Ask the person which AI agent they mean unless they named it in this conversation; never pick one yourself.

Output Schema

NameRequiredDescriptionDefault
noticeNo
changesYes
systemIdYes
warningsYes
expiresAtYes
approveUrlYes
proposalIdYes
systemNameYes
needsApprovalYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / items / items / properties / item_kind / enum
      Previous value: -[
      -  "business",
      -  "contact_person",
      -  "custom_record",
      -  "object",
      -  "link_type",
      -  "link",
      -  "product",
      -  "price",
      -  "product_collection",
      -  "coupon",
      -  "order",
      -  "transaction",
      -  "subscription",
      -  "invoice_schedule",
      -  "invoice_template",
      -  "calendar",
      -  "calendar_group",
      -  "calendar_resource",
      -  "blocked_slot",
      -  "service",
      -  "booking",
      -  "pipeline",
      -  "custom_field",
      -  "custom_value",
      -  "location_tag",
      -  "template",
      -  "location",
      -  "user",
      -  "project",
      -  "project_task",
      -  "recurring_task",
      -  "comment",
      -  "document",
      -  "document_template",
      -  "workflow",
      -  "workflow_log",
      -  "form",
      -  "form_submission",
      -  "survey",
      -  "survey_submission",
      -  "campaign",
      -  "conversation",
      -  "price_list",
      -  "credit_note",
      -  "retainer_invoice",
      -  "sales_receipt",
      -  "debit_note",
      -  "delivery_challan",
      -  "time_entry",
      -  "expense",
      -  "recurring_expense",
      -  "bill",
      -  "recurring_bill",
      -  "purchase_order",
      -  "purchase_return",
      -  "vendor",
      -  "vendor_payment",
      -  "vendor_credit",
      -  "journal",
      -  "account",
      -  "tax",
      -  "currency",
      -  "bank_account"
      -]New value: +[
      +  "business",
      +  "contact_person",
      +  "lead",
      +  "custom_record",
      +  "object",
      +  "link_type",
      +  "link",
      +  "product",
      +  "price",
      +  "product_collection",
      +  "coupon",
      +  "order",
      +  "transaction",
      +  "subscription",
      +  "invoice_schedule",
      +  "invoice_template",
      +  "calendar",
      +  "calendar_group",
      +  "calendar_resource",
      +  "blocked_slot",
      +  "service",
      +  "booking",
      +  "pipeline",
      +  "custom_field",
      +  "custom_value",
      +  "location_tag",
      +  "template",
      +  "location",
      +  "user",
      +  "report",
      +  "project",
      +  "project_task",
      +  "recurring_task",
      +  "comment",
      +  "document",
      +  "document_template",
      +  "workflow",
      +  "workflow_log",
      +  "form",
      +  "form_submission",
      +  "survey",
      +  "survey_submission",
      +  "campaign",
      +  "conversation",
      +  "group",
      +  "macro",
      +  "view",
      +  "article",
      +  "satisfaction_rating",
      +  "price_list",
      +  "credit_note",
      +  "retainer_invoice",
      +  "sales_receipt",
      +  "debit_note",
      +  "delivery_challan",
      +  "time_entry",
      +  "expense",
      +  "recurring_expense",
      +  "bill",
      +  "recurring_bill",
      +  "purchase_order",
      +  "purchase_return",
      +  "vendor",
      +  "vendor_payment",
      +  "vendor_credit",
      +  "journal",
      +  "account",
      +  "tax",
      +  "currency",
      +  "bank_account"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / items / items / properties / item_kind / enum
      Previous value: -[
      -  "business",
      -  "custom_record",
      -  "object",
      -  "link_type",
      -  "link",
      -  "product",
      -  "price",
      -  "product_collection",
      -  "coupon",
      -  "order",
      -  "transaction",
      -  "subscription",
      -  "invoice_schedule",
      -  "invoice_template",
      -  "calendar",
      -  "calendar_group",
      -  "calendar_resource",
      -  "blocked_slot",
      -  "service",
      -  "booking",
      -  "pipeline",
      -  "custom_field",
      -  "custom_value",
      -  "location_tag",
      -  "template",
      -  "location",
      -  "user",
      -  "project",
      -  "project_task",
      -  "recurring_task",
      -  "comment",
      -  "document",
      -  "document_template",
      -  "workflow",
      -  "workflow_log",
      -  "form",
      -  "form_submission",
      -  "survey",
      -  "survey_submission",
      -  "campaign",
      -  "conversation",
      -  "price_list",
      -  "credit_note",
      -  "retainer_invoice",
      -  "sales_receipt",
      -  "debit_note",
      -  "delivery_challan",
      -  "time_entry",
      -  "expense",
      -  "recurring_expense",
      -  "bill",
      -  "recurring_bill",
      -  "purchase_order",
      -  "purchase_return",
      -  "vendor",
      -  "vendor_payment",
      -  "vendor_credit",
      -  "journal",
      -  "account",
      -  "tax",
      -  "currency",
      -  "bank_account"
      -]New value: +[
      +  "business",
      +  "contact_person",
      +  "custom_record",
      +  "object",
      +  "link_type",
      +  "link",
      +  "product",
      +  "price",
      +  "product_collection",
      +  "coupon",
      +  "order",
      +  "transaction",
      +  "subscription",
      +  "invoice_schedule",
      +  "invoice_template",
      +  "calendar",
      +  "calendar_group",
      +  "calendar_resource",
      +  "blocked_slot",
      +  "service",
      +  "booking",
      +  "pipeline",
      +  "custom_field",
      +  "custom_value",
      +  "location_tag",
      +  "template",
      +  "location",
      +  "user",
      +  "project",
      +  "project_task",
      +  "recurring_task",
      +  "comment",
      +  "document",
      +  "document_template",
      +  "workflow",
      +  "workflow_log",
      +  "form",
      +  "form_submission",
      +  "survey",
      +  "survey_submission",
      +  "campaign",
      +  "conversation",
      +  "price_list",
      +  "credit_note",
      +  "retainer_invoice",
      +  "sales_receipt",
      +  "debit_note",
      +  "delivery_challan",
      +  "time_entry",
      +  "expense",
      +  "recurring_expense",
      +  "bill",
      +  "recurring_bill",
      +  "purchase_order",
      +  "purchase_return",
      +  "vendor",
      +  "vendor_payment",
      +  "vendor_credit",
      +  "journal",
      +  "account",
      +  "tax",
      +  "currency",
      +  "bank_account"
      +]
    • changedInput schema / properties / items / items / properties / parent / description
      Previous value: -"The item it sits in, where the kind needs one: the object of a custom record, the product of a price, the project of a task, the task of a comment."New value: +"The item it sits in, where the kind needs one: the object of a custom record, the product of a price, the contact of a contact person, the project of a task or time entry, the task or project of a comment."
  3. Changed1 schema field changed
    • changedInput schema / properties / system / description
      Previous value: -"Which AI agent: the system's id from get_ai_agents_info, or the name of the system or its connection. Ask the person which AI agent they mean unless they named it in this conversation; never pick one yourself."New value: +"Which AI agent: the system's id from get_ai_agent_options, or the name of the system or its connection. Ask the person which AI agent they mean unless they named it in this conversation; never pick one yourself."
  4. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare the safety flags; the description adds the material behavior: nothing is written yet, a proposal id is returned, a per-record before/after view is produced, and side effects may message people in the system. It also discloses the needsApproval branch, which no annotation conveys.

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?

Front-loads the trigger ('Use when the person asks for this...') and closes with the exclusion, covering purpose, constraints and follow-up in a tight block. Some sentences are long and clause-stacked, which costs a little readability.

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?

Given an output schema exists, the description need not explain return shape, yet it still tells the agent what the answer contains and what to do with it. All gating behavior for a proposal-then-apply workflow is present.

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 100% and the schema already documents system, item_kind, item_id, parent and the state enum, so the schema carries the parameter burden. The description only restates the batching constraint ('one item per record, at most 25'), adding little new meaning.

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 ('propose' switching 'an item' on or off, published/draft, started/cancelled) and gives concrete item examples (workflow, calendar group, invoice schedule). An agent can distinguish it from propose_update_item or set_automation_status without opening schemas.

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?

Explicitly scopes use to systems with an AI agent that may change records, gives the exact follow-up sequence (show the person, ask, then apply_proposal, or share the approve link when needsApproval is true), and names the exclusions with alternatives ('Not for reading (use search_records or get_record)').

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