Skip to main content
Glama
boondmanager-mcp-server

boondmanager-mcp-server

by silamir

Créer une feuille de temps

boond_timesheets_create

Create a monthly timesheet (CRA) for a resource with day-by-day lines, including production and absence entries, when the timesheet does not yet exist for that resource and month.

Instructions

Crée la feuille de temps (CRA) d'un mois pour une ressource, avec ses lignes jour par jour.

Quand : pour ouvrir le CRA d'un couple (ressource, mois) qui n'existe pas encore, après boond_timesheets_default. Plutôt que : boond_timesheets_search (startMonth/endMonth + resourceId) d'abord : l'API ne déduplique pas, deux CRA peuvent coexister sur le même mois ; boond_timesheets_update si le CRA existe déjà.

  • Un CRA est un conteneur mensuel (term + resource) ; les lignes vont dans regularTimes[] (production et absences) et exceptionalTimes[] — chaque ligne = un jour, une durée, un type d'unité d'œuvre, et pour la production un couple projectId / deliveryId imputable.

  • state n'est pas un champ d'écriture : il est piloté par le workflow de validation (boond_validations_search).

  • Écriture non idempotente. Vérifié en écriture le 26/11/2026 sur regularTimes : le serveur numérote lui-même le row de chaque ligne (ne pas le fournir), sans quoi l'API répond OK et ignore les lignes ; une journée partagée = deux lignes de 0,5 à la même date.

Returns : confirmation, ID créé (structuredContent.id) et fiche du CRA.

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": {
      "resourceId": "<resourceId>",
      "term": "<term>"
    },
    "name": "boond_timesheets_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
