Skip to main content
Glama

Update Demand Curve Points

update_demand_curve_points
DestructiveIdempotent

Replace a demand curve's 12 monthly points (and optionally rename or re-describe it). Everything else — curve type, calendar start month, ownership — is preserved. The new points are normalized to mean 1.0, and the curve's version is bumped so every item carrying it picks up the new shape. A client-pinned credential can edit only its own client's curves, never the shared house curves.

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": {
      "curveId": "<curveId>",
      "points": "<points>"
    },
    "name": "update_demand_curve_points"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional new name. Omitted = keep the current name.
pointsYesExactly 12 non-negative monthly weights, January first. Relative values — the server normalizes them to average 1.0.
curveIdYesThe demand curve id (GUID).
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.
descriptionNoOptional new description. Omitted = keep the current description.
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
curveNo
previewNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds genuinely non-obvious behavior: normalization to mean 1.0, a version bump that propagates the new shape to every item carrying the curve, and client-scoped authorization limits. It does not cover the two-step preview/commit flow or failure modes, but those live in the schema.

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?

Four tight sentences, front-loaded with the primary action and followed by side effects and authorization. No filler, though the normalization detail duplicates the schema text.

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 destructive mutation with a rich schema, annotations, and an output schema, the description supplies the essential behavioral contract (what is replaced, what is preserved, side effects, auth scope). The two-step write protocol is delegated to parameter descriptions, which is acceptable given full schema coverage.

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%, so each parameter is already documented, including the preview/previewReceipt two-step and the 'omitted = keep current' defaults. The description's mention of optional rename/re-describe and normalization largely restates the schema; the only added meaning is the propagation effect of writing new points.

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 description uses a precise verb+resource pair — 'Replace a demand curve's 12 monthly points' — and immediately scopes what is *not* changed (curve type, calendar start month, ownership), which implicitly separates it from create_demand_curve and apply_demand_curve_to_items. An agent can tell what this tool does to the resource without opening the schema.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: editing an existing curve's points is clearly the case, and the credential-scoping sentence ('a client-pinned credential can edit only its own client's curves, never the shared house curves') gives a real precondition. However, it never explicitly names an alternative such as create_demand_curve for new curves or apply_demand_curve_to_items for assignments, nor states when-not-to-use this tool.

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