Markdown Converter
Agent skill for markdown-converter
This project has MCP (Model Context Protocol) tools configured to interact with Treasure Data. When users ask about Treasure Data operations, use the available MCP tools instead of suggesting manual curl commands.
Sign in to like and favorite skills
This project has MCP (Model Context Protocol) tools configured to interact with Treasure Data. When users ask about Treasure Data operations, use the available MCP tools instead of suggesting manual curl commands.
Purpose: List all databases in the Treasure Data account Usage: When user asks "list databases", "show databases", "what databases do I have" Tool Call: Use the
list-databases MCP tool directly
Purpose: List tables in a specific database Usage: When user asks "list tables in [database]", "show tables", "what tables are in [database]" Tool Call: Use the
list-tables MCP tool with database parameter
Purpose: Get schema and details of a specific table Usage: When user asks "describe table [table]", "show schema", "what columns does [table] have" Tool Call: Use the
describe-table MCP tool with database and table parameters
Purpose: Execute SQL queries against Treasure Data Usage: When user asks to run SQL queries or analyze data Tool Call: Use the
run-query MCP tool with database, query, and optional parameters
User: "List up all the databases in my TD account" Response: Use the
list-databases MCP tool to get the actual database list
User: "Show me tables in the cost database"
Response: Use the
list-tables MCP tool with database="cost"
User: "What's the schema of the users table?" Response: Use the
describe-table MCP tool (ask for database if not specified)
export TD_API_KEY="your_account_id/your_api_key_hash"When users request Treasure Data operations, make HTTP requests to the MCP server:
https://td-client-mcp.internal.treasuredata.com/mcpContent-Type: application/jsonAuthorization: Bearer ${td_api_key} (get from MCP configuration)For list-databases:
curl -X POST https://td-client-mcp.internal.treasuredata.com/mcp \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $TD_API_KEY" \ -d '{"jsonrpc":"2.0","id":1,"method":"list-databases","params":{}}'
For list-tables:
curl -X POST https://td-client-mcp.internal.treasuredata.com/mcp \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $TD_API_KEY" \ -d '{"jsonrpc":"2.0","id":2,"method":"list-tables","params":{"database":"database_name"}}'
For describe-table:
curl -X POST https://td-client-mcp.internal.treasuredata.com/mcp \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $TD_API_KEY" \ -d '{"jsonrpc":"2.0","id":3,"method":"describe-table","params":{"database":"database_name","table":"table_name"}}'
For run-query:
curl -X POST https://td-client-mcp.internal.treasuredata.com/mcp \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $TD_API_KEY" \ -d '{"jsonrpc":"2.0","id":4,"method":"run-query","params":{"database":"database_name","query":"SQL_QUERY_HERE","engine":"presto","limit":10,"wait":true}}'
tools/list - Get list of available toolslist-databases - Returns all databaseslist-tables - Returns tables in specified databasedescribe-table - Returns table schemarun-query - Executes SQL queriesget-job-status - Checks query job statusget-query-results - Gets results from completed jobsTD_API_KEY$TD_API_KEY in curl commandsaccount_id/api_key_hash