Skip to main content
Glama

ollama_show

Retrieve detailed model information including modelfile, parameters, and architecture specifications for any Ollama model to understand its configuration and capabilities.

Instructions

Show detailed information about a specific model including modelfile, parameters, and architecture details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYesName of the model to show
formatNoOutput format (default: json)json

Implementation Reference

  • Core handler logic for ollama_show: executes ollama.show API call on the specified model and formats the response.
    export async function showModel( ollama: Ollama, model: string, format: ResponseFormat ): Promise<string> { const response = await ollama.show({ model }); return formatResponse(JSON.stringify(response), format); }
  • Tool registration exporting the toolDefinition object with name 'ollama_show', description, JSON input schema, and handler function that performs validation and calls the core showModel.
    export const toolDefinition: ToolDefinition = { name: 'ollama_show', description: 'Show detailed information about a specific model including modelfile, parameters, and architecture details.', inputSchema: { type: 'object', properties: { model: { type: 'string', description: 'Name of the model to show', }, format: { type: 'string', enum: ['json', 'markdown'], description: 'Output format (default: json)', default: 'json', }, }, required: ['model'], }, handler: async (ollama: Ollama, args: Record<string, unknown>, format: ResponseFormat) => { const validated = ShowModelInputSchema.parse(args); return showModel(ollama, validated.model, format); }, };
  • Zod schema used for input validation in the handler, defining required 'model' string and optional 'format'.
    /** * Schema for ollama_show tool */ export const ShowModelInputSchema = z.object({ model: z.string().min(1), format: ResponseFormatSchema.default('json'), });

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/rawveg/ollama-mcp'

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