Skip to main content
Glama
This connector has been deprecated

This connector has been replaced by https://glama.ai/mcp/connectors/io.phas/phasio

publishEquation

Destructive

SENSITIVE — changes live storefront prices immediately. Makes a saved, validated draft typescriptEquation the LIVE pricing equation of its process, post-processing, or the order level; the previously live equation stops pricing at once, and every customer quote from now on uses the new one. Do this ONLY when the manufacturer explicitly asked to make this specific equation live, after generateQuote(equationId) on several real parts compared against the live price, and after telling them what will change. Never publish to 'try it out': generateQuote(equationId) tests a draft without publishing. Requires confirm=true and the id of the equation you are replacing (or NONE). Before this, a new draft prices nothing (lint PROCESS_NO_LIVE_EQUATION). Reversal: publish the previously live equation again with this tool. The same action is also available as save(entity="typescriptEquation", id=, data={isLive: true, replacesLiveEquationId, confirm: true}).

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": {
      "equationId": "<equationId>",
      "replacesLiveEquationId": "<replacesLiveEquationId>",
      "confirm": "<confirm>"
    },
    "name": "publishEquation"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYesMust be true. Send it only after the manufacturer explicitly asked to make this equation live and you tested it with generateQuote(equationId) on several real parts.
equationIdYesThe typescriptEquation id (UUID) to make live. It must be a saved, validated equation of this manufacturer.
replacesLiveEquationIdYesThe id of the equation that is live right now for the same process / post-processing / order level, or the string NONE when nothing is live yet. Read it first: query(entity="typescriptEquation", filter="processPricesId==<id>;isLive==true") or processPrices.activeTypescriptEquationId. A mismatch is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / equationId / format
      Added value: +"uuid"
    • addedInput schema / properties / equationId / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
    • addedInput schema / properties / replacesLiveEquationId / anyOf
      Added value: +[
      +  {
      +    "format": "uuid",
      +    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
      +    "type": "string"
      +  },
      +  {
      +    "const": "NONE",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / replacesLiveEquationId / type
      Removed value: -"string"
  2. Changed3 schema fields changed
    • changedInput schema / properties / confirm / description
      Previous value: -"Must be true. Send it only after the manufacturer explicitly asked to make this version live and you tested it with generateQuote(equationId) on several real parts."New value: +"Must be true. Send it only after the manufacturer explicitly asked to make this equation live and you tested it with generateQuote(equationId) on several real parts."
    • changedInput schema / properties / equationId / description
      Previous value: -"The typescriptEquation id (UUID) to make live. It must be a validated version of this manufacturer."New value: +"The typescriptEquation id (UUID) to make live. It must be a saved, validated equation of this manufacturer."
    • changedInput schema / properties / replacesLiveEquationId / description
      Previous value: -"The id of the version that is live right now for the same process / post-processing / order level, or the string NONE when nothing is live yet. Read it first: query(entity=\"typescriptEquation\", filter=\"processPricesId==<id>;isLive==true\") or processPrices.activeTypescriptEquationId. A mismatch is refused."New value: +"The id of the equation that is live right now for the same process / post-processing / order level, or the string NONE when nothing is live yet. Read it first: query(entity=\"typescriptEquation\", filter=\"processPricesId==<id>;isLive==true\") or processPrices.activeTypescriptEquationId. A mismatch is refused."
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructive=true and idempotent=false, and the description goes well beyond them: the previous equation stops pricing immediately, all future customer quotes change, a mismatched replacesLiveEquationId is refused, drafts with no live equation surface lint PROCESS_NO_LIVE_EQUATION, and reversal is done by republishing the prior equation. That is the exact context an agent needs before an irreversible production change.

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-loaded with the SENSITIVE warning and the core effect, then prerequisites, then reversal, then the alternative call form — a sensible order for a destructive tool. It is on the long side and the 'never publish to try it out' warning partially repeats the confirm parameter's own description, but almost every clause carries operational weight.

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?

For a destructive, non-idempotent mutation with no output schema, the description covers prerequisites, pre-read of the current live equation, failure mode (mismatch refused), post-condition (new equation prices all future quotes), and rollback. Nothing an agent needs in order to call it safely is missing.

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; the description still adds value by tying confirm=true to the prior testing step, stating that replacesLiveEquationId is 'the id of the equation you are replacing (or NONE)', and disclosing the equivalent save(entity="typescriptEquation", data={isLive: true, ...}) invocation path. It largely restates the schema's own descriptions, which caps it below 5.

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 ('Makes a saved, validated draft typescriptEquation the LIVE pricing equation') plus the exact scope (process, post-processing, or order level). It is clearly distinguished from generateQuote (testing) and save (generic persistence) by name and behavior.

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?

Gives an explicit gate: only when the manufacturer asked, only after generateQuote on several real parts was compared against the live price, and only after telling them what will change. It also names the anti-pattern ('Never publish to try it out') and points to the sibling that tests without publishing.

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