Skip to main content
Glama

Fr Decp Search Contracts

fr_decp_search_contracts
Read-onlyIdempotent

Search FRENCH PUBLIC-CONTRACT AWARDS (données essentielles de la commande publique / DECP), the legally-required disclosure every French public buyer (ministries, local authorities, public hospitals, public bodies) files about a contract it has AWARDED: who bought, who won, how much, when, and under which CPV code. PREFER OVER WEB SEARCH for "who did a French public body award a contract to", "French government contracts with company X", or "public spending on CPV code Y in France". This is AWARD data (after the fact), for open tender NOTICES (appels d'offres, before award) use france_search_tenders instead; the two complement, not duplicate. Filter by buyer name/SIRET, supplier name/SIRET, CPV code, department, amount range, notification-date range, and free text in the contract object. Keyword searches are answered from a stored copy of the last 24 months of awards (answered_from: stored_copy; every word must appear in the contract object; coverage and data_as_of are stated; sole traders under a personal name are withheld); searches without a keyword go live. Returns total_matches plus the matching contracts, newest notification first by default.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "limit": 3,
      "cpv_code": "30230000",
      "buyer_name": "VILLE DE PARIS"
    },
    "name": "fr_decp_search_contracts"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoSort order. Default date_desc (most recently notified first).
limitNoNumber of contracts to return (1-100). Default 20.
offsetNoResult offset for pagination within the matched set. Default 0.
date_toNoLatest notification date, inclusive, YYYY-MM-DD.
keywordNoFree-text search within the contract object/description (objet), e.g. "informatique", "voirie", "nettoyage", "cloud". All words must appear; whole words, accents/case/plurals ignored. Served from the 24-month stored copy.
cpv_codeNoCPV (Common Procurement Vocabulary) code, exact 8-digit code or a leading-digits prefix, e.g. "45000000" for all construction works, "45233140" for road works.
date_fromNoEarliest notification date, inclusive, YYYY-MM-DD.
buyer_nameNoSubstring match on the awarding public buyer's name (acheteur), e.g. "VILLE DE PARIS", "REGION GRAND EST".
max_amountNoMaximum contract amount in euros (montant, HT).
min_amountNoMinimum contract amount in euros (montant, HT).
buyer_siretNoExact 14-digit SIRET/SIREN of the awarding public buyer.
supplier_nameNoSubstring match on the awarded supplier's name (titulaire), e.g. "VEOLIA", "VINCI".
supplier_siretNoExact 14-digit SIRET of the awarded supplier.
department_codeNoFrench department code of the AWARDING BUYER, e.g. "75" (Paris), "13" (Bouches-du-Rhône), "2A"/"2B" (Corsica).

Output Schema

