Skip to main content
Glama

Order an index for many lots in one request / Commander un index par lot, en une requête

batch_submit
DestructiveIdempotent

Use this when the user has a list of lots (up to 500) and wants the index ordered for each. One request to one endpoint, not a loop of single-lot calls: the API queues a single job and spreads the lots across the organization’s active Registre accounts unless one is pinned. Before calling, tell the user how many documents this will order and get their agreement, then pass that same number in documents_confirmed; a mismatch is refused. Send a unique idempotency_key; a retry with the same key returns the stored answer instead of charging twice (kept 24 h). Envoyez une idempotency_key unique ; un nouvel essai avec la même clé ne facture pas deux fois (conservée 24 h). Requires an authenticated Fonciq account. / Exige un compte Fonciq authentifié. Side effect: delivers one document and charges the prepaid balance; the Registre foncier also bills its own separate fee. State the amount returned by the call before the user spends. Effet de bord : livre un document et débite le solde prépayé ; le Registre foncier facture aussi ses propres frais. Annoncez le montant renvoyé par l’appel avant toute dépense. À utiliser pour commander l’index de plusieurs lots en une seule requête, 500 au maximum ; annoncez le nombre de documents et attendez l’accord avant l’appel.

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": {
      "lots": "<lots>",
      "documents_confirmed": "<documents_confirmed>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "batch_submit"
  }
}

Input Schema

NameRequiredDescriptionDefault
lotsYesLot numbers, one document each. / Numéros de lot, un document chacun.
rf_account_idNoRegistre account id; omit for the organization default. / Compte du Registre ; par défaut si omis.
idempotency_keyYesUnique key for this write, 8+ characters. / Clé unique pour cette écriture.
documents_confirmedYesNumber of documents the user explicitly agreed to order. Must equal the number of distinct lots, or the call is refused. / Nombre de documents acceptés par l’utilisateur ; doit égaler le nombre de lots distincts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / documents_confirmed
      Added value: +{
      +  "description": "Number of documents the user explicitly agreed to order. Must equal the number of distinct lots, or the call is refused. / Nombre de documents acceptés par l’utilisateur ; doit égaler le nombre de lots distincts.",
      +  "maximum": 500,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / lots / description
      Previous value: -"Lot numbers. / Numéros de lot."New value: +"Lot numbers, one document each. / Numéros de lot, un document chacun."
    • changedInput schema / required
      Previous value: -[
      -  "lots",
      -  "idempotency_key"
      -]New value: +[
      +  "lots",
      +  "documents_confirmed",
      +  "idempotency_key"
      +]
  2. Changed1 schema field changed
    • removedInput schema / properties / user_request
      Removed value: -{
      -  "description": "The user's request in their own words, short. / La demande de l'utilisateur, en ses mots, courte.",
      -  "maxLength": 500,
      -  "type": "string"
      -}
  3. Changed1 schema field changed
    • addedInput schema / properties / user_request
      Added value: +{
      +  "description": "The user's request in their own words, short. / La demande de l'utilisateur, en ses mots, courte.",
      +  "maxLength": 500,
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=true, and the description substantiates both with detail the annotations cannot carry: the single job is spread across the organization's active Registre accounts unless rf_account_id is pinned, a retry with the same idempotency_key returns the stored answer without charging twice (kept 24 h), and a documents_confirmed mismatch is refused. It also discloses the full cost model — one document delivered, prepaid balance debited, and a separate Registre foncier fee — plus the instruction to state the returned amount before the user spends.

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

Conciseness3/5

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

The when-to-use clause is properly front-loaded, but nearly every point is stated twice in English and French, and the closing French sentence repeats the trigger and the 500-lot limit already given in the first sentence. For a bilingual product the duplication is defensible, but it roughly doubles length without adding information, and the cost/idempotency/auth facts are interleaved rather than grouped.

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?

This is a high-stakes mutation with money implications and no output schema, and the description covers all of it: routing, idempotency, confirmation gate, authentication, and both billing effects, plus the instruction to surface the returned amount to the user. Nothing an agent needs in order to call it safely 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 description coverage is 100%, so the baseline is 3; the description still adds value beyond the schema by explaining why idempotency_key exists (retry returns the stored answer, no double charge, 24 h retention) and why rf_account_id matters (otherwise lots spread across active accounts). The documents_confirmed mismatch rule is echoed rather than extended, which keeps this below 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 description names a specific verb and resource ('wants the index ordered for each' lot) with an explicit cardinality bound (up to 500 lots). It immediately distinguishes the tool from the obvious wrong approach: 'One request to one endpoint, not a loop of single-lot calls'. An agent can classify this correctly without opening the 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?

States the triggering condition ('when the user has a list of lots'), the alternative it replaces (looping single-lot calls), the prerequisite (authenticated Fonciq account), and a mandatory pre-call workflow (tell the user the document count, get agreement, pass that number in documents_confirmed). Missatisfied confirmation is explicitly refused, so the agent knows the failure mode up front.

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