termYesMois du CRA (YYYY-MM). Un CRA = un mois × une ressource ; l'API ne déduplique pas.
agencyIdNoID de l'agence — voir `boond_timesheets_default`. Déduite de la ressource si omise.
resourceIdYesID de la ressource (le collaborateur dont c'est le CRA).
regularTimesNoLignes d'activité normale (production et absences). Omettre pour créer un CRA vide.
exceptionalTimesNoLignes d'activité exceptionnelle (interventions, astreintes) — types `exceptionalTime` / `exceptionalCalendar`.
informationCommentsNoCommentaires du CRA.

Output Schema

NameRequiredDescriptionDefault
idNoIdentifiant de l'entité créée/modifiée
typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changedv2.17.0
    • addedInput schema / properties / agencyId
      Added value: +{
      +  "description": "ID de l'agence — voir `boond_timesheets_default`. Déduite de la ressource si omise.",
      +  "pattern": "^\\d+$",
      +  "type": "string"
      +}
    • removedInput schema / properties / endDate
      Removed value: -{
      -  "description": "Date de fin (YYYY-MM-DD)",
      -  "type": "string"
      -}
    • addedInput schema / properties / exceptionalTimes
      Added value: +{
      +  "description": "Lignes d'activité exceptionnelle (interventions, astreintes) — types `exceptionalTime` / `exceptionalCalendar`.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "batchId": {
      +        "description": "ID du lot. Absent = aucun lot.",
      +        "pattern": "^\\d+$",
      +        "type": "string"
      +      },
      +      "deliveryId": {
      +        "description": "ID de la prestation (delivery) imputée. Requis avec `projectId` pour la production — voir `boond_timesheets_default`.",
      +        "pattern": "^\\d+$",
      +        "type": "string"
      +      },
      +      "duration": {
      +        "default": 1,
      +        "description": "Durée en unités d'œuvre (jour par défaut : 1 = journée, 0.5 = demi-journée).",
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "projectId": {
      +        "description": "ID du projet imputé. Requis pour une activité de production ; absent pour une absence. Couples autorisés : `boond_timesheets_default`.",
      +        "pattern": "^\\d+$",
      +        "type": "string"
      +      },
      +      "startDate": {
      +        "description": "Jour saisi (YYYY-MM-DD). Doit tomber dans le mois `term` du CRA.",
      +        "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +        "type": "string"
      +      },
      +      "workUnitTypeReference": {
      +        "default": 1,
      +        "description": "Code `reference` du type d'unité d'œuvre — voir `boond_timesheets_default` (`workUnitTypesAllowed` de la ressource). 1 = « Normale » (production) sur les tenants observés ; les absences (congés, RTT, maladie…) ont leurs propres codes.",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "startDate"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / informationComments
      Added value: +{
      +  "description": "Commentaires du CRA.",
      +  "type": "string"
      +}
    • removedInput schema / properties / note
      Removed value: -{
      -  "description": "Notes",
      -  "type": "string"
      -}
    • removedInput schema / properties / projectId
      Removed value: -{
      -  "description": "ID du projet",
      -  "type": "string"
      -}
    • addedInput schema / properties / regularTimes
      Added value: +{
      +  "description": "Lignes d'activité normale (production et absences). Omettre pour créer un CRA vide.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "batchId": {
      +        "description": "ID du lot. Absent = aucun lot.",
      +        "pattern": "^\\d+$",
      +        "type": "string"
      +      },
      +      "deliveryId": {
      +        "description": "ID de la prestation (delivery) imputée. Requis avec `projectId` pour la production — voir `boond_timesheets_default`.",
      +        "pattern": "^\\d+$",
      +        "type": "string"
      +      },
      +      "duration": {
      +        "default": 1,
      +        "description": "Durée en unités d'œuvre (jour par défaut : 1 = journée, 0.5 = demi-journée).",
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "projectId": {
      +        "description": "ID du projet imputé. Requis pour une activité de production ; absent pour une absence. Couples autorisés : `boond_timesheets_default`.",
      +        "pattern": "^\\d+$",
      +        "type": "string"
      +      },
      +      "startDate": {
      +        "description": "Jour saisi (YYYY-MM-DD). Doit tomber dans le mois `term` du CRA.",
      +        "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +        "type": "string"
      +      },
      +      "workUnitTypeReference": {
      +        "default": 1,
      +        "description": "Code `reference` du type d'unité d'œuvre — voir `boond_timesheets_default` (`workUnitTypesAllowed` de la ressource). 1 = « Normale » (production) sur les tenants observés ; les absences (congés, RTT, maladie…) ont leurs propres codes.",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "startDate"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / resourceId / description
      Previous value: -"ID de la ressource"New value: +"ID de la ressource (le collaborateur dont c'est le CRA)."
    • removedInput schema / properties / resourceId / minLength
      Removed value: -1
    • addedInput schema / properties / resourceId / pattern
      Added value: +"^\\d+$"
    • removedInput schema / properties / startDate
      Removed value: -{
      -  "description": "Date de début (YYYY-MM-DD)",
      -  "type": "string"
      -}
    • removedInput schema / properties / state
      Removed value: -{
      -  "description": "État de la feuille de temps",
      -  "type": "string"
      -}
    • changedInput schema / properties / term / description
      Previous value: -"Mois au format YYYY-MM"New value: +"Mois du CRA (YYYY-MM). Un CRA = un mois × une ressource ; l'API ne déduplique pas."
    • removedInput schema / properties / totalDays
      Removed value: -{
      -  "description": "Total jours",
      -  "type": "number"
      -}
    • removedInput schema / properties / totalHours
      Removed value: -{
      -  "description": "Total heures",
      -  "type": "number"
      -}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "id": {
      +      "description": "Identifiant de l'entité créée/modifiée",
      +      "type": "string"
      +    },
      +    "type": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed1 schema field changedv2.12.2
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  3. Addedv2.8.0

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing that the write is non-idempotent, that the API silently accepts and discards lines if `row` is supplied (a real failure mode), that a half-day is two 0.5 lines on the same date, and that `state` is workflow-driven and not writable. Minor gap: no note on permission/scope requirements or error behaviour on duplicate months beyond 'may coexist'.

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?

Front-loaded with the one-line purpose, then clearly delimited 'Quand' / 'Plutôt que' / bullet blocks, which is easy to scan. Slightly dense and a few bullets duplicate what the schema already documents, but every remaining sentence carries operational value.

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

Completeness5/5

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

For a non-idempotent create with nested line arrays, the description covers preconditions, deduplication risk, sibling routing, line structure, the non-writable `state`, and the response shape. With an output schema present, nothing an agent needs to call this correctly is missing.

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; the description adds real meaning on top by explaining the container-vs-lines split (`term` + `resource` versus `regularTimes[]`/`exceptionalTimes[]`), the production-vs-absence convention for projectId/deliveryId, and the instruction not to supply `row`. Some bullets restate schema wording (defaults, required pairs), which keeps it from a 5.

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 first sentence names a specific verb and resource (create a monthly CRA for a resource, with day-by-day lines) and immediately bounds the scope to a (resource, month) pair. An agent can distinguish this from boond_timesheets_search and boond_timesheets_update without opening any schema.

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?

Explicit 'Quand' section states the precondition (the CRA pair does not yet exist, after boond_timesheets_default), and the 'Plutôt que' section names both alternatives with their conditions: search first because the API does not deduplicate, update when the CRA already exists. Nothing is left to inference.

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

Deploy Server

Other Tools