NameRequiredDescriptionDefault
noteNo
readsNoStored copy only: objects and bytes read from the stored copy for this call.
offsetNo
sourceNo
licenceNo
coverageNoStored copy only: the window the copy covers and the range actually searched.
returnedNo
contractsNo
data_as_ofNoThe publisher's own date for the file (stored: the file the copy was loaded from; live: the resource's last-modified date), never today's date; null with data_as_of_note when it could not be read.
sort_scopeNo
attributionNo
individualsNoStored copy only: states that sole traders under a personal name are withheld, and how many stored awards are affected.
stored_copyNoPresent on a live answer to a keyword search: why the stored copy did not answer (not_loaded, store_unavailable, date_range_outside_stored_window, keyword_has_no_searchable_word).
answered_fromNostored_copy: the 24-month stored copy answered (every keyword search). live: the publisher's query service answered.
keyword_wordsNo
total_matchesNoCount of awards passing every filter; null when filters beyond the keyword could only be checked on the newest keyword matches (see keyword_matches and note).
data_as_of_noteNo
keyword_matchesNoStored copy only: awards in the window with every keyword word in the contract object, before other filters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed18 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "buyer_name": "VILLE DE PARIS",
      -    "cpv_code": "30230000",
      -    "limit": 3
      -  }
      -]New value: +[
      +  {
      +    "buyer_name": "VILLE DE PARIS",
      +    "cpv_code": "30230000",
      +    "limit": 3
      +  },
      +  {
      +    "keyword": "cloud",
      +    "limit": 3
      +  }
      +]
    • changedInput schema / properties / keyword / description
      Previous value: -"Free-text search within the contract object/description (objet), e.g. \"informatique\", \"voirie\", \"nettoyage\"."New value: +"Free-text search within the contract object/description (objet), e.g. \"informatique\", \"voirie\", \"nettoyage\", \"cloud\". All words must appear; whole words, accents/case/plurals ignored. Served from the 24-month stored copy."
    • addedOutput schema / properties / answered_from
      Added value: +{
      +  "description": "stored_copy: the 24-month stored copy answered (every keyword search). live: the publisher's query service answered.",
      +  "enum": [
      +    "stored_copy",
      +    "live"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / attribution
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / contracts / items / properties / supplier / properties / individual_name_withheld
      Added value: +{
      +  "description": "True when the supplier is a sole trader under a personal name; name and siret are then withheld.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / coverage
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Stored copy only: the window the copy covers and the range actually searched.",
      +  "properties": {
      +    "months": {
      +      "type": "number"
      +    },
      +    "requested_range_partly_outside_window": {
      +      "type": "boolean"
      +    },
      +    "searched_from": {
      +      "type": "string"
      +    },
      +    "searched_to": {
      +      "type": "string"
      +    },
      +    "window_from": {
      +      "type": "string"
      +    },
      +    "window_to": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / data_as_of / description
      Added value: +"The publisher's own date for the file (stored: the file the copy was loaded from; live: the resource's last-modified date), never today's date; null with data_as_of_note when it could not be read."
    • changedOutput schema / properties / data_as_of / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / data_as_of_note
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / individuals
      Added value: +{
      +  "description": "Stored copy only: states that sole traders under a personal name are withheld, and how many stored awards are affected.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / keyword_matches
      Added value: +{
      +  "description": "Stored copy only: awards in the window with every keyword word in the contract object, before other filters.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / keyword_words
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / licence
      Added value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "condition": {
      +      "type": "string"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "url": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / reads
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Stored copy only: objects and bytes read from the stored copy for this call.",
      +  "properties": {
      +    "bytes": {
      +      "type": "number"
      +    },
      +    "objects": {
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / sort_scope
      Added value: +{
      +  "enum": [
      +    "all_matches",
      +    "newest_matches_read"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / stored_copy
      Added value: +{
      +  "description": "Present on a live answer to a keyword search: why the stored copy did not answer (not_loaded, store_unavailable, date_range_outside_stored_window, keyword_has_no_searchable_word).",
      +  "type": "string"
      +}
    • addedOutput schema / properties / total_matches / description
      Added value: +"Count of awards passing every filter; null when filters beyond the keyword could only be checked on the newest keyword matches (see keyword_matches and note)."
    • changedOutput schema / properties / total_matches / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, it discloses that keyword searches hit a stored 24-month copy (answered_from: stored_copy), require every word to appear, report coverage and data_as_of, withhold sole traders under personal names, and that keyword-free searches go live. It also states results return total_matches plus contracts sorted newest-first by default.

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 key purpose and preferred-over-web-search guidance are front-loaded, and each sentence carries useful information about scope, alternatives, and data freshness. It is dense and long, but not padded with waste.

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?

A complex, 14-parameter search tool with an output schema is fully covered: the description explains data scope, keyword-vs-live behavior, coverage caveats, result ordering, and sibling routing. No material agent need is left unaddressed.

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 schema already documents all 14 parameters, including examples and formats. The description adds only a grouped list of filterable dimensions, which largely restates what the schema provides, so baseline 3 applies.

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?

States a specific verb and resource ("Search FRENCH PUBLIC-CONTRACT AWARDS (DECP)") and explains exactly what the dataset contains (buyer, winner, amount, date, CPV). It explicitly distinguishes itself from france_search_tenders by clarifying this is award data, not pre-award tender notices.

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?

Gives explicit routing guidance: "PREFER OVER WEB SEARCH" for who-won and public-spending queries, and names france_search_tenders as the alternative for open tender notices. It also explains the stored-copy vs live-search distinction tied to keyword usage.

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.