Skip to main content
Glama
jonathanARMS23

cosmo-mcp

create_sale

Creates a sales invoice in ERPNext. Record a sale by specifying products, quantities, customer, discount, and payment method.

Instructions

Créer une vente / facture client dans ERPNext. Utiliser quand l'utilisateur dit 'vendre X à Y', 'créer une facture pour', 'encaisser', 'vends [produit] à [client]', 'facture : [liste produits]'. IMPORTANT : toujours présenter un récapitulatif clair et demander confirmation AVANT de créer. Format de confirmation : 'Je vais créer cette vente : [détail]. Total : [montant]. Confirmer ?'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYesListe des articles à vendre
customerNoNom du client (optionnel, défaut: Walk-in Customer)
discountNoRemise en pourcentage 0-100 (défaut: 0)
payment_modeNoMode de paiement (défaut: Cash)Cash
Behavior4/5

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

Since no annotations are provided, the description carries the full burden. It emphasizes a critical safety behavior: presenting a summary and asking for confirmation before creating the sale, with a specific confirmation format. It does not mention other behaviors like permissions or return values, but the confirmation step is a key transparency element beyond the schema.

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 and well-structured. It front-loads the purpose, gives usage triggers, and then the IMPORTANT confirmation instruction. Every sentence earns its place, and the formatting with uppercase 'IMPORTANT' draws attention to the critical behavior without wasted words.

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 (4 parameters, no output schema, no annotations), the description provides essential context: the purpose, trigger phrases, and the mandatory confirmation step. It does not explain return values or side effects like stock updates, but for a creation tool, key user-facing behavior is covered. This is more than adequate but not fully exhaustive.

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 the baseline is 3. The description does not add parameter-specific details beyond the schema; it only implies calculating a total during confirmation. It does not duplicate or contradict the schema, but also does not provide extra value for understanding the parameters.

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 states a specific verb and resource: 'Créer une vente / facture client dans ERPNext' (create a sale/customer invoice). It clearly distinguishes this from sibling tools like get_daily_sales or get_invoice, which are read-only. The trigger phrases further clarify the intent.

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?

The description explicitly lists when to use the tool with example user phrases ('vendre X à Y', 'créer une facture pour', etc.). It gives clear usage context, though it does not mention when not to use it or any alternatives. This fits 'clear context, no exclusions'.

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