Skip to main content
Glama

CULT+MATH Decision Briefs

Is the government actually spending on this?

run_spend_trend
Read-onlyIdempotent

Use when the user asks whether federal money backs a market, technology or policy, or wants evidence beyond announcements. Returns the share of U.S. federal prime contract obligations matching the phrase, by fiscal year, from USAspending.gov, against all contract obligations. 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: share by fiscal year (start-end). 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. To check 10-K filings and federal rules as well, use run_triangulation. A real sample of this run, free: https://cultmath.com/agent/samples/spend-trend.json

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": {
      "phrase": "<phrase>"
    },
    "name": "run_spend_trend"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoLast fiscal year, not after the current one. At most 10.
startNoFirst federal fiscal year. Default: four years ago.
phraseYesThe phrase to measure, without quote marks.

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. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Far beyond what the annotations cover: the call returns a quote, not the result; the run executes only when the caller POSTs to payment_url; failed controls are refused at that point with nothing charged; pricing is $0.05 per run over x402 (USDC on Base, no account) or $0.50 over MPP. That is exactly the mutation and cost behavior an agent needs before committing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Everything present is useful, but it is packed into one undifferentiated paragraph with payment mechanics wedged between the dimension description and the fallback pointer. The parenthetical "Dimensions (vary these inputs to cut the answer; each call is its own run): over time: built in:" is awkward and hard to parse.

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-step, quote-then-POST tool, the definition covers the measurement, the price and rails, the failure/no-charge behavior, the run id/date/citation envelope, the alternative tool, and a free sample URL. Combined with an output schema and full param coverage, nothing material 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, but the description adds the non-obvious framing that start/end define the fiscal-year span that varies the answer and that each call is its own paid run. It does not restate the schema's default and maximum values, which is fine given coverage is complete.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific measurement: the share of U.S. federal prime contract obligations matching a phrase, by fiscal year from USAspending.gov, against all contract obligations. It also carves out a boundary from run_triangulation. It loses a point because the first sentence is a usage trigger rather than a purpose statement, so what the tool actually does is buried mid-paragraph.

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?

It gives an explicit trigger ("when the user asks whether federal money backs a market, technology or policy, or wants evidence beyond announcements") and names an alternative for the broader case (run_triangulation for 10-K filings and federal rules). It also tells the caller to vary the inputs to cut the answer. It never states when not to use it, e.g. for state/local spending or grants rather than contracts.

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