Skip to main content
Glama
stornoro

Storno CLI

Official
by stornoro

client_statement_email

Email clients a PDF statement of their unpaid invoices, either one client by UUID or all owing a minimum balance. Run a dry run first to preview recipients and skip reasons.

Instructions

E-mail the statement of unpaid invoices ("Facturi neachitate {company}") with the PDF attached. Pass uuid to send to one client (to its e-mail, or to — which must be an address of one of your clients), or omit it to send to every client with a balance of at least minBalance and an e-mail address. Use dryRun: true first: it returns who would receive the statement and who is skipped (no e-mail, below the minimum balance, unsubscribed) without sending anything. Requires the invoice-sending permission and a plan with e-mail sending. The bulk send stops at the plan's daily/burst e-mail limit and reports stoppedReason.

Input Schema

NameRequiredDescriptionDefault
toNoRecipient override for a single client (defaults to the client e-mail)
asOfNoReference date (YYYY-MM-DD). Invoices issued after it are ignored and days overdue are counted up to it. Default: today.
uuidNoClient UUID. Omit to e-mail all clients with a balance.
dryRunNoDo not send; return the recipients and the skip reasons. For a single client it returns the statement that would be sent.
messageNoOptional message appended to the standard Romanian body (plain text)
companyIdNoCompany UUID override (uses active company if not set)
minBalanceNoBulk only: minimum balance a client must owe to receive the statement (default 0.01)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.48

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say non-readonly, non-destructive, non-idempotent, open-world. The description adds substantive behavior beyond that: the bulk send halts at the plan's daily/burst e-mail limit and reports `stoppedReason`, and dry run reveals skipped recipients (no e-mail, below minimum balance, unsubscribed). That is exactly the context annotations can't 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 action and subject, then the single-vs-bulk branching, then the dry-run recommendation, then prerequisites and limits — no filler sentence. It is dense and long-ish, but every sentence contributes operational 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?

No output schema exists, yet the description explains what dry run returns (recipients plus skip reasons) and that bulk sends surface `stoppedReason`. Combined with the permission and plan prerequisites, an agent has everything needed to call this safely without surprises.

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 already 100%, so baseline is 3; the description earns extra by explaining cross-parameter relationships the schema states only individually — `to` must be an address of one of your clients, `minBalance` applies only in bulk mode, and `dryRun` returns the statement itself for a single client. It doesn't cover `asOf` or `companyId` semantics, but those are adequately in the 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 ("E-mail the statement of unpaid invoices ... with the PDF attached") plus the literal subject line, which distinguishes it from generic siblings like invoices_email or client_statement. An agent can tell exactly what artifact leaves the system.

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?

Explicitly branches usage: pass `uuid` for one client (with `to` constrained to one of your client addresses), omit it for a bulk send gated by `minBalance`, and recommends `dryRun: true` first to preview recipients and skip reasons. It also states prerequisites (invoice-sending permission, plan with e-mail sending), which is stronger than most sibling tools.

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