Skip to main content
Glama

openai-tool2mcp

by alohays
openai.py522 B
from typing import Any from pydantic import BaseModel, Field class ToolRequest(BaseModel): """Model for OpenAI tool request""" tool_type: str parameters: dict[str, Any] thread_id: str | None = None instructions: str | None = None class ToolOutput(BaseModel): """Model for OpenAI tool output""" output: str error: str | None = None class ToolResponse(BaseModel): """Model for OpenAI tool response""" thread_id: str tool_outputs: list[Any] = Field(default_factory=list)

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/alohays/openai-tool2mcp'

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