Skip to main content
Glama
turbot
by turbot

steampipe_plugin_show

Retrieve installation details for a Steampipe plugin, including version, memory limits, and configuration settings.

Instructions

Get details for a specific Steampipe plugin installation, including version, memory limits, and configuration.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName of the plugin to show details for

Implementation Reference

  • The async handler function that implements the core logic of the steampipe_plugin_show tool, querying the Steampipe database for plugin details based on the provided name.
    handler: async (db: DatabaseService, args: { name: string }) => {
      if (!db) {
        return {
          content: [{
            type: "text",
            text: "Database not available. Please ensure Steampipe is running and try again."
          }],
          isError: true
        };
      }
    
      try {
        const query = `
          SELECT 
            plugin_instance,
            plugin,
            version,
            memory_max_mb,
            limiters,
            file_name,
            start_line_number,
            end_line_number
          FROM steampipe_plugin
          WHERE plugin = $1
        `;
    
        const result = await db.executeQuery(query, [args.name]);
        
        if (result.length === 0) {
          return {
            content: [{
              type: "text",
              text: `Plugin '${args.name}' not found`
            }],
            isError: true
          };
        }
    
        return {
          content: [{
            type: "text",
            text: JSON.stringify({ plugin: result[0] })
          }]
        };
      } catch (err) {
        logger.error("Error showing plugin details:", err);
        return {
          content: [{
            type: "text",
            text: `Failed to get plugin details: ${err instanceof Error ? err.message : String(err)}`
          }],
          isError: true
        };
      }
    }
  • Input schema defining the parameters for the steampipe_plugin_show tool, requiring a 'name' string.
    inputSchema: {
      type: "object",
      properties: {
        name: {
          type: "string",
          description: "Name of the plugin to show details for"
        }
      },
      required: ["name"],
      additionalProperties: false
    },
  • Registration of the imported steampipe_plugin_show tool in the central tools export object used by the MCP server.
    steampipe_plugin_show: pluginShowTool as DbTool,

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/turbot/steampipe-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server