Skip to main content
Glama

See which overdue invoices need attention

get_credit_control_brief
Read-onlyIdempotent

Use when someone asks who owes money, which invoices are overdue or which customers need a payment reminder. Return the selected business's overdue totals and up to five customers to check first. Read-only. Uses the latest SHVL import or completed accounting sync and never sends a reminder.

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

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of customers to prioritise in the brief; omit to return five.
workspace_idYesSelected business ID from list_shvl_workspaces. Ask the user to choose if several businesses are available; never infer another business.

Output Schema

NameRequiredDescriptionDefault
sourceYes
summaryYes
data_noticeYes
generated_atYes
organisationYes
priority_casesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedOutput schema / description
      Previous value: -"generated_at is the view time; source records the import or completed-sync time. summary contains overdue counts, overdue_total_minor in currency minor units and attention counts. priority_cases contains case IDs, priority, suggested action and reason. Counts describe this selected business, not live bank receipts."New value: +"generated_at is the view time; source records the import or completed-sync time. summary contains overdue counts, overdue_total_minor in the business currency minor units when unambiguous (otherwise null), and separate currency_totals without conversion and attention counts. priority_cases contains case IDs, priority, suggested action and reason. Counts describe this selected business, not live bank receipts."
    • addedOutput schema / properties / priority_cases / items / properties / currency
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / priority_cases / items / properties / 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 / priority_cases / items / properties / overdue_total_minor / description
      Added value: +"Null for multiple currencies; use currency_totals without conversion."
    • changedOutput schema / properties / priority_cases / items / properties / overdue_total_minor / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
    • addedOutput schema / properties / summary / properties / 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 / summary / properties / overdue_total_minor / description
      Added value: +"Null for multiple currencies; use currency_totals without conversion."
    • changedOutput schema / properties / summary / properties / overdue_total_minor / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
  2. Changed3 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum priority cases to return. Defaults to 5."New value: +"Number of customers to prioritise in the brief; omit to return five."
    • 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: +"generated_at is the view time; source records the import or completed-sync time. summary contains overdue counts, overdue_total_minor in currency minor units and attention counts. priority_cases contains case IDs, priority, suggested action and reason. Counts describe this selected business, not live bank receipts."
  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"
      +}
    • addedInput schema / required
      Added value: +[
      +  "workspace_id"
      +]
  4. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, and closed-world behavior. The description adds data-source freshness ('latest SHVL import or completed accounting sync') and confirms it never sends a reminder, which is important for a payment-reminder-adjacent tool; it does not discuss permissions or failure modes.

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?

Four short sentences, front-loaded with the trigger and immediately followed by return scope and safety constraints. No redundant wording.

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

Completeness5/5

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

For a two-parameter read-only brief with rich annotations and an output schema, the description supplies the trigger, return scope, data source, and no-side-effect constraint. Nothing essential to correct invocation is missing.

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%, so workspace_id and limit are already fully documented. The description adds only the 'up to five' ceiling and 'selected business' scoping, which mostly mirror the schema; baseline 3 is appropriate.

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?

The description states a specific verb and resource: it returns overdue totals plus a prioritized list of up to five customers. The 'brief' and 'customers to check first' framing distinguishes it from exhaustive case or invoice search without relying on sibling names.

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 gives explicit trigger scenarios: who owes money, overdue invoices, and payment reminders. It does not name when not to use it or point to a sibling alternative, so it is clear but not fully exhaustive.

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