Skip to main content
Glama
getrupt

Ashra Structured Data Extractor MCP

by getrupt
prompt.ts670 B
import { z } from "zod"; import { ashraRequest } from "../common/utils.js"; import { CreatePromptRequestSchema, CreatePromptResponseSchema, } from "../common/types.js"; export async function Create( params: z.infer<typeof CreatePromptRequestSchema> ) { const { url, prompt, schema, options } = CreatePromptRequestSchema.parse(params); const response = await ashraRequest(`https://api.ashra.ai/prompt`, { method: "POST", body: { url, prompt, schema, options }, headers: { "Content-Type": "application/json", "Authorization": `Bearer ${process.env.ASHRA_API_KEY}`, }, }); return CreatePromptResponseSchema.parse(response); }

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/getrupt/ashra-mcp'

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