Skip to main content
Glama

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
NameRequiredDescriptionDefault
aNo

Implementation Reference

  • 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: [] } }
  • Input schema for the httpbin_json tool, defining an optional 'a' parameter of type number.
    type: "object", properties: { a: { type: "number" }, }, required: [] }

Other Tools

Related Tools

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/psaboia/mcp-server-playground'

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