Skip to main content
Glama
This connector has been deprecated

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

explainPrice

Read-onlyIdempotent

Explain why an existing requisition (order line) costs what it does. Recomputes its price from its actual configuration on the equation versions, material versions and settings it was quoted on, returns the price breakdown plus the pricing-equation variables behind it, compares it against the stored quotedPrice, and reports whether newer pricing is available. Individual pricing-equation variables can be manually overridden per line, so a returned variable value may be an override rather than what the equation would compute. To understand a price, examine these variables and reconcile them against describePricingEquationApi(includeSource=true) (the formula and how each variable is derived) and query materialPrices (by processPricesId + materialId, for the material's density and the rate values the equation reads off the material); a variable that doesn't reconcile with the equation and material rates has been overridden. For a hypothetical or what-if part, use generateQuote instead.

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": {
      "requisitionId": "<requisitionId>"
    },
    "name": "explainPrice"
  }
}

Input Schema

NameRequiredDescriptionDefault
requisitionIdYesThe requisition id (query(entity="requisition")).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / requisitionId / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / requisitionId / minimum
      Added value: +-9007199254740991
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the bar is lower; the description still adds substantial non-obvious behavior: price is recomputed on the originally quoted versions and settings rather than current ones, newer pricing availability is reported, and — most valuable — returned variable values may be manual per-line overrides rather than computed values. It gives a reconciliation procedure for detecting such overrides. It does not mention cost, latency, or failure modes for stale/missing requisitions.

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 core purpose is front-loaded in the first sentence, followed by behavior, then the interpretation guidance and the alternative. The middle sentences are dense and nest several clauses (versions, settings, breakdown, comparison, newer pricing), but each carries information an agent needs. Slightly heavy for a one-parameter tool, though nothing is pure filler.

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 must convey return contents — and it does: price breakdown, the pricing-equation variables behind it, a comparison against stored quotedPrice, and a newer-pricing indicator. Combined with the override caveat and the cross-tool reconciliation guidance, an agent has everything needed to call and interpret this tool.

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% for the single required parameter, so the schema already documents requisitionId. The description adds only the clarification that a requisition corresponds to an order line, which is marginal but useful. Baseline 3 applies when the schema carries the 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 opens with a specific verb and resource: explain why an existing requisition (order line) costs what it does. It then enumerates the concrete operations — recompute from actual configuration on the quoted equation/material versions and settings, return the breakdown and equation variables, compare against stored quotedPrice, and flag newer pricing. This distinguishes it clearly from generateQuote (hypothetical) and describePricingEquationApi (formula documentation).

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?

It states explicit when-to-use (existing requisition, understand its actual price) and when-not (hypothetical or what-if part → use generateQuote). It also names the supporting tools needed to interpret results — describePricingEquationApi(includeSource=true) for the formula and materialPrices (by processPricesId + materialId) for density/rates — so the agent knows both the entry point and the investigation path.

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