Skip to main content
Glama

Server Details

Query and manage Mercoa AP/AR bill-pay: entities, invoices, transactions and payment methods.

Status
Healthy
Last Tested
Transport
Streamable HTTP
URL
Repository
m190/usefulapi-mcp
GitHub Stars
0

Glama MCP Gateway

Connect through Glama MCP Gateway for full control over tool access and complete visibility into every call.

MCP client
Glama
MCP server

Full call logging

Every tool call is logged with complete inputs and outputs, so you can debug issues and audit what your agents are doing.

Tool access control

Enable or disable individual tools per connector, so you decide what your agents can and cannot do.

Managed credentials

Glama handles OAuth flows, token storage, and automatic rotation, so credentials never expire on your clients.

Usage analytics

See which tools your agents call, how often, and when, so you can understand usage patterns and catch anomalies.

100% free. Your data is private.

Tool Definition Quality

Score is being calculated. Check back soon.

Available Tools

17 tools
mercoa_add_invoice_commentAdd invoice comment
Destructive
Inspect

WRITE — adds a comment to an invoice (visible in its activity log). POST /invoice/{invoiceId}/comment.

ParametersJSON Schema
NameRequiredDescriptionDefault
textYesComment text.
userIdNoID or foreign ID of the user creating the comment.
invoiceIdYesInvoice ID to comment on.
mercoa_create_entityCreate entity
Destructive
Inspect

WRITE — creates a real entity (customer/vendor/payor/payee) in Mercoa. Supply role flags, accountType, and a nested profile object (business or individual details). POST /entity.

ParametersJSON Schema
NameRequiredDescriptionDefault
emailNoPrimary email for the entity.
isPayeeNoWhether this entity can receive payments (AR / vendor).
isPayorNoWhether this entity can pay invoices (AP).
profileNoNested profile object, e.g. { "business": { "legalBusinessName": "Acme Inc.", "email": "ap@acme.com", "businessType": "llc" } } or { "individual": { "name": {...}, "email": "..." } }.
foreignIdNoYour system's ID for this entity.
isCustomerNoWhether this entity has a direct relationship with your organization.
accountTypeNobusiness or individual.
mercoa_create_invoiceCreate invoice
Destructive
Inspect

WRITE — creates a real invoice/bill in Mercoa. Set status (DRAFT to stage, NEW to submit), amount, currency, payer/vendor, dates and line items. POST /invoice.

