Skip to main content
Glama

ollama_show

Display detailed model information including modelfile, parameters, and architecture specifications for analysis and configuration.

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 execution logic for the ollama_show tool: calls ollama.show({ model }) to fetch model details and formats the JSON 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); }
  • ToolDefinition export that defines and registers the ollama_show tool, including its handler, schema, and metadata. Auto-discovered by the autoloader.
    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 input validation schema for the ollama_show tool, used in the handler for parsing arguments.
    export const ShowModelInputSchema = z.object({ model: z.string().min(1), format: ResponseFormatSchema.default('json'), });
  • Inline inputSchema in toolDefinition matching the external schema, used for MCP tool listing.
    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'], },

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