Skip to main content
Glama

ajouter_depense

Add an expense with a designation and TTC amount; optionally link it to a project via chantier_id, supplier, category, and VAT details.

Instructions

Ajoute une dépense (permission expenses:write). Montants en texte (ex. « 240.00 »). Rattache à un chantier via chantier_id (numéro du chantier dans le compte).

Input Schema

NameRequiredDescriptionDefault
dossierNo
categorieNo
montant_htNo
chantier_idNo
designationYes
fournisseurNo
montant_ttcYes
montant_tvaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.1
    • addedInput schema / properties / dossier
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Dossier"
      +}
  2. First observedv0.1.1

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the permission scope and the required text format for amounts, but says nothing about what gets created, whether the expense is a draft or final, what happens on validation failure, or how duplicates are handled. For a mutation tool this leaves major gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short clauses, front-loaded with the purpose and then the two most consequential call details (format and linking). No filler, though the parenthetical permission note interrupts the flow slightly.

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

Completeness2/5

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

A mutation tool with no annotations, no output schema, and 8 parameters at 0% schema coverage. The description covers only two of those parameters and no success/failure behavior, so an agent lacks the context to call it confidently with all fields populated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and there are 8 parameters, so the description must compensate. It adds real meaning for montant_ttc (text format, e.g. '240.00') and chantier_id (the site number within the account), but leaves dossier, categorie, montant_ht, fournisseur, and montant_tva completely undocumented, and does not explain the relationship between the three montant fields.

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?

States a specific verb and resource ('Ajoute une dépense'), which cleanly separates it from the read-oriented sibling 'depenses'. It does not explicitly name an alternative or clarify how it relates to 'justificatifs_depense', so sibling differentiation is implicit rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description discloses the required permission (expenses:write), which is a useful prerequisite, but gives no when-to-use guidance, no exclusions, and never points to a sibling alternative. An agent must infer usage context entirely.

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