Skip to main content
Glama

Toggle Demand Curve Assignment

set_demand_curve_assignment_enabled
DestructiveIdempotent

Enable or disable one demand-curve assignment — the reversible off-switch: a disabled assignment stops shaping the item's forecast but keeps its configuration and provenance, and can be re-enabled at any time. Deleting assignments (or curves) is deliberately not available over MCP; use the app for that. Assignment ids come from list_demand_curve_assignments.

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": {
      "assignmentId": "<assignmentId>",
      "enabled": "<enabled>"
    },
    "name": "set_demand_curve_assignment_enabled"
  }
}

Input Schema

NameRequiredDescriptionDefault
enabledYestrue = the assignment shapes the forecast; false = it is inert.
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing is changed until the commit call.
assignmentIdYesThe assignment id (GUID), from list_demand_curve_assignments.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused.

Output Schema

NameRequiredDescriptionDefault
okNo
previewNo
expiresAtNo
assignmentNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=true, so the risk profile is partly covered. The description still adds real value by reframing the toggle as a reversible off-switch that preserves the assignment's configuration and provenance, which tempers the destructive framing, and by stating that deletion is intentionally unavailable — a boundary an agent would otherwise probe.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core action, followed by the reversibility guarantee and the boundary/alternative. No filler, no restatement of the title, and the last clause routes the agent to the id source.

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

Completeness4/5

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

For a mutating 5-parameter tool with a full output schema, the description covers intent, reversibility, state preservation and the deleted-not-supported boundary. The two-step preview/commit protocol is only in the schema rather than the prose, which is a minor gap given the schema already states it clearly.

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 description coverage is 100%, so every parameter including enabled, preview, previewReceipt and idempotencyKey is already documented in the input schema. The description only echoes the provenance of assignmentId, which the schema itself states, so it adds no meaning beyond the structured fields — baseline 3.

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?

The first clause gives a specific verb pair and a single, bounded resource: 'Enable or disable one demand-curve assignment'. It also pre-empts confusion with structurally similar tools by noting that deletion is deliberately not exposed over MCP, so an agent cannot mistake this for a delete/archive operation.

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?

Clear on the effect of each direction (off-switch stops shaping the forecast but keeps configuration and provenance; re-enable at any time) and points at the app for the delete case it does not cover. It does not contrast against other mutation siblings such as update_demand_curve_points, but the resource is narrow enough that the intended use is unambiguous.

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