Skip to main content
Glama

StrucTime : calculateurs et modèles du bâtiment

Marge d’un chantier

structime_marge_chantier
Read-onlyIdempotent

Combien ce chantier m’a-t-il rapporté ? Achats, heures et frais rapportés au montant facturé donnent la marge réelle d’un chantier. Vous voyez son taux et ce qu’elle rapporte par heure passée. Page : https://structime.com/outils/marge-chantier/

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "facture": "<facture>",
      "achats": "<achats>",
      "heures": "<heures>",
      "coutHoraire": "<coutHoraire>",
      "frais": "<frais>"
    },
    "name": "structime_marge_chantier"
  }
}

Input Schema

NameRequiredDescriptionDefault
fraisYesFrais de chantier · en €
achatsYesAchats et fournitures · en €
heuresYesHeures passées sur le chantier · en h
factureYesMontant facturé hors taxes · en €
coutHoraireYesCoût horaire chargé · en €

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is covered. The description adds behavioral value by explaining that the tool computes a real margin and that the agent will see both the margin rate and the per-hour return, which is useful output context in the absence of an output schema.

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?

The definition is front-loaded with a clear question and then explains the calculation and outputs in two compact sentences. The trailing URL is a minor addition; overall there is little wasted language.

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 five fully described parameters and no output schema, the description does well by stating what the calculation uses and what the user will see (margin rate and per-hour gain). It could be slightly more complete by clarifying whether it operates purely on the supplied inputs or stored site data, but it is sufficient for an agent to call the tool correctly.

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%, with every parameter documented in the schema including units and defaults. The description paraphrases a few inputs ('Achats, heures et frais rapportés au montant facturé') but adds no format or semantic detail beyond what the schema already provides, so the baseline of 3 applies.

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?

The description clearly states the resource and computation: it calculates a construction site's real margin from purchases, hours, and costs relative to the invoiced amount, and reports the margin rate and earnings per hour. It does not explicitly distinguish this tool from the similarly named sibling structime_marge_et_coefficient, so it falls short of a 5.

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?

Usage is implied by the opening question 'Combien ce chantier m’a-t-il rapporté ?', which frames the tool as answering a site-profitability question. However, there is no explicit when-to-use guidance, no exclusions, and no comparison to alternatives such as seuil_de_rentabilite or marge_et_coefficient.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources