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
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_terraform_providers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter_criteria | No | Optional 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", } }, } }, }, - src/iac_memory_mcp_server/tools/__init__.py:43-55 (registration)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) - src/iac_memory_mcp_server/tools/__init__.py:38-41 (registration)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) - src/iac_memory_mcp_server/server.py:88-90 (registration)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