Braintree MCP by usefulapi

v1.41.1
io.usefulapi/braintree Checked 2 days ago Published 22 hours ago

Search Braintree transactions, customers and payment methods, and refund or void charges.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

braintree_find_transaction Find a transaction

Fetch one transaction by its GraphQL global ID (the opaque `id` returned by braintree_search_transactions, NOT the short legacy id). Uses the GraphQL `node` query. Returns amount, status, timestamps, order id, and the linked customer.

ParameterTypeDescription
id *stringGraphQL global transaction ID (opaque, base64-looking), e.g. from a search result's `node.id`.

braintree_search_transactions Search transactions

Search transactions by created-at date range, status, and/or customer. Builds a TransactionSearchInput (operators: status `in`, createdAt `greaterThanOrEqualTo`/`lessThanOrEqualTo`, customer.id `is`). Returns a page of transaction nodes (id, legacyId, amount, status, createdAt). GraphQL `search { transactions }`.

ParameterTypeDescription
createdAfterstringOnly transactions created at or after this ISO-8601 timestamp.
createdBeforestringOnly transactions created at or before this ISO-8601 timestamp.
customerIdstringGraphQL global Customer ID to filter to one customer's transactions.
firstintegerMax transactions to return (page size). Default 25.
statusarrayOne or more transaction statuses to match (e.g. ["SETTLED","VOIDED"]).

braintree_find_customer Find a customer

Fetch one customer by GraphQL global Customer ID via the `node` query. Returns id, legacyId, name, company, and created-at. To also enumerate stored cards/PayPal accounts use braintree_customer_payment_methods.

ParameterTypeDescription
id *stringGraphQL global Customer ID (opaque). Legacy numeric ids differ — resolve them via a transaction search or the id-conversion query first.

braintree_customer_payment_methods List a customer's payment methods

List the vaulted payment methods (credit cards, PayPal accounts, etc.) for one customer, by GraphQL global Customer ID. Returns each method's id, legacyId, usage, created-at, and detail type. GraphQL `node { ... on Customer { paymentMethods } }`.

ParameterTypeDescription
id *stringGraphQL global Customer ID (opaque).
firstintegerMax payment methods to return. Default 50.

braintree_list_subscriptions List a customer's subscription activity

List a customer's recurring / subscription payment activity. IMPORTANT: Braintree's GraphQL API does NOT expose native Subscription objects (recurring-billing management is still legacy-API only — see braintree/graphql-api issue #1). This tool therefore returns the customer's transactions (the observable evidence of subscription charges) via a TransactionSearchInput scoped to the customer; inspect each node's status/amount/createdAt to trace recurring charges. For full subscription CRUD you must use Braintree's legacy server SDK / REST API.

ParameterTypeDescription
customerId *stringGraphQL global Customer ID whose recurring/subscription charges to list.
firstintegerMax transactions to return. Default 50.

braintree_refund_transaction Refund a transaction

DESTRUCTIVE. Refund a SETTLED (or settling) transaction, returning money to the customer. Use the GraphQL global transaction ID. Omit `amount` for a full refund, or pass a decimal string for a partial refund. GraphQL mutation `refundTransaction`. For transactions not yet settled, use braintree_void_transaction instead.

ParameterTypeDescription
transactionId *stringGraphQL global transaction ID to refund.
amountstringPartial-refund amount as a decimal string (e.g. "10.00"). Omit for a full refund.

braintree_void_transaction Void a transaction

DESTRUCTIVE. Void (cancel) a transaction that has NOT yet settled — e.g. an authorization or one submitted-for-settlement. Use the GraphQL global transaction ID. GraphQL mutation `voidTransaction`. For already-settled transactions use braintree_refund_transaction instead.

ParameterTypeDescription
transactionId *stringGraphQL global transaction ID to void.