Skip to main content
Glama

get_model

Retrieve details and field information for a specific data model by providing its ID, enabling users to understand model structure and configuration within data pipelines.

Instructions

Get details and fields for a specific model.

Args: id: The model ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • The `get_model` tool handler, which fetches model details from the Polytomic API and formats the output as a JSON string.
    @mcp.tool()
    async def get_model(id: str) -> str:
        """Get details and fields for a specific model.
    
        Args:
            id: The model ID
        """
        result = await polytomic_request(f"/models/{id}")
        return json.dumps(result, indent=2)

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/therevenueengineer/polytomic-mcp'

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