Skip to main content
Glama

CULT+MATH Decision Briefs

Has this input cost reached the company's margin?

run_cost_squeeze
Read-onlyIdempotent

Use when the user asks whether a commodity shock (cocoa, coffee, sugar, wheat, corn, beef, aluminum, crude oil) has squeezed a public company's margin, whether it passed the cost through, or what a price spike will do to a supplier. Returns the commodity's average price change and the company's gross margin for each fiscal year since 2019, with a verdict: squeezed, held, or widened. Refuses before you are charged if the commodity moved less than 25%. Every result carries a run id, a date and a citation line. Calling this tool returns a quote, not the result: what the run measures, its price and a payment_url. The run happens only when you POST to payment_url, and a run that fails its controls refuses there with nothing charged. Dimensions (vary these inputs to cut the answer; each call is its own run): over time: built in: fiscal years since 2019; segment: commodity. Price: $0.05 per run over x402 (USDC on Base, no account needed), or $0.50 over MPP (a Stripe shared payment token); charged only when the run comes back sound. For where US imports of a product come from, use run_trade_concentration.

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": {
      "ticker": "<ticker>",
      "commodity": "<commodity>"
    },
    "name": "run_cost_squeeze"
  }
}

Input Schema

NameRequiredDescriptionDefault
tickerYesThe company.
commodityYesThe input, as an IMF global price.

Output Schema

