Skip to main content

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

FieldTypeRequiredDescription
documentIdstringYesID of the spreadsheet document to analyze
instructionsstringYesNatural 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

  1. Fetches the document metadata from document-service by ID
  2. Sends the document content and instructions to the spreadsheet-service
  3. Returns the analysis results (calculations, insights, summaries)

Connections

TargetPurpose
document-serviceFetch spreadsheet document by ID
spreadsheet-serviceExecute the analysis