import_glossary_csv
Imports CSV content into a glossary in unidirectional or multidirectional formats, returning an import job ID to poll until complete.
Instructions
Imports a CSV file into a glossary. Supports unidirectional and multidirectional formats. This is an async operation that returns an import job object containing an import_id. Poll with check_glossary_import_status using the returned import_id until the import is complete.
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": {
"id": "<id>",
"csv_content": "<csv_content>",
"content_type": "<content_type>"
},
"name": "import_glossary_csv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The glossary ID (format: gls_*, e.g., 'gls_xyz123') | |
| gzip | No | Whether the CSV content is gzip compressed | |
| csv_content | Yes | The content of the CSV file to upload | |
| content_type | Yes | The format of the CSV file. 'csv/table-uni' for unidirectional, 'csv/table-multi' for multidirectional | csv/table-uni |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Import job identifier | |
| end | No | End offset of the import | |
| size | No | Total number of entries in the import | |
| begin | No | Begin offset of the import | |
| channel | No | Channel identifier used by the import | |
| progress | No | Import progress between 0 and 1 (1 means complete) |