Skip to main content
Glama

Compare Run Plan Sources

compare_run_plan_sources
Read-only

Compare EVERY eligible supplier source for one item using forecast-derived run cadences, realized selling price, setup cost, carrying cost, payback, return on spend, and return on capital. Preferred/default supplier is reported as policy context and breaks only economic ties; it never bypasses the comparison. Returns decision=Abstain with no recommendedOptionIndex when all scenarios lose money/capital or demand is insufficient. Pure read: does not create a proposal, quote, purchase order, or any other record.

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": {
      "itemSku": "<itemSku>"
    },
    "name": "compare_run_plan_sources"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemSkuYesThe item SKU to plan. Matching is case-insensitive.

Output Schema

NameRequiredDescriptionDefault
okNo
itemIdNo
itemSkuNo
sourcesNo
clientIdNo
decisionNo
itemNameNo
sourceErrorsNo
feedFreshnessNo
feedLastSyncAtNo
economicVerdictNo
preferredSourceLabelNo
diagnosticOptionIndexNo
economicVerdictReasonNo
recommendedOptionIndexNo
recommendedSourceLabelNo

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 readOnlyHint, destructiveHint=false and openWorldHint=false, yet the description still adds substantive behavior: the preferred/default supplier is policy context that only breaks economic ties and never bypasses comparison, and the tool returns decision=Abstain with no recommendedOptionIndex when all scenarios lose money or demand is insufficient. That abstain semantics is genuinely non-obvious and valuable. It stops short of describing cost/rate limits or performance characteristics on a multi-scenario comparison, so it is not a 5.

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?

Three sentences, front-loaded with the action, then the tie-breaking rule, then the abstain outcome and read-only guarantee — a sensible information order with no filler. The metric enumeration in sentence one is dense but earns its place by preempting questions about methodology.

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?

An output schema exists, so return shape need not be restated, and the description still covers the one non-obvious output signal (decision=Abstain, absent recommendedOptionIndex). For a single-param, fully documented analysis tool this leaves no meaningful gap for an agent deciding whether and how to call it.

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?

Only one parameter exists and the schema documents it fully, including case-insensitive matching, so the description carries little burden. What it does add is scoping meaning — that comparison is confined to one item and covers every eligible source — which clarifies the grain of the query beyond the schema text.

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 ("Compare EVERY eligible supplier source for one item") and enumerates the economic criteria used, so the agent knows exactly what computation this performs. It also explicitly negates adjacent capabilities ("does not create a proposal, quote, purchase order"), which separates it from siblings like create_run_quote.

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 context is implied by the possessive scope ("for one item") and the pure-read disclaimer, which tells the agent this is an analysis step rather than a commit step. However, there is no explicit when-to-use statement and no sibling named as the alternative for the write-side path, leaving the agent to infer routing from the negation.

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