NameRequiredDescriptionDefault
noteNoWhy the run is unavailable, when it is.
errorNoWhy the inputs were refused, with the expected usage. Nothing is charged.
limitsNoWhat the run cannot tell you, stated before you pay.
recipeNoThe run, e.g. "filing-trend".
availableNofalse when the run is switched off; then nothing can be charged.
next_stepNoWhat to tell the user before paying.
price_usdNoPrice over MPP (Stripe shared payment token).
payment_urlNoPOST here to run and pay. Not a checkout page.
instructionsNoHow to pay over MPP and x402, and how to ask for publication.
what_you_getNoWhat the paid result will contain for these inputs.
x402_price_usdNoPrice over x402 (USDC on Base), when offered.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / ticker / enum
      Previous value: -[
      -  "PEP",
      -  "KO",
      -  "K",
      -  "POST",
      -  "KDP",
      -  "CELH",
      -  "UTZ",
      -  "HRL",
      -  "GIS",
      -  "KHC",
      -  "CAG",
      -  "CPB",
      -  "HSY",
      -  "MDLZ",
      -  "SJM",
      -  "CLX",
      -  "CL",
      -  "CHD",
      -  "PG",
      -  "SMPL",
      -  "BRBR",
      -  "MSFT",
      -  "EA",
      -  "TTWO",
      -  "RBLX",
      -  "OMC",
      -  "STGW",
      -  "CRM",
      -  "HUBS",
      -  "TDOC",
      -  "TALK",
      -  "GDDY",
      -  "GEN",
      -  "NFLX",
      -  "AMZN",
      -  "DKNG",
      -  "FLUT",
      -  "CHDN",
      -  "PENN",
      -  "RSI",
      -  "MSGS",
      -  "BATRA",
      -  "TKO",
      -  "LYV",
      -  "SPHR",
      -  "MSGE"
      -]New value: +[
      +  "PEP",
      +  "KO",
      +  "K",
      +  "POST",
      +  "KDP",
      +  "CELH",
      +  "UTZ",
      +  "HRL",
      +  "GIS",
      +  "KHC",
      +  "CAG",
      +  "CPB",
      +  "HSY",
      +  "MDLZ",
      +  "SJM",
      +  "CLX",
      +  "CL",
      +  "CHD",
      +  "PG",
      +  "SMPL",
      +  "BRBR",
      +  "MSFT",
      +  "EA",
      +  "TTWO",
      +  "RBLX",
      +  "OMC",
      +  "STGW",
      +  "CRM",
      +  "HUBS",
      +  "TDOC",
      +  "TALK",
      +  "GDDY",
      +  "GEN",
      +  "NFLX",
      +  "AMZN",
      +  "DKNG",
      +  "FLUT",
      +  "CHDN",
      +  "PENN",
      +  "RSI",
      +  "MSGK",
      +  "BATRA",
      +  "TKO",
      +  "LYV",
      +  "SPHR",
      +  "MSGE"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / ticker / enum
      Previous value: -[
      -  "PEP",
      -  "KO",
      -  "K",
      -  "POST",
      -  "KDP",
      -  "CELH",
      -  "UTZ",
      -  "HRL",
      -  "GIS",
      -  "KHC",
      -  "CAG",
      -  "CPB",
      -  "HSY",
      -  "MDLZ",
      -  "SJM",
      -  "CLX",
      -  "CL",
      -  "CHD",
      -  "PG",
      -  "SMPL",
      -  "BRBR",
      -  "MSFT",
      -  "EA",
      -  "TTWO",
      -  "RBLX",
      -  "OMC",
      -  "STGW",
      -  "CRM",
      -  "HUBS",
      -  "TDOC",
      -  "TALK",
      -  "GDDY",
      -  "GEN",
      -  "NFLX",
      -  "AMZN"
      -]New value: +[
      +  "PEP",
      +  "KO",
      +  "K",
      +  "POST",
      +  "KDP",
      +  "CELH",
      +  "UTZ",
      +  "HRL",
      +  "GIS",
      +  "KHC",
      +  "CAG",
      +  "CPB",
      +  "HSY",
      +  "MDLZ",
      +  "SJM",
      +  "CLX",
      +  "CL",
      +  "CHD",
      +  "PG",
      +  "SMPL",
      +  "BRBR",
      +  "MSFT",
      +  "EA",
      +  "TTWO",
      +  "RBLX",
      +  "OMC",
      +  "STGW",
      +  "CRM",
      +  "HUBS",
      +  "TDOC",
      +  "TALK",
      +  "GDDY",
      +  "GEN",
      +  "NFLX",
      +  "AMZN",
      +  "DKNG",
      +  "FLUT",
      +  "CHDN",
      +  "PENN",
      +  "RSI",
      +  "MSGS",
      +  "BATRA",
      +  "TKO",
      +  "LYV",
      +  "SPHR",
      +  "MSGE"
      +]
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "available": {
      +      "description": "false when the run is switched off; then nothing can be charged.",
      +      "type": "boolean"
      +    },
      +    "error": {
      +      "description": "Why the inputs were refused, with the expected usage. Nothing is charged.",
      +      "type": "string"
      +    },
      +    "instructions": {
      +      "description": "How to pay over MPP and x402, and how to ask for publication.",
      +      "type": "object"
      +    },
      +    "limits": {
      +      "description": "What the run cannot tell you, stated before you pay."
      +    },
      +    "next_step": {
      +      "description": "What to tell the user before paying.",
      +      "type": "string"
      +    },
      +    "note": {
      +      "description": "Why the run is unavailable, when it is.",
      +      "type": "string"
      +    },
      +    "payment_url": {
      +      "description": "POST here to run and pay. Not a checkout page.",
      +      "type": "string"
      +    },
      +    "price_usd": {
      +      "description": "Price over MPP (Stripe shared payment token).",
      +      "type": "number"
      +    },
      +    "recipe": {
      +      "description": "The run, e.g. \"filing-trend\".",
      +      "type": "string"
      +    },
      +    "what_you_get": {
      +      "description": "What the paid result will contain for these inputs.",
      +      "type": "string"
      +    },
      +    "x402_price_usd": {
      +      "description": "Price over x402 (USDC on Base), when offered.",
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  4. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, it discloses the two-phase paid flow (the call returns a quote with price and payment_url; the run only happens on POST), the billing rails and prices ($0.05 x402 USDC on Base, $0.50 MPP), and that a failed run refuses with nothing charged. It also states every result carries a run id, date and citation line — behavior the annotations cannot express. The only mild tension is 'each call is its own run' against idempotentHint=true, but since the call itself only returns a quote, this is not a contradiction.

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?

It is front-loaded with the trigger sentence and the return content, and every block (verdicts, refusal gate, quote-vs-result, pricing, alternative) carries decision-relevant information for a paid tool. It is dense and slightly sprawling — the 'Dimensions (vary these inputs ...)' clause is awkwardly worded — but there is no 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?

For a paid, two-parameter, open-world run, the description covers eligibility, cost, the exact invocation sequence, refund-on-failure behavior, and result provenance, while the existing output schema carries return shape. An agent has everything needed to decide to call it and to complete the run.

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% with enum-constrained ticker and commodity plus their descriptions, so the schema already does most of the work. The description adds real meaning by explaining the dimensional structure: time is fixed (fiscal years since 2019) and commodity is the segment, so the two inputs are the only levers, and varying them changes the answer.

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 names a concrete question type (has a commodity shock squeezed a public company's margin, was it passed through, what a spike does to a supplier) and a concrete output (commodity average price change plus gross margin per fiscal year since 2019, with a squeezed/held/widened verdict). It also explicitly distinguishes itself from run_trade_concentration for import-sourcing questions, so an agent can route without opening a schema.

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 gives a precise trigger ('use when the user asks whether a commodity shock ... has squeezed a public company's margin'), names the excluded case handled by a sibling ('For where US imports of a product come from, use run_trade_concentration'), and states a hard eligibility gate ('refuses before you are charged if the commodity moved less than 25%').

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