Implement Model Context Protocol (Model Context Protocol) for Gov API

implementationChallenge

Prompt Content

Create a simulated government data API (e.g., a 'CitizenDatabaseService') and develop a Model Context Protocol (Model Context Protocol)-enabled tool for it. This tool should expose functions like `getCitizenData(id, elements)` and `redactPII(data)`. Ensure the Model Context Protocol schema includes security definitions (e.g., required authentication tokens, data classification).

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations