← RampCONTENT HISTORY

Update to Ramp

Snapshot Nov 24, 2026 · 00:11 UTC · version 4.0.0

Collection source: downloaded plugin package.

WHAT CHANGED

First saved snapshot

No earlier snapshot is available to establish a change.

Save Ramp and check future changes in Following.

Up to 3 plugins free · no card required.

Compare saved observations

Download comparison JSON
Full technical diff · 0 changed fields
Full snapshot data
{
  "description": "Analyze spend by vendor, category, or team over a date range. Pulls card transactions\nand bill payments, aggregates totals, and produces summary tables.\nUse when: 'how much did we spend on', 'vendor spend', 'SaaS review', 'spend report',\n'inference costs', 'total spend', 'spend by vendor', 'spend analysis',\n'pull transactions for', 'cost breakdown'.\nDo NOT use for: approving transactions (use ramp-approval-dashboard), uploading receipts\n(use ramp-complete-expenses), or verifying a single bill payment (use ramp-payment-lookup).",
  "included_files": [],
  "name": "ramp-spend-analysis",
  "skill_md_contents": "---\nname: ramp-spend-analysis\narea: Cards and Spend\nsupported_surfaces: [cli, mcp]\ndescription: |-\n  Analyze spend by vendor, category, or team over a date range. Pulls card transactions\n  and bill payments, aggregates totals, and produces summary tables.\n  Use when: 'how much did we spend on', 'vendor spend', 'SaaS review', 'spend report',\n  'inference costs', 'total spend', 'spend by vendor', 'spend analysis',\n  'pull transactions for', 'cost breakdown'.\n  Do NOT use for: approving transactions (use ramp-approval-dashboard), uploading receipts\n  (use ramp-complete-expenses), or verifying a single bill payment (use ramp-payment-lookup).\n---\n\n## Non-Negotiables\n\n- **Pass `--rationale` on every command** — it is a required field on these agent-tools (a non-empty string, max 1024 chars). With `--json`, supply it as a `\"rationale\"` key in the body. Omitting it returns `HTTP 422 (DEVELOPER_INVALID_SCHEMA)`, in both agent and human modes.\n- Always query both **transactions** and **bills** when investigating complete vendor spend. Card charges and bill payments are separate resources — there is no unified spend endpoint.\n- Never treat a search result's bill `amount` as paid-in-period spend. It is the full invoice amount, and a payment-date match may represent only one partial payment. A complete paid total requires payment-allocation amounts and dates from another source.\n- Pass `--agent` for machine-readable JSON output on all commands.\n- Handle amount format differences: transactions use strings (`\"$1,048.25\"`, `\"-$259.49\"`), bills use numbers (`15000`), PO amounts use numbers. Reimbursement amounts are in dollars.\n- Paginate until `next_page_cursor` is null — a single page may not return everything.\n- Flag vendor name variants explicitly (e.g., \"Delta Air Lines\" vs \"Delta Airlines\") — the API does not normalize.\n- Negative transaction amounts are refunds. Include them in totals but call them out.\n\n## Workflow\n\n### Step 1: Pull card transactions\n\nFor each vendor (or all vendors if doing a broad analysis):\n\n```bash\nramp transactions list \\\n  --transactions_to_retrieve all_transactions_across_entire_business \\\n  --reason_memo_merchant_or_user_name_text_search \"<vendor>\" \\\n  --from_date <YYYY-MM-DD> \\\n  --to_date <YYYY-MM-DD> \\\n  --include_count \\\n  --page_size 200 \\\n  --agent --rationale \"List the user's transactions\"\n```\n\nIf `next_page_cursor` is not null, paginate:\n\n```bash\nramp transactions list \\\n  --transactions_to_retrieve all_transactions_across_entire_business \\\n  --reason_memo_merchant_or_user_name_text_search \"<vendor>\" \\\n  --from_date <YYYY-MM-DD> \\\n  --to_date <YYYY-MM-DD> \\\n  --page_size 200 \\\n  --next_page_cursor \"<cursor>\" \\\n  --agent --rationale \"List the user's transactions\"\n```\n\n**For broad analysis (all vendors):** Omit `--reason_memo_merchant_or_user_name_text_search` to pull all transactions, then group client-side.\n\n### Step 2: Pull bill payments\n\nFor a specific vendor:\n\n```bash\nramp bills search --query \"<vendor>\" --include_paid \\\n  --from_payment_date <YYYY-MM-DD> --to_payment_date <YYYY-MM-DD> \\\n  --limit 50 --agent --rationale \"Search bills paid during the user's requested period\"\n```\n\nFor broad analysis (all vendors):\n\n```bash\nramp bills search --include_paid \\\n  --from_payment_date <YYYY-MM-DD> --to_payment_date <YYYY-MM-DD> \\\n  --limit 50 --agent --rationale \"Search all bills paid during the user's requested period\"\n```\n\nRepeat either with `--page_cursor` if `next_page_cursor` is not null, preserving the same query and date bounds on every page.\n\n**Note:** Use `from_payment_date` and `to_payment_date` to find bills with payment activity in the period, then use each result's `payment_date` when presenting or validating the period. Do not substitute `due_date`: it describes when payment was due, not when spend was paid. A matched bill may be partially paid, while its `amount` is the full invoice amount. Do not add that amount to actual spend without payment-allocation data. Bills with `payment_status: \"OPEN\"` are unpaid — report them separately as commitments.\n\n### Step 3: Parse and aggregate\n\n#### Transaction amounts (strings → numbers)\n\n```bash\n# Sum a single vendor's transactions\n... | jq '[.data[0].transactions[].amount | gsub(\",\"; \"\") | if startswith(\"-$\") then ltrimstr(\"-$\") | tonumber | (. * -1) elif startswith(\"$\") then ltrimstr(\"$\") | tonumber else tonumber end] | add'\n```\n\n#### Bill amounts are invoice amounts, not paid amounts\n\nUse bill search to identify payment activity and relevant bill IDs. Do not sum\n`BillInfo.amount` as paid-in-period spend: payment-date filtering can match one\ninstallment of a partially paid bill while `amount` remains the full invoice\namount. Only combine bills into an actual-spend total when payment-allocation\namounts and dates are available; otherwise present the card subtotal and matched\nbills separately, and label the complete paid total unavailable.\n\n#### Multi-vendor table with pagination\n\nFetch all pages first, then aggregate. Write only the minimum fields needed into\na **fresh per-run directory** (`mktemp -d`) — never a fixed path or glob shared\nacross runs, or stale pages from a previous or concurrent analysis get silently\nincluded in the totals. These files can contain sensitive spend data: do not\ncommit or upload them, redact values before any user-approved sharing, and\ndelete the directory as soon as the analysis is complete. The loop continues\nuntil `next_page_cursor` is null:\n\n```bash\nrun_dir=$(mktemp -d /tmp/spend_analysis.XXXXXX)\n\n# Page 1\nramp transactions list \\\n  --transactions_to_retrieve all_transactions_across_entire_business \\\n  --from_date 2026-01-01 --page_size 200 --include_count --agent \\\n  --rationale \"List the user's transactions\" \\\n  > \"$run_dir/txns_page1.json\"\n\n# Page 2+ (repeat until next_page_cursor is null)\nramp transactions list \\\n  --transactions_to_retrieve all_transactions_across_entire_business \\\n  --from_date 2026-01-01 --page_size 200 --include_count --agent \\\n  --next_page_cursor \"<cursor from previous page>\" \\\n  --rationale \"List the user's transactions\" \\\n  > \"$run_dir/txns_page2.json\"\n```\n\nThen merge all pages from this run's directory and build the vendor table:\n\n```bash\njq -s -r '\n  [.[].data[0].transactions[] |\n    {merchant: .merchant_name,\n     amt: (.amount | gsub(\",\"; \"\") |\n       if startswith(\"-$\") then ltrimstr(\"-$\") | tonumber | (. * -1)\n       elif startswith(\"$\") then ltrimstr(\"$\") | tonumber\n       else tonumber end)}]\n  | group_by(.merchant)\n  | map({vendor: .[0].merchant, total: (map(.amt) | add), count: length})\n  | sort_by(-.total)\n  | .[] | \"\\(.vendor)\\t$\\(.total)\\t(\\(.count) txns)\"\n' \"$run_dir\"/txns_page*.json\n```\n\nClean up with `rm -rf \"$run_dir\"` when the analysis is done.\n\n### Step 4: Present results\n\nFormat as a clear table:\n\n```\nVendor Spend: 2026-01-01 to 2026-04-01\n\nVendor              Card Spend    Bills Matched    Complete Paid Total\n─────────────────────────────────────────────────────────────────────\nFigma               $24.00        0                $24.00\nDelta Airlines      $3,663.73     0                $3,663.73\nAWS                 $12,450.00    2                Requires payment-allocation data\n\nConfirmed card subtotal: $16,137.73\n```\n\nCall out:\n- **Vendor name variants** found (e.g., \"Delta Air Lines\" + \"Delta Airlines\")\n- **Refunds** included in the totals\n- **Bills vs transactions** breakdown if both exist for a vendor; do not add full invoice amounts to paid spend\n- **Pagination** — whether all results were captured or if there are more pages\n\n## Fields Available\n\n### From `transactions list`\n\n| Field | Description |\n|---|---|\n| `transaction_uuid` | Transaction UUID (use for deduplication) |\n| `merchant_name` | Merchant name (not normalized) |\n| `amount` | Formatted string (`\"$8.00\"`, `\"-$259.49\"`, `\"$1,048.25\"`) |\n| `transaction_time` | ISO 8601 timestamp |\n| `spent_by_user` | Employee name |\n| `merchant_category` | Category (e.g., \"SaaS / Software\", \"Airlines\") |\n| `reason_or_justification` | Memo / reason |\n| `spend_allocation_name` | Fund / budget name |\n| `transaction_link` | Direct link to transaction in Ramp UI |\n\n### From `bills search`\n\n| Field | Description |\n|---|---|\n| `id` | Bill UUID |\n| `vendor_name` | Payee name |\n| `amount` | Full invoice amount in dollars; not necessarily the amount paid in the requested period |\n| `invoice_number` | Vendor invoice number |\n| `payment_date` | Displayed payment date, typically the scheduled or sent date |\n| `payment_status` | Payment state |\n| `memo` | Bill description |\n\n## Multi-Vendor Queries\n\nFor SaaS reviews or inference spend monitoring, run vendors in parallel:\n\n```bash\n# Run these concurrently\nramp transactions list --transactions_to_retrieve all_transactions_across_entire_business \\\n  --reason_memo_merchant_or_user_name_text_search \"Figma\" --from_date 2026-01-01 --include_count --agent --rationale \"List the user's transactions\"\n\nramp transactions list --transactions_to_retrieve all_transactions_across_entire_business \\\n  --reason_memo_merchant_or_user_name_text_search \"Anthropic\" --from_date 2026-01-01 --include_count --agent --rationale \"List the user's transactions\"\n\nramp transactions list --transactions_to_retrieve all_transactions_across_entire_business \\\n  --reason_memo_merchant_or_user_name_text_search \"OpenAI\" --from_date 2026-01-01 --include_count --agent --rationale \"List the user's transactions\"\n```\n\n**Tip:** For vendors with known name variants, run multiple searches and deduplicate by `transaction_uuid`:\n- \"AWS\" and \"Amazon Web Services\"\n- \"Delta Air Lines\" and \"Delta Airlines\"\n\n## Vendor Name Variant Detection\n\nThe API does not normalize merchant names. Common variants to watch for:\n\n| Vendor | Possible variants |\n|---|---|\n| AWS | \"AWS\", \"Amazon Web Services\", \"Amazon.com Services\" |\n| Delta | \"Delta Air Lines\", \"Delta Airlines\" |\n| Google | \"Google Cloud\", \"Google\", \"GCP\" |\n\nWhen running broad analysis (all transactions), group results and flag merchants with similar names. The agent should suggest merges.\n\n## Example Session\n\n```\nUser: How much have we spent on Figma this year?\n\nAgent: Let me pull both card transactions and bills.\n> ramp transactions list --transactions_to_retrieve all_transactions_across_entire_business \\\n>   --reason_memo_merchant_or_user_name_text_search \"Figma\" \\\n>   --from_date 2026-01-01 --to_date 2026-04-01 --include_count --agent \\\n>   --rationale \"List the user's transactions\"\n> ramp bills search --query \"Figma\" --include_paid --from_payment_date 2026-01-01 \\\n>   --to_payment_date 2026-04-01 --limit 50 --agent \\\n>   --rationale \"Search Figma bills paid during the user's requested period\"\n\nFigma spend (2026-01-01 to 2026-04-01):\n\n  Card transactions: 3 totaling $24.00\n    $8.00  Michael Scott  2026-03-17  \"Trial spend for one Sales user\"\n    $8.00  Michael Scott  2026-03-17  \"Trial spend for one Sales user\"\n    $8.00  Michael Scott  2026-03-17  \"Trial spend for one Sales user\"\n\n  Bills: 0\n\n  Total: $24.00\n\nNote: There's also an open PO for Figma Enterprise ($150,042.75, PO #9880)\nif you want to check commitment vs actual spend.\n\nUser: Give me a full SaaS vendor breakdown\n\nAgent: Pulling all card transactions and bills with payment activity, then matching them by vendor...\n> ramp transactions list --transactions_to_retrieve all_transactions_across_entire_business \\\n>   --from_date 2026-01-01 --to_date 2026-04-01 --page_size 200 --include_count \\\n>   --agent --rationale \"List the user's transactions\"\n> ramp bills search --include_paid --from_payment_date 2026-01-01 \\\n>   --to_payment_date 2026-04-01 --limit 50 --agent \\\n>   --rationale \"Search all bills paid during the user's requested period\"\n> # Paginate both searches to completion, then merge by vendor.\n\nSaaS Vendor Spend Review (2026-01-01 to 2026-04-01):\n\nVendor              Card Spend    Bills Matched    Complete Paid Total\n─────────────────────────────────────────────────────────────────────\nBrown Group         $50,000.00    1                Requires payment-allocation data\nCochran Ltd         $21,500.00    0                $21,500.00\nGoody               $9,119.13     2                Requires payment-allocation data\nMorris-Allen        $8,900.00     0                $8,900.00\nFigma               $24.00        1                Requires payment-allocation data\n\n⚠ Vendor name variants detected:\n  \"Delta Air Lines\" (2 txns) + \"Delta Airlines\" (5 txns) — likely same vendor\n\nBill matches were filtered by `payment_date`, but their full invoice amounts were\nnot added to spend. Payment-allocation data is required to complete those totals.\n```\n\n## When NOT to Use\n\n- **Verifying a single payment** — use `ramp-payment-lookup`\n- **Approving transactions** — use `ramp-approval-dashboard`\n- **Receipt or memo cleanup** — use `ramp-complete-expenses`\n- **Detailed PO status** — run `ramp purchase_orders get` directly\n\n## Gotchas\n\n| Issue | Fix |\n|---|---|\n| Transaction amounts are strings (`\"$1,048.25\"`) | Strip `$` and `,` before summing. Handle `-$` prefix for refunds. |\n| Bill amounts are numeric (dollars) | They are full invoice amounts. Do not sum them as paid-in-period spend without payment-allocation data. |\n| `--transactions_to_retrieve` is required | Always include it. Use `all_transactions_across_entire_business` for company-wide analysis. |\n| Search text must be ≥3 characters | \"AI\" won't work — use full vendor name |\n| Paid-in-period bill activity | Pass `--from_payment_date` and `--to_payment_date` to `bills search`, and use the returned `payment_date`. Do not fall back to `due_date` or treat full invoice `amount` as the paid allocation. |\n| Vendor name variants not normalized | Run multiple searches for known variants. Dedupe by `transaction_uuid`. |\n| Pagination ceiling | `--page_size 200` is accepted. Still check `next_page_cursor`. |\n| No unified spend endpoint | Query transactions and bills separately, then merge the results. |\n| `--include_count` only on transactions | Bills search returns `total_found` automatically. |\n| Something broken? | With the user's consent, run `ramp feedback \"<user-approved message>\"`. This sends only that message to Ramp support; omit secrets and diagnostic artifacts. |\n"
}

SHA-256 of public snapshot: 607a991dd11465cf69848507b03d0ac3578ca016877fb43570d2ffbb2ae6aeb8