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
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Name of the model to show | |
| format | No | Output format (default: json) | json |
Implementation Reference
- src/tools/show.ts:10-18 (handler)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); }
- src/tools/show.ts:20-44 (registration)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); }, };
- src/schemas.ts:61-67 (schema)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'), });