Skip to main content
Glama

Get a synced Xero contact

get_xero_contact
Read-onlyIdempotent

Return one customer contact summary and up to 50 sales invoices from the signed-in owner’s latest completed SHVL Xero sync. Read-only. Excludes email addresses, postal addresses and Xero IDs. Results are paged. applied_filters echoes validated predicates and calculation date. Use next_cursor with the same filters until has_more is false; total_count counts all filtered matches. Data changes invalidate continuation. Amount filters require currency; case/contact dates use oldest positive overdue date in the selected currency when supplied and amounts use the selected currency overdue subtotal. Returned summaries retain all currencies. Detail filters apply to invoice history, not case metadata.

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": {
      "customer_id": "<customer_id>",
      "workspace_id": "<workspace_id>"
    },
    "name": "get_xero_contact"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoInvoice-history page size; defaults to 50.
cursorNonext_cursor from the preceding page. Repeat the same filters; changed data requires restarting.
due_toNo
currencyNoISO currency. Required with amount bounds; no currency conversion.
due_fromNoInclusive due date; cases use oldest overdue invoice date.
as_of_dateNoUTC date for days-overdue filters. Defaults to today and is fixed across continuation pages.
promise_toNo
case_statusNoExact case-workflow status, including for invoice searches.
customer_idYesExact SHVL customer ID.
promise_fromNoInclusive recorded payment-promise date; excludes cases without a promise.
workspace_idYesSelected business ID from list_shvl_workspaces. Ask the user to choose if several businesses are available; never infer another business.
exclude_statusesNoStatuses to exclude. Invoice searches use invoice status; cases and contacts use case status.
max_amount_minorNoInclusive outstanding amount maximum in the selected currency.
max_days_overdueNo
min_amount_minorNoInclusive outstanding amount minimum in the selected currency; cases use overdue balance.
min_days_overdueNo
readiness_statusNoExact payment-readiness state of the associated case.
exclude_case_statusesNoExclude these case-workflow statuses, including when searching invoices.

Output Schema

