Skip to main content
Glama

list_models

Retrieve available Gemini AI models and current bridge status to select appropriate models for high-performance, stateful AI interactions through the MCP server.

Instructions

List available Gemini models and current bridge state. Returns known models, current active model, and agent info.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The tool `list_models` is defined and implemented as an async function decorated with @mcp.tool. It returns a dictionary containing available models and bridge status.
    @mcp.tool(
        name="list_models",
        annotations=ToolAnnotations(
            title="List Available Models",
            readOnlyHint=True,
            destructiveHint=False,
            idempotentHint=True,
            openWorldHint=False,
        ),
        description="List available Gemini models and current bridge state. "
        "Returns known models, current active model, and agent info.",
    )
    async def list_models() -> Dict[str, Any]:
        """List available models and bridge status."""
        return {
            "models": _KNOWN_MODELS,
            "approval_modes": list(_APPROVAL_MODES.keys()),
            "current_model": _bridge._current_model or "(not started)",
            "agent_info": _bridge._agent_info or None,
            "bridge_version": VERSION,
            "process_running": _bridge._proc is not None and _bridge._proc.poll() is None,
        }
Install Server

Other Tools

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/shenyunhuan/gemini_mcp'

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