Skip to main content
Glama

Exporter en CSV (consomme du quota)

basile_export

Exporte un CSV COMPLET (~70-79 colonnes) pour des filtres OU une liste d'ids. CONSOMME le quota d'export du plan. Companies : mode = "companies" (1 ligne / entreprise, défaut) OU "locations" (1 ligne par POINT DE VENTE / établissement Google — à utiliser quand establishmentsTotal > total). ⚠️ Compte d'abord (basile_count). Deux chemins, choisis AUTOMATIQUEMENT selon le volume :

  • ≤ 500 lignes → le CSV est renvoyé INLINE dans la conversation ;

  • 500 lignes → un export FICHIER est lancé côté serveur et tu reçois un jobId, puis un LIEN de téléchargement via basile_export_status. Plafond = celui du plan (20 000 lignes/export en plan API, 50 000 en Agence), pas celui du chat. maxRows = plafond/export du plan ; capped = il reste des résultats au-delà.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsNoListe d'_id précis à exporter (alternative aux filtres).
kindYespeople = personnes/contacts ; companies = entreprises.
modeNoCompanies uniquement : "companies" (entreprises, défaut) ou "locations" (points de vente / établissements Google).
filtersNoFiltres (ou utilise `ids`).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
csvNomode=inline : le CSV complet, en-tête inclus.
modeYesinline = CSV dans `csv` ; file = fichier en construction/prêt (`jobId`) ; empty = aucun résultat ; oversized = trop gros pour l'inline, quota déjà débité.
jobIdNomode=file : identifiant à repasser à basile_export_status.
readyNomode=file : true quand le fichier est téléchargeable.
statusNomode=file : queued | running | done | partial | failed.
messageYesRésumé en clair, destiné à être lu tel quel.
filenameNoNom du fichier produit.
rowCountNoNb de lignes de données (hors en-tête).
expiresAtNoDate d'expiration du fichier (ISO 8601).
truncatedNoFichier coupé au plafond par export du plan.
downloadUrlNoLien de téléchargement direct, valable ~1 h.
planMaxRowsNoPlafond de lignes par export du plan, tel que renvoyé par l'API.
quotaReachedNoQuota mensuel d'export atteint pendant la construction.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare readOnlyHint=false, idempotentHint=false, destructiveHint=false. The description adds substantial context beyond this: 'CONSOMME le quota d'export du plan' reveals a quota side effect, the dual execution paths (inline vs server-side file with jobId) disclose async behavior, plan caps (20 000/50 000 lignes) are quantified, and maxRows/capped semantics explain result truncation. No contradiction with annotations — consuming quota is consistent with non-read-only, non-destructive.

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?

Every sentence earns its place: purpose, quota warning, mode rule, count-first prerequisite, execution paths, plan limits, and result semantics. The information is front-loaded (purpose and quota warning first), and the two-path workflow is presented with clear thresholds. Though dense, the length is justified by the tool's operational complexity — this is efficiency, not bloat.

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?

For a 4-param tool with nested filters, an output schema, async file export, and quota constraints, the description covers the critical operational surface: prerequisite (count first), automatic path selection with exact thresholds, follow-up status tool, plan caps, and response flags (maxRows, capped). The only minor gap is a concrete example of the open-ended filters object, but the 100% schema coverage and existing output schema mitigate this.

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 a meaningful decision rule for `mode` — '1 ligne / entreprise, défaut' vs '1 ligne par POINT DE VENTE / établissement Google — à utiliser quand establishmentsTotal > total' — which goes beyond the schema's enum listing. It also reinforces the ids-vs-filters alternative. A concrete filters example would push this to 5, but the schema already documents all parameters well.

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 opens with a specific verb+resource+scope: 'Exporte un CSV COMPLET (~70-79 colonnes) pour des filtres OU une liste d'ids.' It clearly distinguishes the tool from its siblings: basile_count counts, basile_export_status checks status, basile_search_* and basile_suggest search/suggest, while this is the only exporter. An agent can identify its role immediately.

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?

The description gives explicit operational guidance: 'Compte d'abord (basile_count)' establishes the prerequisite, 'via basile_export_status' names the follow-up tool, and 'à utiliser quand establishmentsTotal > total' gives a concrete selection rule for the locations mode. The two execution paths (inline ≤500 lines vs file >500 lines) are spelled out with exact thresholds, leaving nothing to inference.

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