Skip to main content
Glama

Boncourant

Analyser une échéance contractuelle

analyze_renewal_terms
Read-onlyIdempotent

Calcule l’échéance et le préavis à partir des dates et clauses extraites, sans prix de marché (voir renewal_advisor) ni pénalité de résiliation.

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": {
      "evaluation_date": "<evaluation_date>"
    },
    "name": "analyze_renewal_terms"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_dateNoÉchéance contractuelle YYYY-MM-DD ; null si non documentée.
auto_renewalNoReconduction tacite confirmée par le contrat ; null si inconnue.
pricing_typeNoType de prix du contrat ; null si inconnu, jamais inféré.
evaluation_dateYesDate d’évaluation YYYY-MM-DD, pas la date d’effet du contrat.
notice_period_daysNoPréavis contractuel en jours ; null si non documenté.

Output Schema

NameRequiredDescriptionDefault
methodNo
outputNo
warningsNo
intermediatesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties
      Added value: +{
      +  "intermediates": {
      +    "additionalProperties": {},
      +    "properties": {},
      +    "type": "object"
      +  },
      +  "method": {
      +    "additionalProperties": {},
      +    "properties": {},
      +    "type": "object"
      +  },
      +  "output": {
      +    "additionalProperties": {},
      +    "properties": {},
      +    "type": "object"
      +  },
      +  "warnings": {
      +    "items": {},
      +    "type": "array"
      +  }
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / evaluation_date / description
      Previous value: -"Date civile d’évaluation YYYY-MM-DD ; ne remplace pas la date d’effet du contrat."New value: +"Date d’évaluation YYYY-MM-DD, pas la date d’effet du contrat."
    • changedInput schema / properties / pricing_type / description
      Previous value: -"Type de prix canonique issu du contrat ; null si inconnu, jamais inféré ici."New value: +"Type de prix du contrat ; null si inconnu, jamais inféré."
  3. Changed22 schema fields changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / auto_renewal / anyOf
      Added value: +[
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / auto_renewal / default
      Added value: +null
    • addedInput schema / properties / auto_renewal / description
      Added value: +"Reconduction tacite confirmée par le contrat ; null si inconnue."
    • removedInput schema / properties / auto_renewal / type
      Removed value: -[
      -  "boolean",
      -  "null"
      -]
    • addedInput schema / properties / end_date / anyOf
      Added value: +[
      +  {
      +    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / end_date / default
      Added value: +null
    • addedInput schema / properties / end_date / description
      Added value: +"Échéance contractuelle YYYY-MM-DD ; null si non documentée."
    • removedInput schema / properties / end_date / pattern
      Removed value: -"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
    • removedInput schema / properties / end_date / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedInput schema / properties / evaluation_date / description
      Added value: +"Date civile d’évaluation YYYY-MM-DD ; ne remplace pas la date d’effet du contrat."
    • changedInput schema / properties / evaluation_date / pattern
      Previous value: -"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"New value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • addedInput schema / properties / notice_period_days / anyOf
      Added value: +[
      +  {
      +    "maximum": 2000,
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / notice_period_days / default
      Added value: +null
    • addedInput schema / properties / notice_period_days / description
      Added value: +"Préavis contractuel en jours ; null si non documenté."
    • removedInput schema / properties / notice_period_days / minimum
      Removed value: -0
    • removedInput schema / properties / notice_period_days / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedInput schema / properties / pricing_type / anyOf
      Added value: +[
      +  {
      +    "enum": [
      +      "fixed",
      +      "market_indexed",
      +      "spot_indexed",
      +      "trve_linked",
      +      "arenh_reference"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / pricing_type / default
      Added value: +null
    • addedInput schema / properties / pricing_type / description
      Added value: +"Type de prix canonique issu du contrat ; null si inconnu, jamais inféré ici."
    • removedInput schema / properties / pricing_type / enum
      Removed value: -[
      -  "fixed",
      -  "market_indexed",
      -  "spot_indexed",
      -  "trve_linked",
      -  "arenh_reference",
      -  null
      -]
    • removedInput schema / properties / pricing_type / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
  4. First observed

TDQS

A4/5.0
Behavior3/5

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

The annotations already declare this as a read-only, idempotent, non-destructive, closed-world operation. The description adds useful scope exclusions (no market price, no termination penalty), but does not otherwise explain edge-case behavior such as handling of undocumented dates or null clauses.

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 definition is a single front-loaded sentence with no redundant wording. It efficiently communicates the calculation scope and the main exclusion in one pass.

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?

The tool has rich annotations, a complete input schema, and an output schema, so the description need not explain safety or return values. It is complete enough for selection and invocation, though the boundary with renewal_advisor and the treatment of missing contractual data could be slightly more explicit.

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 all five parameters are already documented in the input schema. The description only says the calculation is based on dates and extracted clauses, adding no parameter-level detail beyond the schema.

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 resources: it computes the contract deadline and notice period from extracted dates and clauses. It also explicitly excludes market price and termination penalty, and points to renewal_advisor as the alternative for market-price-related work.

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 phrase 'sans prix de marché (voir renewal_advisor)' gives clear routing guidance toward the sibling tool for market-price calculations. It also excludes termination penalties, but does not explicitly state the full set of when-not conditions or name an alternative for penalty analysis.

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.