Aller au contenu principal

tableurs


title: Tableurs sidebar_label: Tableurs (7) sidebar_position: 8 doc_type: reference

Tableurs

En bref

Lisez, ecrivez et interrogez vos feuilles de calcul collaboratives.

Prerequis

  • Cle API avec le preset MCP et les scopes requis
  • Client MCP configure (voir Configuration)

Exemples minimaux

Lire et interroger un tableur

  1. Listez vos tableurs :
{
"name": "spreadsheets_list",
"arguments": {}
}
  1. Lisez les lignes :
{
"name": "spreadsheets_read_rows",
"arguments": {
"spreadsheetId": "uuid-du-tableur",
"limit": 20
}
}
  1. Interrogez en langage naturel :
{
"name": "spreadsheets_query_nl",
"arguments": {
"spreadsheetId": "uuid-du-tableur",
"query": "clients actifs ce mois"
}
}

spreadsheets_delete_rows

Supprime des lignes d'un tableur.

Scopemcp.write
Lecture seuleNon
DestructifOui
IdempotentOui

Parametres

ParametreTypeRequisDescription
rowIdsarrayOuiRow IDs (uuid) to delete (max 500)
sheetIdstring (uuid)OuiSpreadsheet ID (uuid)
tabIdstring (uuid)NonOptional tab id (uuid) to scope deletions to a tab

Reponse

ChampTypeDescription
successboolean
rowsDeletednumber
rowIdsarray
warningsarray

Outils lies : spreadsheets_read_rows, spreadsheets_write_rows, spreadsheets_get_schema


spreadsheets_get

Recupere la structure et les metadonnees d'un tableur.

Scopemcp.read
Lecture seuleOui
DestructifNon
IdempotentOui

Parametres

ParametreTypeRequisDescription
sheetIdstring (uuid)OuiSpreadsheet ID (uuid)

Reponse

ChampTypeDescription
spreadsheetobject
idstring
namestring
descriptionstring
columnsarray
settingsunknown
rowCountnumber
updatedAtstring
isLockedboolean
isSourceLinkedboolean
deletedAtstring
tabsarray

Outils lies : spreadsheets_list, spreadsheets_get_schema, spreadsheets_read_rows


spreadsheets_get_schema

Recupere le schema d'un tableur (colonnes, types) avec apercu optionnel.

Scopemcp.read
Lecture seuleOui
DestructifNon
IdempotentOui

Parametres

ParametreTypeRequisDescription
sheetIdstring (uuid)NonSpreadsheet ID (uuid) (defaut : 0)

Reponse

ChampTypeDescription
spreadsheetobject
idstring
namestring
descriptionstring
rowCountnumber
isLockedboolean
isSourceLinkedboolean
deletedAtstring
columnsarray
sampleRowsarray

Outils lies : spreadsheets_get, spreadsheets_read_rows, spreadsheets_write_rows


spreadsheets_list

Liste les tableurs collaboratifs de votre workspace.

Scopemcp.read
Lecture seuleOui
DestructifNon
IdempotentOui

Parametres

ParametreTypeRequisDescription
includeTrashbooleanNonInclude soft-deleted spreadsheets (defaut : false)
limitnumberNonNombre maximum de resultats (defaut : 50)
offsetnumberNonDecalage pour la pagination (defaut : 0)
searchstringNonSearch by spreadsheet name (ILIKE)

Reponse

ChampTypeDescription
spreadsheetsarray
idstring
namestring
descriptionstring
rowCountnumber
updatedAtstring
isPinnedboolean
isSourceLinkedboolean
deletedAtstring
totalnumber
hasMoreboolean

Exemple

{
"name": "spreadsheets_list",
"arguments": {}
}

Outils lies : spreadsheets_get, spreadsheets_get_schema


spreadsheets_query_nl

Interroge un tableur en langage naturel.

Scopemcp.read
Lecture seuleOui
DestructifNon
IdempotentOui

Parametres

ParametreTypeRequisDescription
limitnumberNonMaximum rows to return (defaut : 50)
querystringNonNatural language query, e.g. "clients avec CA > 100000"

Reponse

ChampTypeDescription
planobject
interpretedQuerystring
spreadsheetIdsarray
filtersarray
warningsarray
confidencenumber
isExecutableboolean
resultsarray
totalnumber
hasMoreboolean

Outils lies : spreadsheets_list, spreadsheets_read_rows, spreadsheets_get_schema


spreadsheets_read_rows

Lit les lignes d'un tableur avec pagination.

Scopemcp.read
Lecture seuleOui
DestructifNon
IdempotentOui

Parametres

ParametreTypeRequisDescription
sheetIdstring (uuid)OuiSpreadsheet ID (uuid)
cursorRowNumbernumberNonReturn rows with row_number > cursorRowNumber (defaut : 0)
limitnumberNonMaximum rows to return (defaut : 200)
tabIdstring (uuid)NonOptional tab ID (uuid)

Reponse

ChampTypeDescription
rowsarray
nextCursorRowNumbernumber
hasMoreboolean

Outils lies : spreadsheets_get, spreadsheets_get_schema, spreadsheets_query_nl


spreadsheets_write_rows

Insere ou met a jour des lignes dans un tableur.

Scopemcp.write
Lecture seuleNon
DestructifOui
IdempotentNon

Parametres

ParametreTypeRequisDescription
datarecordOuiRow data as { columnId: value }
rowIdstring (uuid)NonExisting row id (uuid) for update/upsert
rowNumbernumberNonOptional row_number to target (upsert by row_number)

Reponse

ChampTypeDescription
successboolean
operationenum
rowsAffectednumber
rowIdsarray
warningsarray

Outils lies : spreadsheets_get_schema, spreadsheets_read_rows, spreadsheets_delete_rows

Besoin d'aide ?

Ecrivez-nous : Support et contact.