NameRequiredDescriptionDefault
sourceYes
contactYes
has_moreYes
invoicesYes
as_of_dateYes
data_noticeYes
next_cursorYes
total_countYesAll matches after filters, before paging.
organisationYes
returned_countYes
applied_filtersYes
invoices_truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed33 schema fields changed
    • addedInput schema / properties / as_of_date
      Added value: +{
      +  "description": "UTC date for days-overdue filters. Defaults to today and is fixed across continuation pages.",
      +  "format": "date",
      +  "type": "string"
      +}
    • addedInput schema / properties / case_status
      Added value: +{
      +  "description": "Exact case-workflow status, including for invoice searches.",
      +  "enum": [
      +    "active",
      +    "paused",
      +    "promised",
      +    "disputed",
      +    "closed"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / currency
      Added value: +{
      +  "description": "ISO currency. Required with amount bounds; no currency conversion.",
      +  "pattern": "^[A-Z]{3}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "next_cursor from the preceding page. Repeat the same filters; changed data requires restarting.",
      +  "maxLength": 2048,
      +  "type": "string"
      +}
    • changedInput schema / properties / customer_id / description
      Previous value: -"SHVL customer_id returned by search_xero_contacts or a synced invoice in this business, not a Xero provider ID."New value: +"Exact SHVL customer ID."
    • removedInput schema / properties / customer_id / minLength
      Removed value: -1
    • addedInput schema / properties / due_from
      Added value: +{
      +  "description": "Inclusive due date; cases use oldest overdue invoice date.",
      +  "format": "date",
      +  "type": "string"
      +}
    • addedInput schema / properties / due_to
      Added value: +{
      +  "format": "date",
      +  "type": "string"
      +}
    • addedInput schema / properties / exclude_case_statuses
      Added value: +{
      +  "description": "Exclude these case-workflow statuses, including when searching invoices.",
      +  "items": {
      +    "enum": [
      +      "active",
      +      "paused",
      +      "promised",
      +      "disputed",
      +      "closed"
      +    ],
      +    "type": "string"
      +  },
      +  "maxItems": 5,
      +  "type": "array",
      +  "uniqueItems": true
      +}
    • addedInput schema / properties / exclude_statuses
      Added value: +{
      +  "description": "Statuses to exclude. Invoice searches use invoice status; cases and contacts use case status.",
      +  "items": {
      +    "enum": [
      +      "authorised",
      +      "overdue",
      +      "paid",
      +      "voided",
      +      "deleted"
      +    ],
      +    "type": "string"
      +  },
      +  "maxItems": 10,
      +  "type": "array",
      +  "uniqueItems": true
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Invoice-history page size; defaults to 50.",
      +  "maximum": 50,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / max_amount_minor
      Added value: +{
      +  "description": "Inclusive outstanding amount maximum in the selected currency.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / max_days_overdue
      Added value: +{
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / min_amount_minor
      Added value: +{
      +  "description": "Inclusive outstanding amount minimum in the selected currency; cases use overdue balance.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / min_days_overdue
      Added value: +{
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / promise_from
      Added value: +{
      +  "description": "Inclusive recorded payment-promise date; excludes cases without a promise.",
      +  "format": "date",
      +  "type": "string"
      +}
    • addedInput schema / properties / promise_to
      Added value: +{
      +  "format": "date",
      +  "type": "string"
      +}
    • addedInput schema / properties / readiness_status
      Added value: +{
      +  "description": "Exact payment-readiness state of the associated case.",
      +  "enum": [
      +    "unchecked",
      +    "ready",
      +    "missing_reference",
      +    "missing_evidence",
      +    "portal_not_submitted",
      +    "receipt_unconfirmed",
      +    "waiting_approval",
      +    "wrong_contact",
      +    "query_open"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / applied_filters
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "as_of_date": {
      +      "description": "UTC date for days-overdue filters. Defaults to today and is fixed across continuation pages.",
      +      "format": "date",
      +      "type": "string"
      +    },
      +    "case_status": {
      +      "description": "Exact case-workflow status, including for invoice searches.",
      +      "enum": [
      +        "active",
      +        "paused",
      +        "promised",
      +        "disputed",
      +        "closed"
      +      ],
      +      "type": "string"
      +    },
      +    "currency": {
      +      "description": "ISO currency. Required with amount bounds; no currency conversion.",
      +      "pattern": "^[A-Z]{3}$",
      +      "type": "string"
      +    },
      +    "customer_id": {
      +      "description": "Exact SHVL customer ID.",
      +      "maxLength": 120,
      +      "type": "string"
      +    },
      +    "due_from": {
      +      "description": "Inclusive due date; cases use oldest overdue invoice date.",
      +      "format": "date",
      +      "type": "string"
      +    },
      +    "due_to": {
      +      "format": "date",
      +      "type": "string"
      +    },
      +    "exclude_case_statuses": {
      +      "description": "Exclude these case-workflow statuses, including when searching invoices.",
      +      "items": {
      +        "enum": [
      +          "active",
      +          "paused",
      +          "promised",
      +          "disputed",
      +          "closed"
      +        ],
      +        "type": "string"
      +      },
      +      "maxItems": 5,
      +      "type": "array",
      +      "uniqueItems": true
      +    },
      +    "exclude_statuses": {
      +      "description": "Statuses to exclude. Invoice searches use invoice status; cases and contacts use case status.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "maxItems": 10,
      +      "type": "array",
      +      "uniqueItems": true
      +    },
      +    "max_amount_minor": {
      +      "description": "Inclusive outstanding amount maximum in the selected currency.",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "max_days_overdue": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "min_amount_minor": {
      +      "description": "Inclusive outstanding amount minimum in the selected currency; cases use overdue balance.",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "min_days_overdue": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "promise_from": {
      +      "description": "Inclusive recorded payment-promise date; excludes cases without a promise.",
      +      "format": "date",
      +      "type": "string"
      +    },
      +    "promise_to": {
      +      "format": "date",
      +      "type": "string"
      +    },
      +    "readiness_status": {
      +      "description": "Exact payment-readiness state of the associated case.",
      +      "enum": [
      +        "unchecked",
      +        "ready",
      +        "missing_reference",
      +        "missing_evidence",
      +        "portal_not_submitted",
      +        "receipt_unconfirmed",
      +        "waiting_approval",
      +        "wrong_contact",
      +        "query_open"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / as_of_date
      Added value: +{
      +  "format": "date",
      +  "type": "string"
      +}
    • addedOutput schema / properties / contact / properties / currency
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / contact / properties / open_balance_minor / description
      Added value: +"Null for multiple open currencies; use open_currency_totals."
    • changedOutput schema / properties / contact / properties / open_balance_minor / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
    • addedOutput schema / properties / contact / properties / open_currency_totals
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "amount_minor": {
      +        "type": "integer"
      +      },
      +      "currency": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "currency",
      +      "amount_minor"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / contact / properties / overdue_balance_minor / description
      Added value: +"Null for multiple overdue currencies; use overdue_currency_totals."
    • changedOutput schema / properties / contact / properties / overdue_balance_minor / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
    • addedOutput schema / properties / contact / properties / overdue_currency_totals
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "amount_minor": {
      +        "type": "integer"
      +      },
      +      "currency": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "currency",
      +      "amount_minor"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / contact / required
      Previous value: -[
      -  "customer_id",
      -  "name",
      -  "has_contact_email",
      -  "invoice_count",
      -  "open_invoice_count",
      -  "open_balance_minor",
      -  "overdue_balance_minor",
      -  "oldest_due_at",
      -  "case_status"
      -]New value: +[
      +  "customer_id",
      +  "name",
      +  "has_contact_email",
      +  "invoice_count",
      +  "open_invoice_count",
      +  "open_balance_minor",
      +  "overdue_balance_minor",
      +  "oldest_due_at",
      +  "case_status",
      +  "currency",
      +  "open_currency_totals",
      +  "overdue_currency_totals"
      +]
    • addedOutput schema / properties / has_more
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / next_cursor
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / returned_count
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / total_count
      Added value: +{
      +  "description": "All matches after filters, before paging.",
      +  "type": "integer"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "data_notice",
      -  "organisation",
      -  "source",
      -  "contact",
      -  "invoices",
      -  "invoices_truncated"
      -]New value: +[
      +  "data_notice",
      +  "organisation",
      +  "source",
      +  "contact",
      +  "invoices",
      +  "invoices_truncated",
      +  "applied_filters",
      +  "total_count",
      +  "returned_count",
      +  "has_more",
      +  "next_cursor",
      +  "as_of_date"
      +]
  2. Changed3 schema fields changed
    • addedInput schema / properties / customer_id / description
      Added value: +"SHVL customer_id returned by search_xero_contacts or a synced invoice in this business, not a Xero provider ID."
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Exact workspace_id returned by list_shvl_workspaces and selected by the user. Never infer a different client workspace."New value: +"Selected business ID from list_shvl_workspaces. Ask the user to choose if several businesses are available; never infer another business."
    • addedOutput schema / description
      Added value: +"contact contains the SHVL customer ID, name, contact-email presence and receivables balances in currency minor units. invoices contains bounded synced invoice summaries; invoices_truncated signals omitted rows. source identifies the completed Xero sync, not live Xero state."
  3. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the added value here is real: disclosure of fields deliberately omitted from results, page-size ceiling, invalidation of continuation cursors when data changes, and the no-currency-conversion rule. It does not describe response shape beyond applied_filters and total_count, but an output schema exists to carry that.

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

Conciseness4/5

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

Purpose and read-only status are front-loaded, and most sentences carry non-obvious rules that cannot be inferred. Some phrasing is compressed to the point of opacity (e.g. 'applied_filters echoes validated predicates and calculation date', 'case/contact dates use oldest positive overdue date'), which costs a little readability but not correctness.

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 an 18-parameter read tool with an output schema and full annotations, the description covers the hard parts: paging lifetime, currency coupling, excluded fields, and filter scoping. What is missing is minor: it never says the customer_id comes from a contact search or that several workspaces require user selection, both of which live only in schema text.

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

Parameters4/5

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

With 78% schema coverage the baseline is 3, and the description earns above that by explaining cross-parameter coupling: amount filters require currency, case/contact date and amount filters resolve against the oldest overdue invoice in the selected currency, and summaries still return all currencies. 'Detail filters apply to invoice history, not case metadata' resolves genuine ambiguity about whether filters narrow the contact or the invoices.

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

Purpose4/5

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

The description opens with a concrete verb and resource: 'Return one customer contact summary and up to 50 sales invoices' from a named sync source. It also states what is excluded (email addresses, postal addresses, Xero IDs), so an agent knows the payload is deliberately trimmed. It stops short of naming a distinct sibling like search_xero_contacts to route to when the customer_id is unknown, so differentiation is implied rather than stated.

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

Usage Guidelines3/5

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

Guidance is focused on within-call mechanics: paging via next_cursor with the same filters, restart after data changes, and currency being required for amount bounds. It never states when to prefer this tool over search_xero_contacts/search_xero_invoices, or that the required customer_id/workspace_id must first be obtained elsewhere (workspace selection is only documented in the schema).

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