Skip to main content
Glama

list_terraform_providers

Retrieve cached Terraform providers with metadata to manage Infrastructure-as-Code components and filter results by name patterns.

Instructions

List all cached Terraform providers with basic metadata

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filter_criteriaNoOptional filtering criteria

Implementation Reference

  • JSON schema defining the input parameters and description for the 'list_terraform_providers' tool.
    "list_terraform_providers": { "type": "object", "description": "List all cached Terraform providers with basic metadata", "required": [], "properties": { "filter_criteria": { "type": "object", "description": "Optional filtering criteria", "properties": { "name_pattern": { "type": "string", "description": "Regex pattern to filter provider names", } }, } }, },
  • Registers the generic call_tool and list_tools MCP handlers. The list_tools includes 'list_terraform_providers' from TOOL_SCHEMAS.
    def register_tools(server: Server) -> None: """Register all tool handlers with the server.""" @server.call_tool() async def call_tool( name: str, arguments: Dict[str, Any], ctx: RequestContext | None = None ): return await handle_call_tool(name, arguments, ctx) @server.list_tools() async def list_tools(ctx: RequestContext = None): return await handle_list_tools(ctx)
  • handle_list_tools function that provides the list of tools including 'list_terraform_providers' schema using TOOL_SCHEMAS from db.tools.
    async def handle_list_tools(ctx: RequestContext = None) -> list: """Main entry point for tool listing.""" return await base_list_tools(TOOL_SCHEMAS, ctx)
  • Invokes register_tools during server initialization, enabling tool registration including the schema for list_terraform_providers.
    register_tools( server ) # Register tools first since other handlers may need them

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/AgentWong/iac-memory-mcp-server-project'

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