Mercoa MCP by usefulapi is an MCP server published by io.usefulapi, hosted at mercoa.usefulapi.io. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 17 tools, including mercoa_find_entities, mercoa_get_entity, mercoa_get_entity_events, mercoa_get_entity_invoice_metrics, mercoa_list_entity_payment_methods.
Query and manage Mercoa AP/AR bill-pay: entities, invoices, transactions and payment methods.
4,407 connections through 5 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Find/search entities (buyers, vendors, payors, payees). Use to look up counterparties by name/email/foreignId or list all. GET /entity.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Max entities to return (1-100, default 10). |
| search | string | Search by name, email, emailTo, entity ID, or foreign ID (partial matches). |
| status | any | Entity status filter (e.g. verified, pending). |
| isPayee | boolean | Filter entities marked as payees. |
| isPayor | boolean | Filter entities marked as payors. |
| foreignId | any | Your system's ID(s) for the entity. |
| isCustomer | boolean | If true, only entities with a direct relationship to your organization. |
| startingAfter | string | Entity ID cursor for pagination. |
| paymentMethods | boolean | If true, include payment methods in the response. |
| returnMetadata | any | Metadata key(s) to include in the response. |
{
"name": "mercoa_find_entities",
"title": "Find entities",
"description": "Find/search entities (buyers, vendors, payors, payees). Use to look up counterparties by name/email/foreignId or list all. GET /entity.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"limit": {
"type": "integer",
"maximum": 100,
"description": "Max entities to return (1-100, default 10).",
"exclusiveMinimum": 0
},
"search": {
"type": "string",
"description": "Search by name, email, emailTo, entity ID, or foreign ID (partial matches)."
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Entity status filter (e.g. verified, pending)."
},
"isPayee": {
"type": "boolean",
"description": "Filter entities marked as payees."
},
"isPayor": {
"type": "boolean",
"description": "Filter entities marked as payors."
},
"foreignId": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Your system's ID(s) for the entity."
},
"isCustomer": {
"type": "boolean",
"description": "If true, only entities with a direct relationship to your organization."
},
"startingAfter": {
"type": "string",
"description": "Entity ID cursor for pagination."
},
"paymentMethods": {
"type": "boolean",
"description": "If true, include payment methods in the response."
},
"returnMetadata": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Metadata key(s) to include in the response."
}
}
},
"annotations": {
"title": "Find entities",
"readOnlyHint": true
}
}Get a single entity by ID (or foreign ID). GET /entity/{entityId}.
| Parameter | Type | Description |
|---|---|---|
| entityId * | string | Entity ID (e.g. ent_...) or foreign ID. |
{
"name": "mercoa_get_entity",
"title": "Get entity",
"description": "Get a single entity by ID (or foreign ID). GET /entity/{entityId}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"entityId"
],
"properties": {
"entityId": {
"type": "string",
"description": "Entity ID (e.g. ent_...) or foreign ID."
}
}
},
"annotations": {
"title": "Get entity",
"readOnlyHint": true
}
}Get the event/audit log for an entity. GET /entity/{entityId}/events.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Max events to return (1-100). |
| endDate | string | End date filter (ISO 8601). |
| entityId * | string | Entity ID or foreign ID. |
| startDate | string | Start date filter (ISO 8601). |
| startingAfter | string | Event ID cursor for pagination. |
{
"name": "mercoa_get_entity_events",
"title": "Get entity events",
"description": "Get the event/audit log for an entity. GET /entity/{entityId}/events.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"entityId"
],
"properties": {
"limit": {
"type": "integer",
"maximum": 100,
"description": "Max events to return (1-100).",
"exclusiveMinimum": 0
},
"endDate": {
"type": "string",
"description": "End date filter (ISO 8601)."
},
"entityId": {
"type": "string",
"description": "Entity ID or foreign ID."
},
"startDate": {
"type": "string",
"description": "Start date filter (ISO 8601)."
},
"startingAfter": {
"type": "string",
"description": "Event ID cursor for pagination."
}
}
},
"annotations": {
"title": "Get entity events",
"readOnlyHint": true
}
}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.
| Parameter | Type | Description |
|---|---|---|
| search | string | Search by vendor name, invoice number, check number, or amount. |
| status | any | Invoice status filter (e.g. NEW, SCHEDULED, PAID). |
| endDate | string | End date filter (ISO 8601). |
| groupBy | any | Additional grouping (e.g. by status). |
| payerId | any | Filter by payer ID(s). |
| currency | any | Currency code(s) to filter on, e.g. USD. |
| dateType | string | Date type to filter by (e.g. CREATED_AT, DUE_DATE). |
| entityId * | string | Entity ID or foreign ID. |
| vendorId | any | Filter by vendor ID(s). |
| invoiceId | any | Filter by invoice ID(s) or foreign ID(s). |
| startDate |
List an entity's payment methods (bank accounts, cards, check, etc.). GET /entity/{entityId}/paymentMethods.
| Parameter | Type | Description |
|---|---|---|
| type | string | Filter by payment method type (e.g. bankAccount, card, check). |
| entityId * | string | Entity ID or foreign ID. |
{
"name": "mercoa_list_entity_payment_methods",
"title": "List entity payment methods",
"description": "List an entity's payment methods (bank accounts, cards, check, etc.). GET /entity/{entityId}/paymentMethods.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"entityId"
],
"properties": {
"type": {
"type": "string",
"description": "Filter by payment method type (e.g. bankAccount, card, check)."
},
"entityId": {
"type": "string",
"description": "Entity ID or foreign ID."
}
}
},
"annotations": {
"title": "List entity payment methods",
"readOnlyHint": true
}
}Get a single payment method for an entity. GET /entity/{entityId}/paymentMethod/{paymentMethodId}.
| Parameter | Type | Description |
|---|---|---|
| entityId * | string | Entity ID or foreign ID. |
| paymentMethodId * | string | Payment method ID (e.g. pm_...). |
{
"name": "mercoa_get_payment_method",
"title": "Get payment method",
"description": "Get a single payment method for an entity. GET /entity/{entityId}/paymentMethod/{paymentMethodId}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"entityId",
"paymentMethodId"
],
"properties": {
"entityId": {
"type": "string",
"description": "Entity ID or foreign ID."
},
"paymentMethodId": {
"type": "string",
"description": "Payment method ID (e.g. pm_...)."
}
}
},
"annotations": {
"title": "Get payment method",
"readOnlyHint": true
}
}List the users belonging to an entity (approvers, admins, etc.). GET /entity/{entityId}/users.
| Parameter | Type | Description |
|---|---|---|
| entityId * | string | Entity ID or foreign ID. |
{
"name": "mercoa_list_entity_users",
"title": "List entity users",
"description": "List the users belonging to an entity (approvers, admins, etc.). GET /entity/{entityId}/users.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"entityId"
],
"properties": {
"entityId": {
"type": "string",
"description": "Entity ID or foreign ID."
}
}
},
"annotations": {
"title": "List entity users",
"readOnlyHint": true
}
}Find/search invoices (bills) across payers and vendors. Filter by status, entity, date, approver and more. GET /invoices (plural list endpoint).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Max invoices to return (1-100, default 10). |
| search | string | Search by vendor name, invoice number, check number, or amount. |
| status | any | Invoice status filter (e.g. DRAFT, NEW, APPROVED, SCHEDULED, PAID). |
| endDate | string | End date filter (ISO 8601). |
| orderBy | string | Field to order by (e.g. CREATED_AT, AMOUNT, DUE_DATE). |
| payerId | any | Filter by payer ID(s) or foreign ID(s). |
| dateType | string | Date type to filter by (e.g. CREATED_AT, DUE_DATE). |
| entityId | any | Filter by entity (payer or vendor) ID(s) or foreign ID(s). |
| vendorId | any | Filter by vendor ID(s) or foreign ID(s). |
| invoiceId | any | Filter by invoice ID(s) or foreign ID(s). |
| startDate |
Get a single invoice (bill) by ID. GET /invoice/{invoiceId}.
| Parameter | Type | Description |
|---|---|---|
| invoiceId * | string | Invoice ID (e.g. in_...) or foreign ID. |
{
"name": "mercoa_get_invoice",
"title": "Get invoice",
"description": "Get a single invoice (bill) by ID. GET /invoice/{invoiceId}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"invoiceId"
],
"properties": {
"invoiceId": {
"type": "string",
"description": "Invoice ID (e.g. in_...) or foreign ID."
}
}
},
"annotations": {
"title": "Get invoice",
"readOnlyHint": true
}
}Get the event/audit log for an invoice (status changes, approvals, payments). GET /invoice/{invoiceId}/events.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Max events to return (1-100). |
| endDate | string | End date filter (ISO 8601). |
| invoiceId * | string | Invoice ID or foreign ID. |
| startDate | string | Start date filter (ISO 8601). |
| startingAfter | string | Event ID cursor for pagination. |
{
"name": "mercoa_get_invoice_events",
"title": "Get invoice events",
"description": "Get the event/audit log for an invoice (status changes, approvals, payments). GET /invoice/{invoiceId}/events.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"invoiceId"
],
"properties": {
"limit": {
"type": "integer",
"maximum": 100,
"description": "Max events to return (1-100).",
"exclusiveMinimum": 0
},
"endDate": {
"type": "string",
"description": "End date filter (ISO 8601)."
},
"invoiceId": {
"type": "string",
"description": "Invoice ID or foreign ID."
},
"startDate": {
"type": "string",
"description": "Start date filter (ISO 8601)."
},
"startingAfter": {
"type": "string",
"description": "Event ID cursor for pagination."
}
}
},
"annotations": {
"title": "Get invoice events",
"readOnlyHint": true
}
}List/search payment transactions. Filter by entity, invoice, status, type and date. GET /transactions.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Max transactions to return (1-100, default 10). |
| search | string | Search by vendor name, invoice number, check number, or amount. |
| status | any | Transaction status filter. |
| endDate | string | CREATED_AT end date filter (ISO 8601). |
| payerId | any | Filter by payer ID(s). |
| entityId | any | Filter by entity ID(s) or foreign ID(s). |
| vendorId | any | Filter by vendor ID(s). |
| invoiceId | any | Filter by invoice ID(s) or foreign ID(s). |
| startDate | string | CREATED_AT start date filter (ISO 8601). |
| entityGroupId | string | Filter by entity group ID. |
| startingAfter | string | Transaction ID cursor for pagination. |
Get a single payment transaction by ID. GET /transaction/{transactionId}.
| Parameter | Type | Description |
|---|---|---|
| transactionId * | string | Transaction ID. |
{
"name": "mercoa_get_transaction",
"title": "Get transaction",
"description": "Get a single payment transaction by ID. GET /transaction/{transactionId}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"transactionId"
],
"properties": {
"transactionId": {
"type": "string",
"description": "Transaction ID."
}
}
},
"annotations": {
"title": "Get transaction",
"readOnlyHint": true
}
}Get the caller's Mercoa organization configuration (settings, payment methods enabled, etc.). GET /organization.
No parameters.
{
"name": "mercoa_get_organization",
"title": "Get organization",
"description": "Get the caller's Mercoa organization configuration (settings, payment methods enabled, etc.). GET /organization.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {}
},
"annotations": {
"title": "Get organization",
"readOnlyHint": true
}
}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.
| Parameter | Type | Description |
|---|---|---|
| string | Primary email for the entity. | |
| isPayee | boolean | Whether this entity can receive payments (AR / vendor). |
| isPayor | boolean | Whether this entity can pay invoices (AP). |
| profile | object | Nested profile object, e.g. { "business": { "legalBusinessName": "Acme Inc.", "email": "ap@acme.com", "businessType": "llc" } } or { "individual": { "name": {...}, "email": "..." } }. |
| foreignId | string | Your system's ID for this entity. |
| isCustomer | boolean | Whether this entity has a direct relationship with your organization. |
| accountType | string | business or individual. |
{
"name": "mercoa_create_entity",
"title": "Create entity",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"email": {
"type": "string",
"description": "Primary email for the entity."
},
"isPayee": {
"type": "boolean",
"description": "Whether this entity can receive payments (AR / vendor)."
},
"isPayor": {
"type": "boolean",
"description": "Whether this entity can pay invoices (AP)."
},
"profile": {
"type": "object",
"description": "Nested profile object, e.g. { \"business\": { \"legalBusinessName\": \"Acme Inc.\", \"email\": \"ap@acme.com\", \"businessType\": \"llc\" } } or { \"individual\": { \"name\": {...}, \"email\": \"...\" } }.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"foreignId": {
"type": "string",
"description": "Your system's ID for this entity."
},
"isCustomer": {
"type": "boolean",
"description": "Whether this entity has a direct relationship with your organization."
},
"accountType": {
"enum": [
"business",
"individual"
],
"type": "string",
"description": "business or individual."
}
}
},
"annotations": {
"title": "Create entity",
"destructiveHint": true
}
}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.
| Parameter | Type | Description |
|---|---|---|
| amount | number | Total invoice amount. |
| status | string | Invoice status, e.g. DRAFT, NEW, APPROVED, SCHEDULED. |
| dueDate | string | Due date (ISO 8601). |
| payerId | string | Payer entity ID (who owes). |
| currency | string | Currency code, e.g. USD. |
| metadata | object | Arbitrary key/value metadata. |
| vendorId | string | Vendor entity ID (who is paid). |
| lineItems | array | Line items array, e.g. [{ "amount": 100, "currency": "USD", "description": "Product A", "quantity": 1, "unitPrice": 100 }]. |
| noteToSelf | string | Internal note. |
| invoiceDate | string | Invoice date (ISO 8601). |
| creatorUserId | string |
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}.
| Parameter | Type | Description |
|---|---|---|
| amount | number | Total invoice amount. |
| status | string | New invoice status, e.g. NEW, APPROVED, SCHEDULED. |
| dueDate | string | Due date (ISO 8601). |
| payerId | string | Payer entity ID. |
| currency | string | Currency code, e.g. USD. |
| metadata | object | Arbitrary key/value metadata. |
| vendorId | string | Vendor entity ID. |
| invoiceId * | string | Invoice ID to update. |
| lineItems | array | Replacement line items array. |
| noteToSelf | string | Internal note. |
| invoiceDate | string | Invoice date (ISO 8601). |
WRITE — adds a comment to an invoice (visible in its activity log). POST /invoice/{invoiceId}/comment.
| Parameter | Type | Description |
|---|---|---|
| text * | string | Comment text. |
| userId | string | ID or foreign ID of the user creating the comment. |
| invoiceId * | string | Invoice ID to comment on. |
{
"name": "mercoa_add_invoice_comment",
"title": "Add invoice comment",
"description": "WRITE — adds a comment to an invoice (visible in its activity log). POST /invoice/{invoiceId}/comment.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"invoiceId",
"text"
],
"properties": {
"text": {
"type": "string",
"description": "Comment text."
},
"userId": {
"type": "string",
"description": "ID or foreign ID of the user creating the comment."
},
"invoiceId": {
"type": "string",
"description": "Invoice ID to comment on."
}
}
},
"annotations": {
"title": "Add invoice comment",
"destructiveHint": true
}
}Tools for Mercoa, hosted by usefulapi.io. If the user is new or asks what this server can do, suggest requests such as: "Which bills are waiting for approval this week?"; "Show me all invoices from vendor Acme Ltd this quarter."; "What were our total invoice amounts by status this month?". Read-only tools never change data; ask the user before a tool that creates, changes or deletes Mercoa data. Free plan: 50 tool calls per month. Run mercoa_usage_status to see the calls used this month. If the user asks for something none of these tools can do, tell the user and, with their OK, run mercoa_request_feature to record the request. Paid plans: Pro (10,000 tool calls a month, $9/month or $90/year, for normal use) and Pro+ (100,000 tool calls a month, $39/month or $390/year, for automations and heavy use). A plan can be cancelled at any time and then runs to the end of the paid period, so it also suits a one-time job. When the user wants more calls or reaches the limit, run mercoa_upgrade without a plan: it returns both plans, each with a payment link for the user to open. mercoa_cancel_subscription cancels Pro at the end of the paid period.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
| string |
| Start date filter (ISO 8601). |
| approverId | any | Filter by assigned approver user ID(s). |
| returnByDate | string | Group metrics by date, e.g. CREATION_DATE or DUE_DATE. |
| excludePayables | boolean | Only return receivables (exclude payables). |
| excludeReceivables | boolean | Only return payables (exclude receivables). |
| returnByDateFrequency | string | Frequency for date grouping (e.g. DAILY, MONTHLY). |
{
"name": "mercoa_get_entity_invoice_metrics",
"title": "Get entity invoice metrics",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"entityId"
],
"properties": {
"search": {
"type": "string",
"description": "Search by vendor name, invoice number, check number, or amount."
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Invoice status filter (e.g. NEW, SCHEDULED, PAID)."
},
"endDate": {
"type": "string",
"description": "End date filter (ISO 8601)."
},
"groupBy": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Additional grouping (e.g. by status)."
},
"payerId": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Filter by payer ID(s)."
},
"currency": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Currency code(s) to filter on, e.g. USD."
},
"dateType": {
"type": "string",
"description": "Date type to filter by (e.g. CREATED_AT, DUE_DATE)."
},
"entityId": {
"type": "string",
"description": "Entity ID or foreign ID."
},
"vendorId": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Filter by vendor ID(s)."
},
"invoiceId": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Filter by invoice ID(s) or foreign ID(s)."
},
"startDate": {
"type": "string",
"description": "Start date filter (ISO 8601)."
},
"approverId": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Filter by assigned approver user ID(s)."
},
"returnByDate": {
"type": "string",
"description": "Group metrics by date, e.g. CREATION_DATE or DUE_DATE."
},
"excludePayables": {
"type": "boolean",
"description": "Only return receivables (exclude payables)."
},
"excludeReceivables": {
"type": "boolean",
"description": "Only return payables (exclude receivables)."
},
"returnByDateFrequency": {
"type": "string",
"description": "Frequency for date grouping (e.g. DAILY, MONTHLY)."
}
}
},
"annotations": {
"title": "Get entity invoice metrics",
"readOnlyHint": true
}
}| string |
| Start date filter (ISO 8601). |
| approverId | any | Filter by assigned approver user ID(s). |
| paymentType | any | Filter by payment type (e.g. recurring). |
| creatorUserId | any | Filter by the user ID(s) that created the invoice. |
| entityGroupId | string | Filter by entity group ID. |
| startingAfter | string | Invoice ID cursor for pagination. |
| approverAction | any | Filter by approver action (use with approverId), e.g. APPROVE. |
| orderDirection | string | asc or desc. |
| invoiceTemplateId | any | Filter by invoice template ID(s). |
| returnPayerMetadata | boolean | Include payer metadata in the response. |
| returnPaymentTiming | boolean | Include payment timing in the response. |
| returnVendorMetadata | boolean | Include vendor metadata in the response. |
{
"name": "mercoa_find_invoices",
"title": "Find invoices",
"description": "Find/search invoices (bills) across payers and vendors. Filter by status, entity, date, approver and more. GET /invoices (plural list endpoint).",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"limit": {
"type": "integer",
"maximum": 100,
"description": "Max invoices to return (1-100, default 10).",
"exclusiveMinimum": 0
},
"search": {
"type": "string",
"description": "Search by vendor name, invoice number, check number, or amount."
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Invoice status filter (e.g. DRAFT, NEW, APPROVED, SCHEDULED, PAID)."
},
"endDate": {
"type": "string",
"description": "End date filter (ISO 8601)."
},
"orderBy": {
"type": "string",
"description": "Field to order by (e.g. CREATED_AT, AMOUNT, DUE_DATE)."
},
"payerId": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Filter by payer ID(s) or foreign ID(s)."
},
"dateType": {
"type": "string",
"description": "Date type to filter by (e.g. CREATED_AT, DUE_DATE)."
},
"entityId": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Filter by entity (payer or vendor) ID(s) or foreign ID(s)."
},
"vendorId": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Filter by vendor ID(s) or foreign ID(s)."
},
"invoiceId": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Filter by invoice ID(s) or foreign ID(s)."
},
"startDate": {
"type": "string",
"description": "Start date filter (ISO 8601)."
},
"approverId": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Filter by assigned approver user ID(s)."
},
"paymentType": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Filter by payment type (e.g. recurring)."
},
"creatorUserId": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Filter by the user ID(s) that created the invoice."
},
"entityGroupId": {
"type": "string",
"description": "Filter by entity group ID."
},
"startingAfter": {
"type": "string",
"description": "Invoice ID cursor for pagination."
},
"approverAction": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Filter by approver action (use with approverId), e.g. APPROVE."
},
"orderDirection": {
"type": "string",
"description": "asc or desc."
},
"invoiceTemplateId": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Filter by invoice template ID(s)."
},
"returnPayerMetadata": {
"type": "boolean",
"description": "Include payer metadata in the response."
},
"returnPaymentTiming": {
"type": "boolean",
"description": "Include payment timing in the response."
},
"returnVendorMetadata": {
"type": "boolean",
"description": "Include vendor metadata in the response."
}
}
},
"annotations": {
"title": "Find invoices",
"readOnlyHint": true
}
}| transactionId | any | Filter by transaction ID(s). |
| transactionType | any | Filter by transaction type. |
{
"name": "mercoa_find_transactions",
"title": "Find transactions",
"description": "List/search payment transactions. Filter by entity, invoice, status, type and date. GET /transactions.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"limit": {
"type": "integer",
"maximum": 100,
"description": "Max transactions to return (1-100, default 10).",
"exclusiveMinimum": 0
},
"search": {
"type": "string",
"description": "Search by vendor name, invoice number, check number, or amount."
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Transaction status filter."
},
"endDate": {
"type": "string",
"description": "CREATED_AT end date filter (ISO 8601)."
},
"payerId": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Filter by payer ID(s)."
},
"entityId": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Filter by entity ID(s) or foreign ID(s)."
},
"vendorId": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Filter by vendor ID(s)."
},
"invoiceId": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Filter by invoice ID(s) or foreign ID(s)."
},
"startDate": {
"type": "string",
"description": "CREATED_AT start date filter (ISO 8601)."
},
"entityGroupId": {
"type": "string",
"description": "Filter by entity group ID."
},
"startingAfter": {
"type": "string",
"description": "Transaction ID cursor for pagination."
},
"transactionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Filter by transaction ID(s)."
},
"transactionType": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Filter by transaction type."
}
}
},
"annotations": {
"title": "Find transactions",
"readOnlyHint": true
}
}| User ID creating the invoice. |
| deductionDate | string | Scheduled payment/deduction date (ISO 8601). |
| invoiceNumber | string | Human-readable invoice number, e.g. INV-123. |
| creatorEntityId | string | Entity ID on whose behalf the invoice is created. |
| paymentSourceId | string | Payment method ID to pay from (payer's). |
| paymentDestinationId | string | Payment method ID to pay to (vendor's). |
{
"name": "mercoa_create_invoice",
"title": "Create invoice",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"amount": {
"type": "number",
"description": "Total invoice amount."
},
"status": {
"type": "string",
"description": "Invoice status, e.g. DRAFT, NEW, APPROVED, SCHEDULED."
},
"dueDate": {
"type": "string",
"description": "Due date (ISO 8601)."
},
"payerId": {
"type": "string",
"description": "Payer entity ID (who owes)."
},
"currency": {
"type": "string",
"description": "Currency code, e.g. USD."
},
"metadata": {
"type": "object",
"description": "Arbitrary key/value metadata.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"vendorId": {
"type": "string",
"description": "Vendor entity ID (who is paid)."
},
"lineItems": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"description": "Line items array, e.g. [{ \"amount\": 100, \"currency\": \"USD\", \"description\": \"Product A\", \"quantity\": 1, \"unitPrice\": 100 }]."
},
"noteToSelf": {
"type": "string",
"description": "Internal note."
},
"invoiceDate": {
"type": "string",
"description": "Invoice date (ISO 8601)."
},
"creatorUserId": {
"type": "string",
"description": "User ID creating the invoice."
},
"deductionDate": {
"type": "string",
"description": "Scheduled payment/deduction date (ISO 8601)."
},
"invoiceNumber": {
"type": "string",
"description": "Human-readable invoice number, e.g. INV-123."
},
"creatorEntityId": {
"type": "string",
"description": "Entity ID on whose behalf the invoice is created."
},
"paymentSourceId": {
"type": "string",
"description": "Payment method ID to pay from (payer's)."
},
"paymentDestinationId": {
"type": "string",
"description": "Payment method ID to pay to (vendor's)."
}
}
},
"annotations": {
"title": "Create invoice",
"destructiveHint": true
}
}| deductionDate | string | Scheduled payment/deduction date (ISO 8601). |
| invoiceNumber | string | Human-readable invoice number. |
| paymentSourceId | string | Payment method ID to pay from. |
| paymentDestinationId | string | Payment method ID to pay to. |
{
"name": "mercoa_update_invoice",
"title": "Update invoice",
"description": "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}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"invoiceId"
],
"properties": {
"amount": {
"type": "number",
"description": "Total invoice amount."
},
"status": {
"type": "string",
"description": "New invoice status, e.g. NEW, APPROVED, SCHEDULED."
},
"dueDate": {
"type": "string",
"description": "Due date (ISO 8601)."
},
"payerId": {
"type": "string",
"description": "Payer entity ID."
},
"currency": {
"type": "string",
"description": "Currency code, e.g. USD."
},
"metadata": {
"type": "object",
"description": "Arbitrary key/value metadata.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"vendorId": {
"type": "string",
"description": "Vendor entity ID."
},
"invoiceId": {
"type": "string",
"description": "Invoice ID to update."
},
"lineItems": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"description": "Replacement line items array."
},
"noteToSelf": {
"type": "string",
"description": "Internal note."
},
"invoiceDate": {
"type": "string",
"description": "Invoice date (ISO 8601)."
},
"deductionDate": {
"type": "string",
"description": "Scheduled payment/deduction date (ISO 8601)."
},
"invoiceNumber": {
"type": "string",
"description": "Human-readable invoice number."
},
"paymentSourceId": {
"type": "string",
"description": "Payment method ID to pay from."
},
"paymentDestinationId": {
"type": "string",
"description": "Payment method ID to pay to."
}
}
},
"annotations": {
"title": "Update invoice",
"destructiveHint": true
}
}