stacklet-mcp

v2026.10.26
stacklet-mcp Checked 9 hours ago Published 1 month ago

MCP server for the Stacklet environment

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

assetdb_sql_info

Essential guide for working with AssetDB - read this before writing SQL queries. AssetDB is Stacklet's massive cloud asset warehouse containing billions of records across resources, costs, tags, and relationships. This guide explains the schema, performance best practices, and common query patterns. ⚠️ Critical: Many tables are extremely large and require careful indexing and filtering to avoid timeouts. This guide shows you how to query safely and efficiently.

assetdb_sql_query

Execute custom SQL queries directly against the AssetDB data warehouse. ⚠️ IMPORTANT: AssetDB contains massive datasets. Always use LIMIT clauses and indexed filters to avoid timeouts. Call assetdb_sql_info() first to understand the schema and best practices. This tool is for ad-hoc analysis and exploration. For frequently-used queries, consider saving them with assetdb_query_save() for better performance and reuse. **Result Handling:** - Only the first 20 rows are included in the response to reduce context usage - The complete rows are always available: either saved as a JSON file in…

ParameterTypeDescription
query *stringSQL query string to execute against AssetDB
max_ageMaximum age of cached results in seconds (-1 = any cached result, 0 = always fresh)
timeoutQuery execution timeout in seconds (max 300)

assetdb_query_list

Browse and search through saved SQL queries in AssetDB. Use this to discover existing queries before creating new ones, or to find queries by name, content, or tags. Results are paginated for performance. Common use cases: - Find queries related to a specific topic: search="cost analysis" - Browse queries by category: tags=["production", "monitoring"] - List recently created queries: page=1, page_size=10 Next steps: Use assetdb_query_get() to get full details or assetdb_query_result() to execute.

ParameterTypeDescription
pagePage number for pagination (1-based)
page_sizeNumber of queries to return per page (max 100)
searchSearch term to match against query names, descriptions, and SQL content
tagsList of tags to filter queries by (all must match)

assetdb_query_get

Get complete details for a saved query including its SQL, parameters, and metadata. Use this when you need to examine a query's structure, understand its parameters, or check its settings before executing or modifying it. Returns the full query object with SQL text, parameter definitions, tags, creation info, and other metadata. Use assetdb_query_result() to actually execute the query and get data.

ParameterTypeDescription
query_id *ID of the query to retrieve details for

assetdb_query_result

Execute a saved query and get its results with smart caching. This runs a previously saved query and returns links to the results in various formats, which can be used to access the data in a preferred format. Redash caches results to improve performance - use max_age to control cache behavior. Parameters are required for parameterized queries - check the query definition first using assetdb_query_get() to see what parameters are expected. **Result Handling:** - Only the first 20 rows are included in the response to reduce context usage - The complete rows are always available: either saved…

ParameterTypeDescription
query_id *ID of the query to execute and get results for
max_ageMaximum age of cached results in seconds (-1 = any cached result, 0 = always fresh)
parametersParameter values for parameterized queries
timeoutQuery execution timeout in seconds if not cached (max 300)

docs_list

Browse the complete library of Stacklet documentation files. Returns all available documentation including user guides, API references, tutorials, and troubleshooting resources. Each file has a path and descriptive title. Start with "index_llms.md" - it's specifically designed as an LLM-friendly overview of all documentation and provides the best entry point for understanding Stacklet's features and capabilities. The glossary is also extremely valuable in understanding the most important concepts and their relationships. Use docs_read() with any of the returned file paths to get the actual…

docs_read

Read Stacklet documentation files for detailed guidance and reference information. Provides access to the complete Stacklet knowledge base including setup guides, feature explanations, API documentation, best practices, and troubleshooting help. Recommended reading order: 1. Start with "index_llms.md" for the big picture overview 2. Follow links to specific topics you need 3. Check troubleshooting guides for common issues All documentation is written in Markdown format and regularly updated to reflect the latest Stacklet features and best practices.

