Skip to main content
Glama

SAF-T (D406) readiness check

saga_saft_check
Read-onlyIdempotent

Checks accounting data before D406 for a date range: flags accounts missing from the chart or SAF-T mapping, partners without fiscal codes, and unposted documents.

Instructions

Basic checks before D406: accounts used but missing from the chart or SAF-T mapping, partners without fiscal codes, unposted documents.

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": {
      "date_from": "<date_from>",
      "date_to": "<date_to>"
    },
    "name": "saga_saft_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
firmNoFirm code (folder name such as "0001"). Optional when only one firm is configured.
limitNoMaximum rows to return.
date_toYesEnd date, YYYY-MM-DD (inclusive).
date_fromYesStart date, YYYY-MM-DD (inclusive).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world, so safety is covered. The description adds useful scope information (which anomaly categories are inspected) and the qualifier "basic" honestly signals the checks are not exhaustive. It stops short of saying whether findings are returned as rows, whether an empty result means pass, or how the limit parameter interacts with completeness.

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?

A single front-loaded sentence that defines the purpose, names the regulatory context, and lists the check categories with no filler or repetition.

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

Completeness3/5

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

For a read-only diagnostic with a fully documented schema and annotations, the essentials are present, but an agent still cannot tell what a successful response looks like or whether the result is a pass/fail verdict versus a list of issues. One clause on the return shape and the meaning of "basic" would close the gap.

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 description coverage is 100%, so all four parameters (firm, date_from, date_to, limit) are already documented with formats. The description adds nothing about how the date range scopes the checks or that a low limit could silently truncate the findings — a relevant nuance for a diagnostic tool — so it sits at the baseline.

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 names a specific resource (SAF-T/D406 readiness) and enumerates the three concrete check classes it performs: unmapped/missing accounts, partners lacking fiscal codes, and unposted documents. That is far more informative than the title alone, though it never states the output form (a findings list) or how it differs from siblings like saga_trial_balance or saga_partners used for the same data.

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?

"Basic checks before D406" implies the trigger — run this ahead of a SAF-T filing — but there are no explicit when-not conditions, no guidance on pairing it with other tools, and no note on how the date range should be chosen relative to the reporting period.

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