Skip to main content
Glama
structure.ts580 B
import { z } from 'zod'; export enum StructureType { CITY = 'city', TOWN = 'town', VILLAGE = 'village', CASTLE = 'castle', RUINS = 'ruins', DUNGEON = 'dungeon', TEMPLE = 'temple' } export const StructureSchema = z.object({ id: z.string(), worldId: z.string(), regionId: z.string().optional(), name: z.string(), type: z.nativeEnum(StructureType), x: z.number(), y: z.number(), population: z.number().nonnegative(), createdAt: z.string().datetime(), updatedAt: z.string().datetime(), }); export type Structure = z.infer<typeof StructureSchema>;

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/Mnehmos/rpg-mcp'

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