Skip to main content
Glama

mcp_ollama_list

Retrieve a list of available Ollama models on the Ontology MCP server to facilitate AI-driven ontology data queries and manipulations.

Instructions

사용 가능한 Ollama 모델 목록을 조회합니다

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "type": "object" }

Implementation Reference

  • MCP tool handler for 'mcp_ollama_list' that delegates to ollamaService.listModels() and formats the response.
    async handler(args: any): Promise<ToolResponse> { const result = await ollamaService.listModels(); return { content: [ { type: 'text' as const, text: result } ] };
  • Input schema for mcp_ollama_list tool (no parameters required).
    inputSchema: { type: 'object', properties: {} },
  • src/index.ts:34-34 (registration)
    Tool capability registration in MCP server capabilities.
    mcp_ollama_list: true,
  • Core implementation of model listing via Ollama /api/tags endpoint.
    async listModels(): Promise<string> { try { const response = await axios.get(this.getApiUrl('tags')); return JSON.stringify(response.data, null, 2); } catch (error) { throw new McpError(ErrorCode.InternalError, `모델 목록을 가져오는데 실패했습니다: ${formatError(error)}`); } }
  • Full tool registration object including name, description, schema, and handler in the exported tools array.
    { name: 'mcp_ollama_list', description: '사용 가능한 Ollama 모델 목록을 조회합니다', inputSchema: { type: 'object', properties: {} }, async handler(args: any): Promise<ToolResponse> { const result = await ollamaService.listModels(); return { content: [ { type: 'text' as const, text: result } ] }; }

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/bigdata-coss/agent_mcp'

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