Skip to main content
Glama

CULT+MATH Decision Briefs

What federal contract money does this company win, and from which agencies?

run_contractor_revenue
Read-onlyIdempotent

Use when the user is diligencing a government-services or defense target, sizing recompete risk, or asks how dependent a company is on one agency: "how much does this contractor get from the Army?", "is their federal revenue concentrated?". Returns prime contract obligations by federal fiscal year, the top awarding agencies with their shares, an agency concentration index (HHI) and the recipient names matched, from USAspending.gov. Obligations, not revenue. Refuses before you are charged if nothing is found or the totals do not reconcile. 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: by fiscal year (years); segment: awarding agency (in the result). 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 federal spending across a whole topic, use run_spend_trend.

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": {
      "recipient": "<recipient>"
    },
    "name": "run_contractor_revenue"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearsNoFiscal years to cover, ending with the current one. Default 5.
recipientYesThe company as it appears on federal awards.

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. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only cover safety (readOnly, idempotent, openWorld); the description adds the expensive parts an agent cannot infer: this call returns a quote (what is measured, price, payment_url) and the run only happens on POST to payment_url. It also discloses refusal conditions (nothing found, totals not reconciling) with no charge, the two price points and rails ($0.05 x402 USDC on Base vs $0.50 MPP Stripe token), and that every result carries a run id, date and citation line. None of this contradicts readOnlyHint, since the mutation is the paid run, not a data write.

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?

Front-loaded well: use-when, then what is returned, then the payment mechanics, then the alternative. However, the no-charge-on-failure guarantee is restated three times ('Refuses before you are charged', 'charged only when the run comes back sound', 'refuses there with nothing charged'), and the pricing paragraph is dense with parenthetical rail detail that could be tightened.

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 two-step, paid, quote-then-run tool this is complete: pricing, payment flow, failure semantics, dimensions, sourcing and the sibling alternative are all present, and an output schema exists so return-value explanation is optional. Nothing an agent needs in order to call it correctly 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, but the description adds real meaning: 'years' is framed as a time dimension that cuts the answer, and it clarifies that agency segmentation is a result dimension, not an input filter. That last point prevents an agent from trying to pass an agency argument that does not exist.

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?

States a specific verb+resource: returns prime contract obligations by federal fiscal year, top awarding agencies with shares, an HHI concentration index, and matched recipient names, sourced from USAspending.gov. It also draws the line against the sibling run_spend_trend (topic-wide spending) and against 'revenue' semantics ('Obligations, not revenue'). An agent can distinguish it from run_revenue_mix or run_spend_trend without opening any 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?

Gives explicit trigger conditions (diligencing a government-services or defense target, sizing recompete risk, agency-dependence questions) plus two concrete example user utterances. It names an alternative and the condition selecting it: 'For federal spending across a whole topic, use run_spend_trend.' Both when-to-use and when-to-use-something-else are covered.

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