Back to Search

neo_web_json_fetch

v0.1.0

Fetches a JSON resource from a web URL, stores it internally, and returns its URI along with its TypeScript schema.

$0.001 / call (Standard Tier)
Updated: Apr 30, 2026

Overview

A specialized networking and type inference tool designed for AI agents handling large datasets. Instead of returning massive raw JSON strings that consume valuable context tokens, this tool fetches the remote JSON file, securely stores it as an internal neonia:// resource, and intelligently generates a strict TypeScript type definition based on the data's structure. This guarantees type safety and significantly optimizes context window usage, allowing agents to seamlessly process and query complex APIs.

Example Input

JSON payload sent to this tool:

{
  "url": "https://api.example.com/data.json"
}

Example Output

Formatted JSON response returned by this tool:

{
  "resource_uri": "neonia://resources/123",
  "ts_schema": "type JsonData = {\n  id: number;\n};"
}

Setup Configuration

Add the following configuration to your MCP general settings or mcp_config.json:

{
  "mcpServers": {
    "neonia": {
      "serverUrl": "https://mcp.neonia.io/mcp?tools=neo_web_json_fetch",
      "headers": {
        "Authorization": "Bearer API_KEY"
      }
    }
  }
}