Skip to main content
Glama
ssv445

Lorem Ipsum MCP Server

by ssv445
tools.ts1.68 kB
import { FastMCP } from "fastmcp"; import { z } from "zod"; import * as services from "./services/index.js"; /** * Register all tools with the MCP server * * @param server The FastMCP server instance */ export function registerTools(server: FastMCP) { // Image tool powered by picsum.photos server.addTool({ name: "image", description: "Generate or fetch images from picsum.photos with various options", parameters: z.object({ width: z.number().int().positive().optional().describe("The width of the image in pixels"), height: z.number().int().positive().optional().describe("The height of the image in pixels"), id: z.string().optional().describe("The ID of a specific image to retrieve"), seed: z.string().optional().describe("A seed for generating a static random image"), grayscale: z.boolean().optional().describe("Apply grayscale filter to the image"), blur: z.number().int().min(1).max(10).optional().describe("Apply blur filter (1-10)"), format: z.enum(["jpg", "webp"]).optional().describe("Image format"), output: z.enum(["url", "file"]).default("url").describe("Output type: url returns string URL, file returns binary data"), list: z.boolean().optional().describe("Fetch list of available images"), page: z.number().int().positive().optional().describe("Page number for list results"), limit: z.number().int().positive().optional().describe("Number of results per page for list"), info: z.boolean().optional().describe("Fetch metadata for a specific image") }), execute: async (params) => { return await services.ImageService.generateImage(params); } }); }

Implementation Reference

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/ssv445/lorem-ipsum-mcp'

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