Skip to main content
Glama
ranges.py1.3 kB
"""Range-related schemas.""" from typing import Any from pydantic import BaseModel, Field class RangeDefinition(BaseModel): """Complete range definition for LLM-generated ranges.""" name: str = Field(..., description="Name of the range") description: str | None = Field(None, description="Description of the range") networks: list[dict[str, Any]] = Field(default_factory=list, description="Network definitions") hosts: list[dict[str, Any]] = Field(default_factory=list, description="Host definitions") links: list[dict[str, Any]] = Field(default_factory=list, description="Network links") class RangeCreate(BaseModel): """Request schema for creating a range.""" name: str = Field(..., description="Name of the range") description: str | None = Field(None, description="Optional description") class Range(BaseModel): """Range response schema.""" id: str | None = Field(None, description="Range ID") name: str = Field(..., description="Range name") description: str | None = Field(None, description="Range description") status: str | None = Field(None, description="Range status") created_at: str | None = Field(None, description="Creation timestamp") updated_at: str | None = Field(None, description="Last update timestamp")

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/tjnull/Ludus-FastMCP'

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