Skip to main content
Glama

Get a credit-control case

get_credit_control_case
Read-onlyIdempotent

Return one case from the signed-in SHVL workspace, including status, payment-readiness state, bounded invoice summaries and communication evidence. Excludes email addresses, message content, provider IDs and payment records. 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": {
      "case_id": "<case_id>",
      "workspace_id": "<workspace_id>"
    },
    "name": "get_credit_control_case"
  }
}

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
case_idYesStable SHVL case ID returned by another SHVL tool.
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_idNoExact 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
caseYes
sourceYes
has_moreYes
invoicesYes
as_of_dateYes
data_noticeYes
next_cursorYes
total_countYesAll matches after filters, before paging.
organisationYes
returned_countYes
applied_filtersYes
invoices_truncatedYes
communication_evidenceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed24 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"
      +}
    • addedInput schema / properties / customer_id
      Added value: +{
      +  "description": "Exact SHVL customer ID.",
      +  "maxLength": 120,
      +  "type": "string"
      +}
    • 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 / 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",
      -  "case",
      -  "invoices",
      -  "invoices_truncated",
      -  "communication_evidence"
      -]New value: +[
      +  "data_notice",
      +  "organisation",
      +  "source",
      +  "case",
      +  "invoices",
      +  "invoices_truncated",
      +  "communication_evidence",
      +  "applied_filters",
      +  "total_count",
      +  "returned_count",
      +  "has_more",
      +  "next_cursor",
      +  "as_of_date"
      +]
  2. Changed2 schema fields changed
    • 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: +"case contains the selected SHVL case and readiness; invoices contains bounded invoice summaries and invoices_truncated signals omitted rows. communication_evidence distinguishes provider acceptance from delivery, bounce and reply evidence. source gives completed-sync provenance; amounts ending in _minor use currency minor units."
  3. Changed2 schema fields changed
    • addedInput schema / properties / workspace_id
      Added value: +{
      +  "description": "Exact workspace_id returned by list_shvl_workspaces and selected by the user. Never infer a different client workspace.",
      +  "maxLength": 120,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "case_id"
      -]New value: +[
      +  "case_id",
      +  "workspace_id"
      +]
  4. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description layers on substantive behavior: explicit exclusions (email addresses, message content, provider IDs, payment records), pagination invalidation on data change, the applied_filters echo, and the rule that returned summaries retain all currencies. These are things an agent cannot learn from the annotations or schema and materially affect how it trusts and continues the call.

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?

Front-loaded with the outcome, then grouped logically into exclusions, paging, filter semantics. It is dense and occasionally terse to the point of opacity ("Detail filters apply to invoice history, not case metadata"), and "Data changes invalidate continuation" duplicates the cursor parameter's own note, but no sentence is filler.

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 19-parameter read tool with an output schema and full annotations, the description covers the hard parts: exclusions, page continuation, currency coupling, and filter scoping. The remaining gap is relational — it does not tell the agent how this differs in purpose from the sibling credit-control search and brief tools, which matters most for tool selection.

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 79% schema coverage the schema already documents most parameters, but the description adds cross-parameter meaning the schema cannot express: amount filters require a currency, no currency conversion occurs, case/contact dates key off the oldest positive overdue date, and detail filters apply to invoice history rather than case metadata. That is genuine semantic value, though some parameters (min/max_days_overdue, due_to, promise_to) get no mention in either place.

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?

"Return one case from the signed-in SHVL workspace" is a specific verb+resource, and the list of returned content (status, payment-readiness state, invoice summaries, communication evidence) tells the agent precisely what comes back. It never names search_credit_control_cases or get_credit_control_brief, so the agent must infer the single-vs-multiple distinction from the siblings' names alone.

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?

Strong procedural guidance for pagination ("Use next_cursor with the same filters until has_more is false") and a clear rule that changed data invalidates continuation. However, there is no statement of when to choose this tool over the sibling search or brief tools, and the phrase "total_count counts all filtered matches" sits oddly with a single-case fetch, leaving the agent unsure whether this is a detail fetch or a filtered query.

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