Skip to main content
Glama
Storno CLI

Storno CLI

Official
by stornoro

companies_overdue_reminders_backlog

Preview and send a company's missed overdue-reminder backlog: count invoices and balances per client, then email one statement per client after confirmation.

Instructions

Count or send the reminder backlog of a company: overdue, unpaid issued invoices that passed a reminder step before the daily run could send it (the reminders were off at the time, or the invoices were imported). The daily run never mails those. Calls POST /api/v1/companies/{uuid}/overdue-reminders/backlog. With dryRun true (the default here) nothing is sent: the result lists, per client, how many invoices and what balance an email would cover. With dryRun false each client gets one email listing all their backlog invoices, with the statement PDF attached, and every invoice is marked with the step it missed, so a second call sends nothing for them and the daily run continues with later steps. Clients and invoices excluded from reminders, clients without an email and unsubscribed recipients are left out and counted under skipped. Returns 422 REMINDERS_OFF when the company has the reminders off, 402 when the plan cannot send emails, 409 while another send is running. Requires company edit permission. Show the dry run to the user and get their confirmation before sending.

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": {
      "uuid": "<uuid>"
    },
    "name": "companies_overdue_reminders_backlog"
  }
}

Input Schema

NameRequiredDescriptionDefault
uuidYesCompany UUID
dryRunNotrue (default) = only count what would be sent; false = send the emails

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.61

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the side effects (one email per client, statement PDF attached, invoices stamped with the missed step), the follow-on behavior (a second call sends nothing for those invoices and the daily run resumes with later steps), the failure modes (422 REMINDERS_OFF, 402 plan limitation, 409 concurrent send) and the permission requirement. Annotations only give generic hints (readOnly=false, openWorld=true, destructive=false); this text supplies the real behavioral contract, including the notable near-idempotent send semantics that the idempotentHint=false annotation alone would not convey.

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 purpose and dense with useful content, but delivered as one long paragraph mixing purpose, mechanics, errors and workflow. It would scan better with the error codes and the confirmation step split out, though almost every sentence carries information.

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 write-ish tool with no output schema, the description covers everything an agent needs: default behavior, side effects, idempotency-like second-call behavior, exclusions, error codes, permissions, and the required user-confirmation workflow.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: it explains what a dry run actually returns (per-client invoice counts and covered balance) and what sending entails, rather than just repeating 'true = count, false = send'. uuid is left to the schema, which is adequate.

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 pair and resource ('Count or send the reminder backlog of a company') and immediately defines the resource precisely as overdue, unpaid issued invoices that missed a reminder step. It also scopes it against the daily run ('The daily run never mails those'), so an agent can tell this apart from a normal overdue-reminder trigger.

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

Usage Guidelines5/5

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

Gives explicit operational guidance: dryRun is the default, nothing is sent until it is false, and the agent is told to show the dry run and obtain user confirmation before sending. It also states prerequisites (company edit permission) and the exclusions under which clients are skipped.

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

Deploy Server

Other Tools