ParameterTypeDescription
file_path *stringRelative path to the documentation file to read (e.g., 'index_llms.md')

platform_graphql_info

Essential guide for Stacklet Platform GraphQL API - read this first before using other tools. The Platform API provides access to all Stacklet governance features: policies, account groups, bindings, resources, executions, and more. This guide explains the GraphQL schema patterns, connection-based pagination, filtering, and best practices for effective queries. ⚠️ Always check this guide first - it contains critical information about schema introspection, filtering syntax, and performance considerations for large-scale governance data.

platform_graphql_list_types

Discover available GraphQL types in the Stacklet Platform API. Use this to explore the schema and find the right types for your queries. Essential for understanding what data is available and how types relate to each other. Without a filter, returns all available types. With a regex filter, narrows down to matching type names (e.g., "Account.*" finds AccountGroup, AccountList, etc.). Next step: Use platform_graphql_get_types() to see detailed definitions for interesting types.

ParameterTypeDescription
matchOptional regular expression to filter GraphQL types by name

platform_graphql_get_types

Get detailed GraphQL type definitions to understand schema structure. Returns the full GraphQL Schema Definition Language (SDL) for specified types, showing all fields, arguments, relationships, and documentation. Essential for building correct queries. Use this after platform_graphql_list_types() to understand: - What fields are available on each type - Required vs optional arguments - Relationships between types - Input types for mutations The SDL output shows exactly how to structure your GraphQL queries.

ParameterTypeDescription
type_names *List of GraphQL type names to retrieve SDL definitions for

platform_graphql_query

Execute GraphQL queries against the Stacklet Platform for governance operations. This is your main tool for querying policies, account groups, bindings, resources, executions, and all other governance data. Supports both queries and mutations. ⚠️ Important guidelines: - Always query for "problems" field alongside your data - Use small page sizes (5-10) for exploration, larger for known datasets - Check types with platform_graphql_get_types() first - For large exports, use platform_dataset_export() instead

ParameterTypeDescription
query *stringGraphQL query string to execute against the Stacklet Platform API
variablesVariables to pass to the GraphQL query

platform_dataset_info

Guide for exporting large datasets from Stacklet Platform - use for big data analysis. When you need to export thousands of governance records (policies, resources, executions, etc.), the dataset export tools provide server-side CSV generation that's much more efficient than paging through GraphQL connections. This guide explains how to structure export requests, handle large datasets, and work with the async export process. Essential for data analysis workflows.

platform_dataset_export

Export large governance datasets to CSV for analysis and reporting. Perfect for exporting thousands of resources, policies, executions, or other governance data when GraphQL pagination would be too slow. The server handles all paging and generates a downloadable CSV file. Process: 1. Define columns mapping GraphQL fields to CSV columns 2. Optionally add filters via params 3. Export runs asynchronously - use timeout=0 to return immediately 4. Use platform_dataset_lookup() to check progress and get the result A completed export's file is downloaded before the call returns when the server writ…

ParameterTypeDescription
columns *List of columns to include in the exported CSV file
connection_field *stringName of the GraphQL connection field to export data from
node_id
paramsParameters to pass to the connection field for filtering or customization
timeoutMaximum time to wait for export completion in seconds (0 = return immediately with dataset_id)

platform_dataset_lookup

Monitor dataset export progress and retrieve download links. Use this to check on exports started with platform_dataset_export(). Returns current status, progress info, and download URL when complete. Export states: - Processing: Export is running (shows progress if available) - Complete: Ready for download (includes download_url and expiry time, plus either full_results_saved_to or download_note; an expired export has only the note) - Failed: Export encountered an error Set timeout > 0 to wait for completion, or timeout=0 for an immediate status check. Every lookup of a completed export…

ParameterTypeDescription
dataset_id *stringDataset export ID returned from platform_dataset_export
timeoutMaximum time to wait for export completion in seconds (0 = return current status immediately)