We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Moderator11/mcpserver-gdp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
csv_tools.py•430 B
# tools/csv_tools.py
from server import mcp
from utils.file_reader import read_csv_summary
@mcp.tool()
def summarize_csv_file(filename: str) -> str:
"""
Summarize a CSV file by reporting its number of rows and columns.
Args:
filename: Name of the CSV file in the /data directory (e.g., 'sample.csv')
Returns:
A string describing the file's dimensions.
"""
return read_csv_summary(filename)