Skip to main content
Glama
@intelliacore/mcp-afip

@intelliacore/mcp-afip

by HamzaQai

afip_inspect_rib_or_invoice

Inspect supplier invoices and bank RIBs for Mod-97 errors, bank/supplier mismatches, IBAN/BIC conflicts, PDF tampering, and suspicious emails without storing documents.

Instructions

Zero-storage forensic inspection of a supplier invoice or bank RIB (text or base64 PDF). Detects Mod-97 errors, ECB/BAM bank code vs stated bank/supplier mismatches, IBAN vs SWIFT/BIC country conflicts, domestic French SIRET paired with foreign IBANs, lookalike/disposable emails, and PDF editing software tampering (Canva/Photoshop, multiple %%EOF revisions). Works without AFIP_API_KEY.

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": "afip_inspect_rib_or_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameNoOptional document filename
pdf_base64NoOptional base64-encoded PDF document for binary metadata & %%EOF revision inspection
text_contentNoExtracted text from the RIB, payment change email, or supplier invoice
stated_supplier_or_bankNoOptional expected bank or supplier name (e.g., 'BNP Paribas', 'Société Générale', 'Attijariwafa') to cross-check against the IBAN bank code

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses 'zero-storage' (no persistence), that it works without AFIP_API_KEY (auth independence), the concrete detection surface (Mod-97, ECB/BAM bank code mismatch, IBAN vs SWIFT/BIC country conflict, SIRET/foreign-IBAN mismatch, lookalike/disposable emails, PDF editor tampering via %%EOF revisions), and that PDF handling is binary-level. It stops short of stating that findings are read-only observations and gives no sense of result shape or cost/latency, which is why it is not a 5.

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?

Front-loaded with purpose and storage/auth posture, then a dense but purposeful enumeration — each detection class is a distinct capability an agent can match against a case. No filler or restatement of the tool name.

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?

Covers purpose, storage model, auth independence, and detection surface for a four-optional-parameter inspection tool with no annotations. The remaining gap is the absence of any indication of what comes back (verdict vs findings list) and what happens if text_content and pdf_base64 are both omitted — notable since there is no output schema.

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 earns a bump by clarifying the dual input modes ('text or base64 PDF') and tying the PDF path to binary metadata / %%EOF revision inspection, which tells the agent which optional parameter to populate for which investigation. It does not address the fact that all four parameters are optional and that at least one input is presumably required.

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 ('forensic inspection') and precise resources ('supplier invoice or bank RIB'), plus the accepted forms (text or base64 PDF). The artifact-type framing ('invoice or RIB' document) is what separates it from siblings that inspect emails, SMS/WhatsApp, or run identifier screening.

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?

The context of use is implied by the input description — you invoke it when you have extracted RIB text, a payment-change email, or a PDF — but no when-to-use/when-not-to-use rules are given. It never names afip_inspect_email_eml, afip_screen_batch, or afip_company_kyb_check as alternatives, so an agent must infer routing itself.

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