Skip to main content
Glama
mcp-lettrage

mcp-lettrage

by m02xime

chercher_factures

Read-only

Search invoices by partial number, approximate customer name, amount with tolerance, status, client code, or date range to test a hypothesis or find candidates when payment matching returns nothing.

Instructions

Recherche de factures avec filtres combinables. texte accepte un numéro complet ou partiel (F2026-0418, 418) ou un nom de client approximatif (recherche floue, alias compris). montant + tolerance pour chercher un montant proche. Renvoie numéro, client, dates, TTC, reste dû, taux d'escompte et statut. Utile quand rapprocher_paiement ne trouve rien ou pour vérifier une hypothèse.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "chercher_factures"
  }
}

Input Schema

NameRequiredDescriptionDefault
texteNoNuméro de facture (même partiel) ou nom de client approximatif
limiteNo
statutNoDéfaut : toutes
montantNoMontant TTC ou reste dû recherché, en euros
date_maxNo
date_minNo
toleranceNoTolérance sur le montant, en euros (défaut 0,01)
client_codeNoCode client exact, ex. C0042

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered; the description adds genuinely useful behavior beyond that — fuzzy matching with alias support, near-amount search with a default tolerance of 0.01, and the exact field set returned. It omits pagination/result-cap behavior for the 'limite' parameter (max 50), which is the main remaining gap.

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 compact sentences, front-loaded with purpose, then the two tricky parameters, then the return payload, then the routing hint. No filler or repetition of schema text.

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?

With 8 optional parameters and no output schema, the description does the necessary work by enumerating returned fields and explaining the ambiguous inputs. The only shortfall is the undocumented date-range and limit parameters, which an agent must infer from the schema alone.

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?

Adds real meaning beyond the 63%-covered schema: 'texte' accepts a full or partial invoice number (F2026-0418, 418) or an approximate client name including aliases, and 'montant' is clarified as TTC or reste dû matched within 'tolerance'. The date_min/date_max and limite parameters are left unexplained in both schema and description, so coverage is not complete.

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 ('Recherche de factures avec filtres combinables') and immediately scopes what the search covers via the parameter explanations. An agent can tell this is a filtered invoice lookup and distinguish it from rapprocher_paiement, which is named as the alternative.

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?

Explicitly says when to reach for it: 'Utile quand rapprocher_paiement ne trouve rien ou pour vérifier une hypothèse', naming a sibling and the condition that selects this tool. No explicit when-not guidance or note on preferring a cheaper lookup first, so it falls short of a 5.

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