ParametersJSON Schema
NameRequiredDescriptionDefault
amountNoTotal invoice amount.
statusNoInvoice status, e.g. DRAFT, NEW, APPROVED, SCHEDULED.
dueDateNoDue date (ISO 8601).
payerIdNoPayer entity ID (who owes).
currencyNoCurrency code, e.g. USD.
metadataNoArbitrary key/value metadata.
vendorIdNoVendor entity ID (who is paid).
lineItemsNoLine items array, e.g. [{ "amount": 100, "currency": "USD", "description": "Product A", "quantity": 1, "unitPrice": 100 }].
noteToSelfNoInternal note.
invoiceDateNoInvoice date (ISO 8601).
creatorUserIdNoUser ID creating the invoice.
deductionDateNoScheduled payment/deduction date (ISO 8601).
invoiceNumberNoHuman-readable invoice number, e.g. INV-123.
creatorEntityIdNoEntity ID on whose behalf the invoice is created.
paymentSourceIdNoPayment method ID to pay from (payer's).
paymentDestinationIdNoPayment method ID to pay to (vendor's).
mercoa_find_entitiesFind entities
Read-only
Inspect

Find/search entities (buyers, vendors, payors, payees). Use to look up counterparties by name/email/foreignId or list all. GET /entity.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMax entities to return (1-100, default 10).
searchNoSearch by name, email, emailTo, entity ID, or foreign ID (partial matches).
statusNoEntity status filter (e.g. verified, pending).
isPayeeNoFilter entities marked as payees.
isPayorNoFilter entities marked as payors.
foreignIdNoYour system's ID(s) for the entity.
isCustomerNoIf true, only entities with a direct relationship to your organization.
startingAfterNoEntity ID cursor for pagination.
paymentMethodsNoIf true, include payment methods in the response.
returnMetadataNoMetadata key(s) to include in the response.
mercoa_find_invoicesFind invoices
Read-only
Inspect

Find/search invoices (bills) across payers and vendors. Filter by status, entity, date, approver and more. GET /invoices (plural list endpoint).

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMax invoices to return (1-100, default 10).
searchNoSearch by vendor name, invoice number, check number, or amount.
statusNoInvoice status filter (e.g. DRAFT, NEW, APPROVED, SCHEDULED, PAID).
endDateNoEnd date filter (ISO 8601).
orderByNoField to order by (e.g. CREATED_AT, AMOUNT, DUE_DATE).
payerIdNoFilter by payer ID(s) or foreign ID(s).
dateTypeNoDate type to filter by (e.g. CREATED_AT, DUE_DATE).
entityIdNoFilter by entity (payer or vendor) ID(s) or foreign ID(s).
vendorIdNoFilter by vendor ID(s) or foreign ID(s).
invoiceIdNoFilter by invoice ID(s) or foreign ID(s).
startDateNoStart date filter (ISO 8601).
approverIdNoFilter by assigned approver user ID(s).
paymentTypeNoFilter by payment type (e.g. recurring).
creatorUserIdNoFilter by the user ID(s) that created the invoice.
entityGroupIdNoFilter by entity group ID.
startingAfterNoInvoice ID cursor for pagination.
approverActionNoFilter by approver action (use with approverId), e.g. APPROVE.
orderDirectionNoasc or desc.
invoiceTemplateIdNoFilter by invoice template ID(s).
returnPayerMetadataNoInclude payer metadata in the response.
returnPaymentTimingNoInclude payment timing in the response.
returnVendorMetadataNoInclude vendor metadata in the response.
mercoa_find_transactionsFind transactions
Read-only
Inspect

List/search payment transactions. Filter by entity, invoice, status, type and date. GET /transactions.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMax transactions to return (1-100, default 10).
searchNoSearch by vendor name, invoice number, check number, or amount.
statusNoTransaction status filter.
endDateNoCREATED_AT end date filter (ISO 8601).
payerIdNoFilter by payer ID(s).
entityIdNoFilter by entity ID(s) or foreign ID(s).
vendorIdNoFilter by vendor ID(s).
invoiceIdNoFilter by invoice ID(s) or foreign ID(s).
startDateNoCREATED_AT start date filter (ISO 8601).
entityGroupIdNoFilter by entity group ID.
startingAfterNoTransaction ID cursor for pagination.
transactionIdNoFilter by transaction ID(s).
transactionTypeNoFilter by transaction type.
mercoa_get_entityGet entity
Read-only
Inspect

Get a single entity by ID (or foreign ID). GET /entity/{entityId}.

ParametersJSON Schema
NameRequiredDescriptionDefault
entityIdYesEntity ID (e.g. ent_...) or foreign ID.
mercoa_get_entity_eventsGet entity events
Read-only
Inspect

Get the event/audit log for an entity. GET /entity/{entityId}/events.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMax events to return (1-100).
endDateNoEnd date filter (ISO 8601).
entityIdYesEntity ID or foreign ID.
startDateNoStart date filter (ISO 8601).
startingAfterNoEvent ID cursor for pagination.
mercoa_get_entity_invoice_metricsGet entity invoice metrics
Read-only
Inspect

Get aggregate invoice metrics (totals/counts, grouped by currency) for an entity's payables/receivables — for AP/AR dashboards and aging. GET /entity/{entityId}/invoice-metrics.

ParametersJSON Schema
NameRequiredDescriptionDefault
searchNoSearch by vendor name, invoice number, check number, or amount.
statusNoInvoice status filter (e.g. NEW, SCHEDULED, PAID).
endDateNoEnd date filter (ISO 8601).
groupByNoAdditional grouping (e.g. by status).
payerIdNoFilter by payer ID(s).
currencyNoCurrency code(s) to filter on, e.g. USD.
dateTypeNoDate type to filter by (e.g. CREATED_AT, DUE_DATE).
entityIdYesEntity ID or foreign ID.
vendorIdNoFilter by vendor ID(s).
invoiceIdNoFilter by invoice ID(s) or foreign ID(s).
startDateNoStart date filter (ISO 8601).
approverIdNoFilter by assigned approver user ID(s).
returnByDateNoGroup metrics by date, e.g. CREATION_DATE or DUE_DATE.
excludePayablesNoOnly return receivables (exclude payables).
excludeReceivablesNoOnly return payables (exclude receivables).
returnByDateFrequencyNoFrequency for date grouping (e.g. DAILY, MONTHLY).
mercoa_get_invoiceGet invoice
Read-only
Inspect

Get a single invoice (bill) by ID. GET /invoice/{invoiceId}.

ParametersJSON Schema
NameRequiredDescriptionDefault
invoiceIdYesInvoice ID (e.g. in_...) or foreign ID.
mercoa_get_invoice_eventsGet invoice events
Read-only
Inspect

Get the event/audit log for an invoice (status changes, approvals, payments). GET /invoice/{invoiceId}/events.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMax events to return (1-100).
endDateNoEnd date filter (ISO 8601).
invoiceIdYesInvoice ID or foreign ID.
startDateNoStart date filter (ISO 8601).
startingAfterNoEvent ID cursor for pagination.
mercoa_get_organizationGet organization
Read-only
Inspect

Get the caller's Mercoa organization configuration (settings, payment methods enabled, etc.). GET /organization.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

mercoa_get_payment_methodGet payment method
Read-only
Inspect

Get a single payment method for an entity. GET /entity/{entityId}/paymentMethod/{paymentMethodId}.

ParametersJSON Schema
NameRequiredDescriptionDefault
entityIdYesEntity ID or foreign ID.
paymentMethodIdYesPayment method ID (e.g. pm_...).
mercoa_get_transactionGet transaction
Read-only
Inspect

Get a single payment transaction by ID. GET /transaction/{transactionId}.

ParametersJSON Schema
NameRequiredDescriptionDefault
transactionIdYesTransaction ID.
mercoa_list_entity_payment_methodsList entity payment methods
Read-only
Inspect

List an entity's payment methods (bank accounts, cards, check, etc.). GET /entity/{entityId}/paymentMethods.

ParametersJSON Schema
NameRequiredDescriptionDefault
typeNoFilter by payment method type (e.g. bankAccount, card, check).
entityIdYesEntity ID or foreign ID.
mercoa_list_entity_usersList entity users
Read-only
Inspect

List the users belonging to an entity (approvers, admins, etc.). GET /entity/{entityId}/users.

ParametersJSON Schema
NameRequiredDescriptionDefault
entityIdYesEntity ID or foreign ID.
mercoa_update_invoiceUpdate invoice
Destructive
Inspect

WRITE — updates an existing invoice/bill (all fields optional). Commonly used to advance status (e.g. DRAFT→NEW→SCHEDULED) or change amounts, dates, or payment methods. POST /invoice/{invoiceId}.

ParametersJSON Schema
NameRequiredDescriptionDefault
amountNoTotal invoice amount.
statusNoNew invoice status, e.g. NEW, APPROVED, SCHEDULED.
dueDateNoDue date (ISO 8601).
payerIdNoPayer entity ID.
currencyNoCurrency code, e.g. USD.
metadataNoArbitrary key/value metadata.
vendorIdNoVendor entity ID.
invoiceIdYesInvoice ID to update.
lineItemsNoReplacement line items array.
noteToSelfNoInternal note.
invoiceDateNoInvoice date (ISO 8601).
deductionDateNoScheduled payment/deduction date (ISO 8601).
invoiceNumberNoHuman-readable invoice number.
paymentSourceIdNoPayment method ID to pay from.
paymentDestinationIdNoPayment method ID to pay to.

Discussions

No comments yet. Be the first to start the discussion!

Try in Browser

Your Connectors

Sign in to create a connector for this server.