Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Paidnice.

Update invoice assignee

update_invoice_assignee
DestructiveIdempotent

Assigns the invoice to a team member, by userId from list_users or by email, or unassigns it with userId null. The assigned team member is notified, as when assigning in the app.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "organisationId": "<organisationId>",
      "id": "<id>"
    },
    "name": "update_invoice_assignee"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesPaidnice invoice id, from list_invoices. This is not the invoice number
emailNoEmail of the team member to assign, instead of userId. Case insensitive
userIdNoId of the team member to assign, from list_users. Pass null to unassign. Send either userId or email, not both
organisationIdYesId of the organisation to act on, from list_organisations

Output Schema

NameRequiredDescriptionDefault
idYesPaidnice invoice id. Use it with get_invoice and as invoiceId in list_notes and list_actions. Not the invoice number
frozenYesTrue when Paidnice is skipping the invoice, so its policies do not run on it
numberNoInvoice number shown to the customer
statusYesInvoice status in the accounting system, for example AUTHORISED or PAID
dueDateYesDate the invoice is due, as YYYY-MM-DD
currencyYesInvoice currency (ISO 4217 code). The amounts are in this currency
contactIdYesPaidnice id of the invoice's contact. Use it with get_contact
dueAmountYesAmount still owed, as a decimal in the invoice currency
issueDateYesDate the invoice was issued, as YYYY-MM-DD
portalUrlYesLink to the invoice in the Paidnice customer payment portal
referenceNoThe invoice reference from the accounting system, often a purchase order number
taxAmountYesTax on the invoice, as a decimal in the invoice currency
paidAmountYesAmount paid so far, as a decimal in the invoice currency
contactNameNoName of the invoice's contact
totalAmountYesInvoice total including tax, as a decimal in the invoice currency
assignedUserYesThe team member who owns the invoice, null when unassigned
exchangeRateYesExchange rate Paidnice uses for the invoice, 1 when the invoice is in the base currency
paymentPlansNoPayment plans on the invoice, newest first. Only present with includePaymentPlans
depositAmountYesDeposit amount, as a decimal in the invoice currency. QuickBooks Online only, 0 otherwise
creditedAmountYesTotal credited against the invoice, as a decimal in the invoice currency
discountAmountYesTotal discount applied to the invoice, as a decimal in the invoice currency
invoiceQueriesNoQueries on the invoice, newest first. Only present with includeInvoiceQueries
lastSyncedDateNoWhen Paidnice last synced a change to the invoice from the accounting system, as an ISO 8601 datetime
sentToCustomerYesTrue when the invoice has been sent to the customer
subtotalAmountYesInvoice total before tax, as a decimal in the invoice currency
paymentPromisesNoPromises to pay on the invoice, newest first. Only present with includePaymentPromises
accountingSystemIdYesThe invoice's id in the connected accounting system
accountingSystemOnlineUrlNoLink to view the invoice online in the accounting system, when available
accountingSystemExchangeRateNoExchange rate recorded on the invoice in the accounting system, when it has one

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / lastSyncedDate / description
      Previous value: -"When Paidnice last synced the invoice from the accounting system, as an ISO 8601 datetime"New value: +"When Paidnice last synced a change to the invoice from the accounting system, as an ISO 8601 datetime"
  2. Changed8 schema fields changed
    • addedOutput schema / definitions / InvoiceQuery
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "contactId": {
      +      "description": "Id of the contact who raised it, as used by get_contact",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "createdAt": {
      +      "description": "When the query was raised",
      +      "example": "2026-06-16T08:00:00.000Z",
      +      "type": "string"
      +    },
      +    "detail": {
      +      "description": "What the customer said, required when reason is other",
      +      "type": "string"
      +    },
      +    "dueDate": {
      +      "description": "YYYY-MM-DD in the organisation's timezone, when the next action is due",
      +      "type": "string"
      +    },
      +    "id": {
      +      "description": "Paidnice invoice query id",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "invoiceId": {
      +      "description": "Id of the queried invoice, as used by get_invoice",
      +      "type": "string"
      +    },
      +    "nextAction": {
      +      "description": "What the team plans to do next",
      +      "type": "string"
      +    },
      +    "reason": {
      +      "description": "Why the customer queried the invoice",
      +      "enum": [
      +        "pricing",
      +        "quantity",
      +        "quality",
      +        "not_received",
      +        "duplicate",
      +        "other"
      +      ],
      +      "type": "string"
      +    },
      +    "resolution": {
      +      "description": "How it was resolved, once resolved",
      +      "enum": [
      +        "paid",
      +        "credit_note",
      +        "voided",
      +        "withdrawn",
      +        "written_off"
      +      ],
      +      "type": "string"
      +    },
      +    "resolvedAt": {
      +      "description": "When it was resolved",
      +      "type": "string"
      +    },
      +    "source": {
      +      "description": "Where the query was raised",
      +      "enum": [
      +        "user",
      +        "portal",
      +        "ai_agent",
      +        "escalation",
      +        "call"
      +      ],
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "open until the team resolves it",
      +      "enum": [
      +        "open",
      +        "resolved"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "invoiceId",
      +    "contactId",
      +    "status",
      +    "reason",
      +    "source",
      +    "createdAt"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / definitions / PaymentPlan
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "contactId": {
      +      "description": "Id of the contact on the plan, as used by get_contact",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "createdAt": {
      +      "description": "When the plan was set up",
      +      "example": "2026-06-16T08:00:00.000Z",
      +      "type": "string"
      +    },
      +    "id": {
      +      "description": "Paidnice payment plan id",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "instalments": {
      +      "description": "In due date order. Amounts are in the invoice currency",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "amount": {
      +            "description": "Amount due for this instalment",
      +            "example": 100,
      +            "type": "number"
      +          },
      +          "dueDate": {
      +            "description": "YYYY-MM-DD the instalment is due",
      +            "example": "2026-07-01",
      +            "type": "string"
      +          },
      +          "id": {
      +            "description": "Paidnice instalment id",
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "paidAmount": {
      +            "description": "Amount paid towards this instalment so far",
      +            "example": 0,
      +            "type": "number"
      +          },
      +          "paidDate": {
      +            "description": "YYYY-MM-DD a payment was first applied to it",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "amount",
      +          "paidAmount",
      +          "dueDate"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "invoiceId": {
      +      "description": "Id of the invoice the plan pays off, as used by get_invoice",
      +      "type": "string"
      +    },
      +    "originalDueAmount": {
      +      "description": "The invoice amount due when the plan was set up, in the invoice currency",
      +      "type": "number"
      +    },
      +    "status": {
      +      "description": "active while any instalment is not fully paid, completed once all are",
      +      "enum": [
      +        "active",
      +        "completed"
      +      ],
      +      "type": "string"
      +    },
      +    "surchargeAmount": {
      +      "description": "Fee added to the invoice for the plan, if any",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "invoiceId",
      +    "contactId",
      +    "status",
      +    "originalDueAmount",
      +    "createdAt",
      +    "instalments"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / definitions / PaymentPromise
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "contactId": {
      +      "description": "Id of the contact who made it, as used by get_contact",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "createdAt": {
      +      "description": "When the promise was recorded",
      +      "example": "2026-06-16T08:00:00.000Z",
      +      "type": "string"
      +    },
      +    "id": {
      +      "description": "Paidnice promise to pay id",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "invoiceId": {
      +      "description": "Id of the invoice it is for, as used by get_invoice",
      +      "type": "string"
      +    },
      +    "notes": {
      +      "description": "Internal notes recorded with the promise. Never shown to the customer",
      +      "type": "string"
      +    },
      +    "promisedAmount": {
      +      "description": "In the invoice currency",
      +      "example": 250,
      +      "type": "number"
      +    },
      +    "promisedDate": {
      +      "description": "YYYY-MM-DD in the organisation's timezone",
      +      "example": "2026-06-30",
      +      "type": "string"
      +    },
      +    "resolvedAt": {
      +      "description": "When it became kept, broken or cancelled",
      +      "type": "string"
      +    },
      +    "source": {
      +      "description": "Where the promise was recorded",
      +      "enum": [
      +        "user",
      +        "portal",
      +        "escalation",
      +        "call",
      +        "ai_agent"
      +      ],
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "open until the promised date passes or the invoice is paid, then kept or broken. cancelled when withdrawn",
      +      "enum": [
      +        "open",
      +        "kept",
      +        "broken",
      +        "cancelled"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "invoiceId",
      +    "contactId",
      +    "status",
      +    "promisedAmount",
      +    "promisedDate",
      +    "source",
      +    "createdAt"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / definitions / User / properties / firstName / description
      Added value: +"First name, when set"
    • addedOutput schema / definitions / User / properties / lastName / description
      Added value: +"Last name, when set"
    • addedOutput schema / properties / invoiceQueries
      Added value: +{
      +  "description": "Queries on the invoice, newest first. Only present with includeInvoiceQueries",
      +  "items": {
      +    "$ref": "#/definitions/InvoiceQuery"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / paymentPlans
      Added value: +{
      +  "description": "Payment plans on the invoice, newest first. Only present with includePaymentPlans",
      +  "items": {
      +    "$ref": "#/definitions/PaymentPlan"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / paymentPromises
      Added value: +{
      +  "description": "Promises to pay on the invoice, newest first. Only present with includePaymentPromises",
      +  "items": {
      +    "$ref": "#/definitions/PaymentPromise"
      +  },
      +  "type": "array"
      +}
  3. Changed28 schema fields changed
    • addedInput schema / properties / id / description
      Added value: +"Paidnice invoice id, from list_invoices. This is not the invoice number"
    • addedOutput schema / definitions / User / properties / email / description
      Added value: +"The team member's email address"
    • addedOutput schema / definitions / User / properties / id / description
      Added value: +"Paidnice user id. Pass it as userId to update_invoice_assignee or update_contact_assignee"
    • addedOutput schema / properties / accountingSystemExchangeRate / description
      Added value: +"Exchange rate recorded on the invoice in the accounting system, when it has one"
    • addedOutput schema / properties / accountingSystemId / description
      Added value: +"The invoice's id in the connected accounting system"
    • addedOutput schema / properties / accountingSystemOnlineUrl / description
      Added value: +"Link to view the invoice online in the accounting system, when available"
    • addedOutput schema / properties / contactId / description
      Added value: +"Paidnice id of the invoice's contact. Use it with get_contact"
    • addedOutput schema / properties / contactName / description
      Added value: +"Name of the invoice's contact"
    • addedOutput schema / properties / creditedAmount / description
      Added value: +"Total credited against the invoice, as a decimal in the invoice currency"
    • addedOutput schema / properties / currency / description
      Added value: +"Invoice currency (ISO 4217 code). The amounts are in this currency"
    • addedOutput schema / properties / depositAmount / description
      Added value: +"Deposit amount, as a decimal in the invoice currency. QuickBooks Online only, 0 otherwise"
    • addedOutput schema / properties / discountAmount / description
      Added value: +"Total discount applied to the invoice, as a decimal in the invoice currency"
    • addedOutput schema / properties / dueAmount / description
      Added value: +"Amount still owed, as a decimal in the invoice currency"
    • addedOutput schema / properties / dueDate / description
      Added value: +"Date the invoice is due, as YYYY-MM-DD"
    • addedOutput schema / properties / exchangeRate / description
      Added value: +"Exchange rate Paidnice uses for the invoice, 1 when the invoice is in the base currency"
    • addedOutput schema / properties / frozen / description
      Added value: +"True when Paidnice is skipping the invoice, so its policies do not run on it"
    • addedOutput schema / properties / id / description
      Added value: +"Paidnice invoice id. Use it with get_invoice and as invoiceId in list_notes and list_actions. Not the invoice number"
    • addedOutput schema / properties / issueDate / description
      Added value: +"Date the invoice was issued, as YYYY-MM-DD"
    • addedOutput schema / properties / lastSyncedDate / description
      Added value: +"When Paidnice last synced the invoice from the accounting system, as an ISO 8601 datetime"
    • addedOutput schema / properties / number / description
      Added value: +"Invoice number shown to the customer"
    • addedOutput schema / properties / paidAmount / description
      Added value: +"Amount paid so far, as a decimal in the invoice currency"
    • addedOutput schema / properties / portalUrl / description
      Added value: +"Link to the invoice in the Paidnice customer payment portal"
    • addedOutput schema / properties / reference / description
      Added value: +"The invoice reference from the accounting system, often a purchase order number"
    • addedOutput schema / properties / sentToCustomer / description
      Added value: +"True when the invoice has been sent to the customer"
    • addedOutput schema / properties / status / description
      Added value: +"Invoice status in the accounting system, for example AUTHORISED or PAID"
    • addedOutput schema / properties / subtotalAmount / description
      Added value: +"Invoice total before tax, as a decimal in the invoice currency"
    • addedOutput schema / properties / taxAmount / description
      Added value: +"Tax on the invoice, as a decimal in the invoice currency"
    • addedOutput schema / properties / totalAmount / description
      Added value: +"Invoice total including tax, as a decimal in the invoice currency"
  4. Added

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Adds a genuinely non-obvious side effect beyond the annotations: the assigned team member is notified, which matters for an agent triggering human-facing notifications. It does not explain the destructiveHint=true annotation — namely that reassigning replaces/removes the previous assignee — so the destructive aspect is left undisclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero filler: the assignment action and its two identifier paths come first, followed by the unassign case and the notification consequence. Nothing is repeated or redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need no explanation, and the description covers all three invocation modes plus the notification side effect. The remaining gap is what happens to any prior assignee on reassignment, which is exactly the behavior flagged by destructiveHint=true.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the schema already documents the userId-or-email exclusivity, the null-for-unassign semantics, and the list_users/list_invoices sources. The description restates that constraint at a high level without adding format or edge-case detail beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (assigns the invoice) plus the two identifier paths (userId from list_users, or email) and the unassign case (userId null). An agent can tell this apart from update_contact_assignee because the mutated resource is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It clearly outlines the three invocation modes — assign by userId, assign by email, unassign by null — and points to list_users as the source of ids. It does not state prerequisites (e.g. must the email already belong to a team member of the organisation) or say when to prefer email over userId.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources