Skip to main content
Glama

Expense data

get_expense_data
Read-onlyIdempotent

Use this when you need expense data. Returns JSON in the data field with source attribution. Read-only; the only side effect is the payment you choose to make. Kinds and prices:

  • kind="intuitive": 10 sats or $0.01 USDC. Use this when an agent needs the official GSA CONUS lodging and M&IE ceiling for one US ZIP or city on one date, plus the official IRS standard mileage rate in effect that day. CONUS only. MCP: get_expense_data(kind="intuitive", zip="20001", date="2026-11-22"). Official GSA CONUS per diem and official IRS standard mileage rates.

  • kind="stats": 50 sats or $0.05 USDC. Use this when an agent needs the official GSA CONUS rate plus the official M&IE meal breakdown, first-and-last-day M&IE, the locality's seasonal table and other specified destinations in the same state. MCP: get_expense_data(kind="stats", city="Miami", state="FL", date="2026-12-15"). Official GSA CONUS per diem and official IRS standard mileage rates.

  • kind="pro": 100 sats or $0.10 USDC. Use this when an agent needs an official multi-day CONUS trip estimate (lodging nights plus 75% M&IE on the first and last travel days, per the Federal Travel Regulation), an optional second-locality comparison, or an official IRS mileage multiplication (?miles=). MCP: get_expense_data(kind="pro", zip="33101", date="2026-12-01", end_date="2026-12-04").

  • kind="signals": 200 sats or $0.20 USDC. Use this when an agent needs official-rate flags: standard CONUS applies, high-cost locality (lodging at least 1.5 times standard CONUS), or a seasonal peak or low for that locality. Flags are comparisons of published ceilings, not travel advice. MCP: get_expense_data(kind="signals", city="San Francisco", state="CA"). Payment: Pay by calling without a credential, paying the Lightning invoice or the USDC amount, then retrying with l402_credential=':' or x402_payment. One payment buys one response. Details: https://api.bittuitive.ai/pay. Informational only; not financial, investment, legal or tax advice; provided as-is, with no warranty; verify before acting. https://api.bittuitive.ai/disclaimer.

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": {
      "kind": "<kind>"
    },
    "name": "get_expense_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
zipNoParameter zip.
cityNoParameter city.
dateNoParameter date.
kindYesProduct to fetch. Every kind, its price and when to use it are listed in the tool description.
milesNoParameter miles.
stateNoParameter state.
nightsNoParameter nights.
end_dateNoParameter end_date.
compare_zipNoParameter compare_zip.
compare_cityNoParameter compare_city.
credit_tokenNoPrepaid token (btf_..., from buy_credits). Pays this call from your prepaid sats or USDC balance with no invoice; a failed call is refunded. Balance is non-refundable.
x402_paymentNox402 payment (USDC on Base): base64 PaymentPayload signed for accepts[0] of the payment_required result. Alternative to l402_credential; also accepted in params._meta['x402/payment'].
compare_stateNoParameter compare_state.
l402_credentialNoL402 credential '<macaroon>:<preimage_hex>' from a paid invoice (or an active subscription). Omit it on the first call to receive the Lightning invoice and macaroon.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, yet the description still adds substantial behavior: the payment flow (call unauthenticated, receive invoice/macaroon, retry with l402_credential or x402_payment), the one-payment-one-response rule, the prepaid credit_token path, and the fact that the only side effect is the purchase itself — which reconciles the readOnly hint with a paid tool. It also discloses the response shape ('JSON in the `data` field with source attribution') and includes a verify-before-acting disclaimer.

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-loading is good — purpose, return shape, and side-effect framing come first, followed by a scannable bullet list keyed by kind. But the sentence 'Official GSA CONUS per diem and official IRS standard mileage rates.' is repeated verbatim in three consecutive bullets, and the payment/disclaimer boilerplate is verbose. The definition is longer than it needs to be for the information it carries.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 14-parameter, multi-product, monetized tool with no output schema, the description covers the essentials: what each product returns conceptually, how to authenticate and pay, how to retry after payment, and what the top-level `data` field holds. Remaining gaps are modest — per-kind accepted/ignored parameters and the `nights` parameter's role aren't fully stated.

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 nominally 100%, but most property descriptions are placeholders ('Parameter zip.'), so the description is doing real work: the examples show that zip/date pair with 'intuitive', city/state/date with 'stats', and zip/date/end_date with 'pro'. It also explains that ?miles= triggers mileage multiplication and that a compare_* pair enables a second-locality comparison. `nights` and the exact rules for which optional params each kind accepts are still only indirectly implied.

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 opening line ('Use this when you need expense data') is generic, but the bullet list quickly pins the resource down: official GSA CONUS per diem ceilings and official IRS standard mileage rates, returned as JSON in a `data` field. Each `kind` names a distinct product scope (single ZIP/city lookup, meal breakdown plus seasonal table, multi-day trip estimate, official-rate flags). It does not differentiate itself from siblings such as get_travel_data or get_rates_data, which is the only real clarity gap.

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?

Every `kind` carries an explicit 'Use this when an agent needs…' clause that states the exact decision condition (single ZIP on one date, meal breakdown, multi-day trip with first/last-day 75% M&IE, or rate flags), plus a worked MCP call showing the parameter combination for that variant. This is the central selection decision for a multi-tier tool, and it is spelled out rather than implied. No sibling-level exclusion is given, but nothing about the tool's own routing is left to inference.

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