Skip to main content
Glama

Brex MCP Server

get_all_expenses

Retrieve paginated expense data from Brex with filters for status, amount, date range, and type to analyze spending patterns and track financial transactions.

Instructions

LIST: Paginated expenses with filters. Returns complete expense objects. Example: {"page_size":5,"max_items":5,"status":["APPROVED"],"window_days":7,"min_amount":100}

Input Schema

NameRequiredDescriptionDefault
end_dateNoFilter expenses created on or before this date (ISO format)
expandNoFields to expand (e.g., merchant, receipts)
expense_typeNoFilter expenses by type
max_amountNoClient-side maximum purchased_amount.amount filter
max_itemsNoMaximum total number of items to retrieve across all pages
min_amountNoClient-side minimum purchased_amount.amount filter
page_sizeNoNumber of items per page (default: 50, max: 100)
payment_statusNoFilter expenses by payment status
start_dateNoFilter expenses created on or after this date (ISO format)
statusNoFilter expenses by status
window_daysNoOptional batching window in days to split large date ranges

Input Schema (JSON Schema)

{ "properties": { "end_date": { "description": "Filter expenses created on or before this date (ISO format)", "type": "string" }, "expand": { "description": "Fields to expand (e.g., merchant, receipts)", "items": { "type": "string" }, "type": "array" }, "expense_type": { "description": "Filter expenses by type", "items": { "enum": [ "CARD", "BILLPAY", "REIMBURSEMENT", "CLAWBACK", "UNSET" ], "type": "string" }, "type": "array" }, "max_amount": { "description": "Client-side maximum purchased_amount.amount filter", "type": "number" }, "max_items": { "description": "Maximum total number of items to retrieve across all pages", "type": "number" }, "min_amount": { "description": "Client-side minimum purchased_amount.amount filter", "type": "number" }, "page_size": { "description": "Number of items per page (default: 50, max: 100)", "type": "number" }, "payment_status": { "description": "Filter expenses by payment status", "items": { "enum": [ "NOT_STARTED", "PROCESSING", "CANCELED", "DECLINED", "CLEARED", "REFUNDING", "REFUNDED", "CASH_ADVANCE", "CREDITED", "AWAITING_PAYMENT", "SCHEDULED" ], "type": "string" }, "type": "array" }, "start_date": { "description": "Filter expenses created on or after this date (ISO format)", "type": "string" }, "status": { "description": "Filter expenses by status", "items": { "enum": [ "DRAFT", "SUBMITTED", "APPROVED", "OUT_OF_POLICY", "VOID", "CANCELED", "SPLIT", "SETTLED" ], "type": "string" }, "type": "array" }, "window_days": { "description": "Optional batching window in days to split large date ranges", "type": "number" } }, "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/crazyrabbitLTC/mcp-brex-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server