Skip to main content
Glama

CULT+MATH Decision Briefs

What are the odds this US series crosses a line in the next three months?

run_threshold_odds
Read-onlyIdempotent

Use when the user's plan turns on whether rent, food prices, household energy, wages or retail sales will be above or below a level soon: "what are the chances rent inflation is above 3% in December?", "will grocery store sales grow more than 2%?". The operating numbers a plan is built on, not headline CPI. Returns a probability in percent and in words, the central forecast and its 80% range, and the same question answered by "same month last year" and by the historical base rate, so you can see what the model adds. Up to 3 months past the latest published figure only: further out, the method missed by up to 21 points in testing. Refuses before you are charged when the series fails its benchmark today or the month is out of range. Each sold call is scored when the month is published. 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: one month up to three ahead (month); segment: series, line (yoy_pct) and direction. 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 the full 12-month path, use run_series_forecast.

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": {
      "series": "<series>",
      "month": "<month>",
      "yoy_pct": "<yoy_pct>"
    },
    "name": "run_threshold_odds"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthYesThe target month, YYYY-MM, 1 to 3 months after the latest published figure.
seriesYesThe FRED series ID, e.g. CUUR0000SEHA (rent), CUUR0000SAF11 (food at home), CEU0500000003 (hourly earnings), MRTSSM4451USN (grocery store sales), RSXFSN (retail sales).
yoy_pctYesThe line: year-on-year change in percent, e.g. 3 for 3.0%.
directionNoWhether you want the odds of being above or below the line. Default above.

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
    • 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"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / series / description
      Previous value: -"The FRED series ID, e.g. CPIAUCNS (CPI, all items), CUUR0000SEHA (rent), CEU0500000003 (hourly earnings), RSXFSN (retail sales)."New value: +"The FRED series ID, e.g. CUUR0000SEHA (rent), CUUR0000SAF11 (food at home), CEU0500000003 (hourly earnings), MRTSSM4451USN (grocery store sales), RSXFSN (retail sales)."
    • changedInput schema / properties / series / enum
      Previous value: -[
      -  "CUUR0000SEHA",
      -  "CUUR0000SAF11",
      -  "CUUR0000SAH21",
      -  "CEU0500000003",
      -  "CUUR0000SAE1",
      -  "RSXFSN",
      -  "MRTSSM44000USN",
      -  "MRTSSM4451USN",
      -  "CPIAUCNS",
      -  "IPG2211A2N"
      -]New value: +[
      +  "CUUR0000SEHA",
      +  "CUUR0000SAF11",
      +  "CUUR0000SAH21",
      +  "CEU0500000003",
      +  "CUUR0000SAE1",
      +  "RSXFSN",
      +  "MRTSSM44000USN",
      +  "MRTSSM4451USN",
      +  "IPG2211A2N"
      +]
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare read-only/idempotent/non-destructive/open-world, while the description adds the whole operational reality: the call returns a quote (not the result) with price and payment_url, the run only occurs on POST, failures refuse before charging, and each sold call is scored at publication. It also discloses accuracy limits and the run id/date/citation attached to results, which no structured field covers.

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 when-to-use and examples, then limits, then mechanics and price — a sensible order. It is dense and slightly repetitive on the refusal/charging point ("Refuses before you are charged" and "a run that fails its controls refuses there with nothing charged"), but nearly every sentence carries decision-relevant information.

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, paid-again-on-POST, probabilistic tool with four params and an output schema, the description covers trigger, horizon limits, price, payment mechanics, refund/refusal behavior, and what a result contains. Nothing an agent needs in order to call it or explain the cost to a user 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 adds the framing that inputs are dimensions (over time: month; segment: series, line via yoy_pct, direction) and that varying them makes each call its own paid run. That is genuine meaning beyond the schema, though the enum IDs and line definition themselves are only in the schema.

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 title and opening line state a specific verb and resource: the probability that a US series (rent, food prices, energy, wages, retail sales) crosses a named line in the near term. It gives concrete user-phrasing examples and explicitly contrasts scope with run_series_forecast, which covers the 12-month path. An agent can route without opening either 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?

Usage is spelled out with trigger phrasing ("what are the chances rent inflation is above 3% in December?"), an explicit boundary (up to 3 months past the latest published figure, with a stated 21-point failure beyond that), and a named alternative for the longer horizon. The when-not condition is quantified rather than implied.

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