Skip to main content
Glama
This connector has been deprecated

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

describePricingEquationApi

Read-onlyIdempotent

Start here before reading, writing or changing a pricing equation. Returns the TypeScript contract the equation runs against (specification, revision, requisition, customer, workflow, done(), variable(), round, useDimension, createBands; for scope ORDER: parts, subtotal, customer, addLineItem), narrowed to the given scope + ownerId: its technology, material names and material variable names, lead-time names, and which modules the manufacturer has. Explains the loop: save(entity=typescriptEquation) to validate and store a draft, generateQuote(equationId) to test it, then — only on the manufacturer's explicit request — publishEquation to make it live. Pass includeSource=true to also get the live equation's source, or equationId= to get the source of one specific equation (a draft, for example) with its live/not-live state.

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": {
      "scope": "<scope>"
    },
    "name": "describePricingEquationApi"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeYesWhich equation to describe the equation API for: PROCESS (a manufacturing process), POST_PROCESSING (a finish), or ORDER (the manufacturer's single order-level equation that adds whole-order line items). Same values as typescriptEquation.scope.
ownerIdNoThe owner: processPrices.id (UUID) for scope PROCESS, postProcessing.id (integer) for scope POST_PROCESSING. Omit for scope ORDER. Not an equationId.
equationIdNoA typescriptEquation id (UUID) of the same scope + ownerId: append THAT equation's source instead of the live one, live or not. Use it to read back a draft before you test, revise or publish it.
includeSourceNotrue to append the LIVE equation's name, variables and full source. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 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 / includeSource / default
      Added value: +false
    • addedInput schema / properties / ownerId / 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"
      +  },
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  }
      +]
    • changedInput schema / properties / ownerId / description
      Previous value: -"The owner: processPrices.id (UUID) for scope PROCESS, postProcessing.id (integer, as a string) for scope POST_PROCESSING. Omit for scope ORDER. Not an equationId."New value: +"The owner: processPrices.id (UUID) for scope PROCESS, postProcessing.id (integer) for scope POST_PROCESSING. Omit for scope ORDER. Not an equationId."
    • removedInput schema / properties / ownerId / type
      Removed value: -"string"
  2. Changed1 schema field changed
    • changedInput schema / properties / equationId / description
      Previous value: -"A typescriptEquation id (UUID) of the same scope + ownerId: append THAT version's source instead of the live one, live or not. Use it to read back a draft before you test, revise or publish it."New value: +"A typescriptEquation id (UUID) of the same scope + ownerId: append THAT equation's source instead of the live one, live or not. Use it to read back a draft before you test, revise or publish it."
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the read-only and idempotent annotations, the description explains what is returned: technology, material names and material variable names, lead-time names, available modules, and the TypeScript contract fields. It also describes how includeSource and equationId change the returned source and live/not-live state, giving an agent useful behavioral context before calling the tool.

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?

The description is front-loaded with the key instruction and return summary, and every sentence contributes useful information. It is somewhat dense because it lists many contract fields and workflow steps in a compact block, but there is little wasted wording for a tool of this complexity.

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?

There is no output schema, so the description carries the burden of explaining return content, and it does so by naming the TypeScript contract fields and the additional source data returned under includeSource or equationId. Given the complex scope and workflow, the description provides enough context for an agent to understand the tool's role and call it correctly.

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 already 100%, but the description adds meaning beyond the schema by explaining that includeSource appends the live equation source and that equationId retrieves a specific equation's source instead of the live one. It also clarifies that results are narrowed to the given scope and ownerId, though it relies on the schema for detailed enum and ownerId semantics.

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 states a specific verb and resource: it returns the TypeScript contract a pricing equation runs against, narrowed by scope and ownerId. It also clearly frames the tool as the starting point before reading, writing, or changing a pricing equation, which distinguishes it from sibling action tools such as save, generateQuote, and publishEquation.

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?

The description explicitly says to start here before reading, writing, or changing a pricing equation, and it explains the surrounding loop: save to validate/store a draft, generateQuote to test it, then publishEquation only on explicit manufacturer request. It gives parameter-specific usage for includeSource and equationId but does not explicitly state when not to use the tool or name all relevant alternatives.

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