Skip to main content
Glama
river.ts610 B
import { z } from 'zod'; const PointSchema = z.object({ x: z.number(), y: z.number(), }); export const RiverPathSchema = z.object({ id: z.string(), worldId: z.string(), name: z.string(), points: z.array(PointSchema).min(2), width: z.number().positive(), sourceElevation: z.number(), mouthElevation: z.number(), }).refine( (data) => data.sourceElevation > data.mouthElevation, { message: 'River must flow downhill: sourceElevation must be greater than mouthElevation', } ); export type RiverPath = z.infer<typeof RiverPathSchema>; export type Point = z.infer<typeof PointSchema>;

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