MCP Spreadsheet Tool
Analyzes spreadsheet documents (CSV, Excel) using natural language instructions.
- Tech: TypeScript, MCP SDK, pino
- Tool name:
analyze_excel_spreadsheet
Tool: analyze_excel_spreadsheet
Takes a document ID and analysis instructions. Fetches the spreadsheet from document-service, sends it to a spreadsheet-service for processing, and returns insights.
Input Schema
| Field | Type | Required | Description |
|---|---|---|---|
| documentId | string | Yes | ID of the spreadsheet document to analyze |
| instructions | string | Yes | Natural language instructions for the analysis |
Example
{
"name": "analyze_excel_spreadsheet",
"arguments": {
"documentId": "uuid-of-spreadsheet",
"instructions": "Calculate the total revenue for Q1 and compare it with Q2"
}
}
How It Works
- Fetches the document metadata from document-service by ID
- Sends the document content and instructions to the spreadsheet-service
- Returns the analysis results (calculations, insights, summaries)
Connections
| Target | Purpose |
|---|---|
| document-service | Fetch spreadsheet document by ID |
| spreadsheet-service | Execute the analysis |