Skip to main content
Glama

TA-Lib MCP Server

by phuihock
schemas.py752 B
"""Pydantic request/response schemas for the HTTP API.""" from typing import Any, Dict, List, Optional from pydantic import BaseModel, ConfigDict class ToolRequest(BaseModel): """Request body for calling a tool. Accepts a `close` list and any additional parameters which are included as extra fields and forwarded to the indicator.calculate call. """ # Pydantic v2 configuration model_config = ConfigDict(extra="allow") close: List[float] class ToolResult(BaseModel): model_config = ConfigDict() success: bool # Allow values to be either a list (series) or a full dict (e.g. {"sma": [...]}) values: Optional[Any] = None metadata: Optional[Dict[str, Any]] = None error: Optional[str] = None

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/phuihock/mcp-talib'

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