Skip to main content
Glama
Replaced by its MCP Registry listing

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

Update contact assignee

update_contact_assignee
DestructiveIdempotent

Assigns the contact to a team member, by userId from list_users or by email, or unassigns it with userId null. Only the contact changes: its invoices keep their own assignees.

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_contact_assignee"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesPaidnice contact id, from list_contacts or as contactId on an invoice
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 contact id. Use it with get_contact, and as contactId in list_invoices, list_notes and list_actions
nameYesContact name, as synced from the accounting system
statusYesACTIVE contacts are in use. ARCHIVED contacts are archived and are not counted as active
groupIdYesId of the Paidnice contact group, which decides the policies that apply to the contact
groupTitleYesName of the contact group
smsOptedOutYesTrue when the contact has opted out of receiving SMS, as recorded in Paidnice
assignedUserYesThe team member who owns the contact, null when unassigned
paymentPlansNoPayment plans across the contact's invoices, newest first. Only present with includePaymentPlans
accountNumberNoAccount number for the contact in the accounting system, when it has one
contactPersonsYesThe people at the contact who receive communications, including the primary person
invoiceQueriesNoQueries across the contact's invoices, newest first. Only present with includeInvoiceQueries
paymentPromisesNoPromises to pay across the contact's invoices, newest first. Only present with includePaymentPromises
accountingSystemIdYesThe contact's id in the connected accounting system (Xero or QuickBooks Online)

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 across the contact's invoices, newest first. Only present with includeInvoiceQueries",
      +  "items": {
      +    "$ref": "#/definitions/InvoiceQuery"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / paymentPlans
      Added value: +{
      +  "description": "Payment plans across the contact's invoices, newest first. Only present with includePaymentPlans",
      +  "items": {
      +    "$ref": "#/definitions/PaymentPlan"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / paymentPromises
      Added value: +{
      +  "description": "Promises to pay across the contact's invoices, newest first. Only present with includePaymentPromises",
      +  "items": {
      +    "$ref": "#/definitions/PaymentPromise"
      +  },
      +  "type": "array"
      +}
  2. Changed23 schema fields changed
    • addedInput schema / properties / id / description
      Added value: +"Paidnice contact id, from list_contacts or as contactId on an invoice"
    • 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 / accountNumber / description
      Added value: +"Account number for the contact in the accounting system, when it has one"
    • addedOutput schema / properties / accountingSystemId / description
      Added value: +"The contact's id in the connected accounting system (Xero or QuickBooks Online)"
    • addedOutput schema / properties / contactPersons / description
      Added value: +"The people at the contact who receive communications, including the primary person"
    • addedOutput schema / properties / contactPersons / items / properties / defaultNumber / description
      Added value: +"Landline or default phone number. Any country calling code is held separately in defaultNumberCountryCode"
    • addedOutput schema / properties / contactPersons / items / properties / defaultNumberCountryCode / description
      Added value: +"Country calling code for defaultNumber, for example 61, when the number is stored with one"
    • addedOutput schema / properties / contactPersons / items / properties / email / description
      Added value: +"Person's email address, used for reminder emails"
    • addedOutput schema / properties / contactPersons / items / properties / firstName / description
      Added value: +"Person's first name"
    • addedOutput schema / properties / contactPersons / items / properties / id / description
      Added value: +"Contact person id. Pass it back in update_contact_persons to keep or edit this person"
    • addedOutput schema / properties / contactPersons / items / properties / includeInNotifications / description
      Added value: +"True when this person receives reminder emails and SMS for the contact"
    • addedOutput schema / properties / contactPersons / items / properties / isPrimary / description
      Added value: +"True for the contact's primary person. There is exactly one primary person per contact"
    • addedOutput schema / properties / contactPersons / items / properties / lastName / description
      Added value: +"Person's last name"
    • addedOutput schema / properties / contactPersons / items / properties / mobileNumber / description
      Added value: +"Mobile number, used for SMS. Any country calling code is held separately in mobileNumberCountryCode"
    • addedOutput schema / properties / contactPersons / items / properties / mobileNumberCountryCode / description
      Added value: +"Country calling code for mobileNumber, for example 61, when the number is stored with one"
    • addedOutput schema / properties / contactPersons / items / properties / sourceType / description
      Added value: +"imported: the person is synced from the accounting system (Xero or QuickBooks Online). local: the person exists in Paidnice only and is never synced back"
    • addedOutput schema / properties / groupId / description
      Added value: +"Id of the Paidnice contact group, which decides the policies that apply to the contact"
    • addedOutput schema / properties / groupTitle / description
      Added value: +"Name of the contact group"
    • addedOutput schema / properties / id / description
      Added value: +"Paidnice contact id. Use it with get_contact, and as contactId in list_invoices, list_notes and list_actions"
    • addedOutput schema / properties / name / description
      Added value: +"Contact name, as synced from the accounting system"
    • addedOutput schema / properties / smsOptedOut / description
      Added value: +"True when the contact has opted out of receiving SMS, as recorded in Paidnice"
    • addedOutput schema / properties / status / description
      Added value: +"ACTIVE contacts are in use. ARCHIVED contacts are archived and are not counted as active"
  3. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare a destructive, idempotent, non-read-only mutation, so the description only needs added context — and it supplies the most important one: the change is scoped to the contact and does not cascade to its invoices' assignees. It stops short of saying what happens to a previously assigned user or what the response confirms, but the blast radius is clearly bounded.

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, front-loaded with the primary action and followed by the scope caveat that prevents a real mistake. No redundant or filler wording.

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?

For a four-parameter mutation with an output schema and full annotation coverage, the description covers the action, the alternative identification path, the unassign case, and the non-cascading scope. Missing only permission/error expectations, which is a minor gap given the structured fields already present.

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 coverage is 100% and already documents the userId/email mutual exclusion, the null-to-unassign convention, and the list_users/list_contacts provenance. The description restates the same points without adding format or edge-case detail (e.g., behavior if both are supplied), so it sits at the baseline for a fully documented schema.

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 contact to a team member') plus the inverse operation ('unassigns it with userId null'). It also explicitly scopes the effect away from the sibling update_invoice_assignee ('its invoices keep their own assignees'), so an agent can distinguish the two without opening schemas.

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?

Gives clear operational context: obtain the assignee id 'from list_users' or use email, and pass null to unassign. It does not spell out prerequisites such as required permissions or when to prefer this over update_contact_persons, but the assignment context is unambiguous.

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