httpbin_json
Test and debug JSON data retrieval for slide show parameters, enabling experimentation and validation in the MCP Server Playground environment. Ideal for developers integrating with Calude Desktop and Cursor IDE.
Instructions
Returns data about slide show
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No |
Implementation Reference
- src/index.ts:59-81 (handler)Handler logic for the httpbin_json tool: fetches JSON from httpbin.org/json and returns the data as toolResult, with error handling.if (request.params.name === "httpbin_json") { try { const response = await fetch('https://httpbin.org/json', { method: 'GET', headers: { 'accept': 'application/json' } }); if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); } const data = await response.json(); return { toolResult: data }; } catch (error) { throw new Error("Something went wrong"); } }
- src/index.ts:36-46 (registration)Registration of the httpbin_json tool in the ListTools response, defining its name, description, and input schema.{ name: "httpbin_json", description: "Returns data about slide show ", inputSchema: { type: "object", properties: { a: { type: "number" }, }, required: [] } }
- src/index.ts:40-45 (schema)Input schema for the httpbin_json tool, defining an optional 'a' parameter of type number.type: "object", properties: { a: { type: "number" }, }, required: [] }