Skip to main content
Glama
jonathanARMS23

cosmo-mcp

process_supplier_invoice_image

Create an ERPNext Cosmo OCR Invoice from extracted supplier image data and propose a Purchase Invoice.

Instructions

Enregistrer une facture fournisseur dont les données ont été extraites d'une image par Hermes. WORKFLOW : 1) Hermes analyse la photo avec vision_analyze, 2) Hermes appelle CE tool avec les données structurées extraites, 3) Ce tool crée un Cosmo OCR Invoice dans ERPNext et propose une Purchase Invoice. Utiliser quand l'utilisateur envoie une photo de facture fournisseur.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYesLignes de produits extraites
raw_textNoTexte brut extrait par Hermes (pour audit)
invoice_dateNoDate de la facture ISO YYYY-MM-DD
total_amountYesMontant total de la facture
supplier_nameYesNom du fournisseur extrait de la facture
invoice_numberNoNuméro de référence facture fournisseur
Behavior4/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It clearly states that the tool creates a Cosmo OCR Invoice and proposes a Purchase Invoice, which are significant side effects. It also implies a data transformation step (from image analysis to structured data). However, it does not mention potential reversibility, error handling, or whether it modifies existing records, which could be important for a creation tool.

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?

The description is concise but information-dense. It front-loads the purpose, then provides a numbered workflow that is easy to follow. Every sentence adds value, including the when-to-use line. No fluff or repetition. The length is justified by the workflow explanation.

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?

Given the tool's complexity (6 parameters, 3 required, no output schema), the description is fairly complete: it explains the workflow, the preconditions (Hermes vision_analyze), and the expected outcomes (Cosmo OCR Invoice, Purchase Invoice). It does not describe the return value or post-creation steps, but for an internal workflow tool, this is a minor gap. The absence of an output schema raises the bar, but the description covers the essential context.

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%, and each parameter has a clear French description (e.g., 'Lignes de produits extraites', 'Montant total de la facture'). The description adds context that these parameters come from Hermes's extraction, but it does not elaborate on specific formats, constraints, or relationships beyond what the schema already provides. Baseline 3 is appropriate since the schema handles parameter semantics.

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?

The description clearly states the tool's purpose: recording a supplier invoice extracted from an image by Hermes. It specifies the exact action (enregistrer une facture fournisseur), the resource (facture fournisseur), and the workflow (creating a Cosmo OCR Invoice and proposing a Purchase Invoice). This distinguishes it from sibling tools like create_item_from_image or identify_product_from_image.

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?

The description provides explicit when-to-use guidance: 'Utiliser quand l'utilisateur envoie une photo de facture fournisseur.' It also outlines a three-step workflow, making it clear that this tool is called only after Hermes has analyzed the image with vision_analyze and extracted structured data. This implicitly excludes using it for other invoice types or without prior image analysis.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jonathanARMS23/cosmo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server