0% found this document useful (0 votes)
13 views2 pages

MCP Tools Visualization

The document outlines various XML tools for data analysis and visualization related to Excel files. It includes functions for reading sheet names, analyzing file structure, writing data, clearing cache, and exporting templates. Each tool is accompanied by an example of its XML schema for implementation.

Uploaded by

jdidibalsen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

MCP Tools Visualization

The document outlines various XML tools for data analysis and visualization related to Excel files. It includes functions for reading sheet names, analyzing file structure, writing data, clearing cache, and exporting templates. Each tool is accompanied by an example of its XML schema for implementation.

Uploaded by

jdidibalsen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

### **F.

Data Analysis & Visualization**


| **Tool Name** | **Type** | **Purpose**
| **Schema**
|
|---------------------------|----------|-------------------------------------------
-------------|---------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------|
| **readSheetNames** | XML | Get all sheet names from the Excel file
| `<readSheetNames fileAbsolutePath="/data/workspace/{account_id}/yourfile.xlsx"
/>`
|
| **analyzeExcelStructure** | XML | Get Excel file structure (sheets + column
headers) | `<analyzeExcelStructure
fileAbsolutePath="/data/workspace/{account_id}/yourfile.xlsx" headerRows="1" />`
|
| **writeSheetData** | XML | Create a new Excel file with provided data
(sheets/rows) |
```
<writeSheetData fileAbsolutePath="/data/workspace/{account_id}/newfile.xlsx">
<data>
<row sheetName="SheetA" col1="Alice" col2="Engineer" />
<row sheetName="SheetA" col1="Bob" col2="Designer" />
<row sheetName="SheetB" col1="2025-06-01" col2="1000" />
</data>
</writeSheetData>
```
|
| **clearFileCache** | XML | Clear cached data for the specified Excel
file | `<clearFileCache
fileAbsolutePath="/data/workspace/{account_id}/yourfile.xlsx" />`
|
| **exportExcelStructure** | XML | Export sheets + headers to a new Excel
template file | `<exportExcelStructure
sourceFilePath="/data/workspace/{account_id}/yourfile.xlsx"
targetFilePath="/data/workspace/{account_id}/structure_template.xlsx"
headerRows="1" />` |
| **readDataBySheetName** | XML | Get data from a specific sheet (specify
header/start) | `<readDataBySheetName
fileAbsolutePath="/data/workspace/{account_id}/yourfile.xlsx" sheetName="Sheet1"
headerRow="1" dataStartRow="2" />`
|
| **readSheetData** | XML | Get data from all sheets (specify
header/start) | `<readSheetData
fileAbsolutePath="/data/workspace/{account_id}/yourfile.xlsx" headerRow="1"
dataStartRow="2" />`
|
| **writeDataBySheetName** | XML | Write data to a specific sheet (overwrites
if exists) |
```
<writeDataBySheetName fileAbsolutePath="/data/workspace/{account_id}/yourfile.xlsx"
sheetName="Sheet1">
<rows>
<row colA="123" colB="456" colC="Foo" />
<row colA="789" colB="012" colC="Bar" />
</rows>
</writeDataBySheetName>
```
|

You might also like