show
Retrieve detailed information about a specific AI model by specifying its name. Integrates with Ollama MCP Server to manage and interact with local AI models securely.
Instructions
Show information for a model
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Implementation Reference
- src/index.ts:54-61 (handler)Handler function that executes the 'show' tool: fetches model info via ollama.show and returns JSON or error.async ({ name }) => { try { const result = await ollama.show({ model: name }); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error: ${formatError(error)}` }], isError: true }; } }
- src/index.ts:52-52 (schema)Zod input schema defining required 'name' parameter as string.inputSchema: { name: z.string() },
- src/index.ts:47-62 (registration)Full registration of the 'show' tool including name, metadata, schema, and inline handler.server.registerTool( "show", { title: "Show model info", description: "Show information for a model", inputSchema: { name: z.string() }, }, async ({ name }) => { try { const result = await ollama.show({ model: name }); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error: ${formatError(error)}` }], isError: true }; } } );