← S3 · mcp.json

MCP-style tool manifest

Machine-readable tools for agent hosts. Full MCP transport + x402 pay-per-call ships after intent winner is chosen.

{
  "name": "lawlogic-agent-tools",
  "version": "0.1.0",
  "description": "LawLogic agent tools (search, funding spreads, research, utils). No human sales.",
  "policy": "A+C",
  "homepage": "https://lawlogic-web.lawlogic.workers.dev/agents",
  "openapi": "https://lawlogic-web.lawlogic.workers.dev/openapi.json",
  "intent": "https://lawlogic-web.lawlogic.workers.dev/api/intent",
  "tools": [
    {
      "name": "funding_spreads",
      "description": "Fetch public cross-venue perpetual funding rates and spread APR hints (Hyperliquid, Gate, Bitget, OKX). Policy A+C public data only.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/funding-spreads",
      "method": "GET",
      "pricing": "free_preview; or X-API-Key credits (1/call); or x402 ?mode=paid ~$0.01"
    },
    {
      "name": "research",
      "description": "Run a short Exa+LLM research call and return cited Markdown. Free preview limited to 3/IP/day.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "minLength": 8
          },
          "max_sources": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5
          }
        },
        "required": [
          "query"
        ]
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/research",
      "method": "POST",
      "pricing": "free_preview 3/IP/day; or X-API-Key credits (3/call); or x402 ?mode=paid ~$0.03"
    },
    {
      "name": "search_web",
      "description": "Web search via Exa: ranked titles, URLs, snippets. No LLM synthesis (use research for briefs).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "minLength": 4
          },
          "num_results": {
            "type": "integer",
            "minimum": 1,
            "maximum": 8
          }
        },
        "required": [
          "query"
        ]
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/search",
      "method": "POST",
      "pricing": "free_preview 5/IP/day; or X-API-Key credits (2/call); or x402 ?mode=paid ~$0.02"
    },
    {
      "name": "fetch_md",
      "description": "Fetch a public URL and return stripped readable text (not a browser).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          }
        },
        "required": [
          "url"
        ]
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/fetch-md",
      "method": "GET",
      "pricing": "free 5/IP/day; x402 ?mode=paid ~$0.01"
    },
    {
      "name": "wallet_check",
      "description": "Base address heuristics: contract vs EOA, ETH/USDC, nonce. Not compliance advice.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string"
          }
        },
        "required": [
          "address"
        ]
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/wallet-check",
      "method": "GET",
      "pricing": "free 8/IP/day; x402 ?mode=paid ~$0.005"
    },
    {
      "name": "health_scan",
      "description": "GET-probe a URL for HTTP status, latency, and 402/x402-looking headers.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          }
        },
        "required": [
          "url"
        ]
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/health-scan",
      "method": "GET",
      "pricing": "free 8/IP/day; x402 ?mode=paid ~$0.01"
    },
    {
      "name": "funding_pack",
      "description": "Public funding spreads plus naive slippage hint. Policy A+C.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/funding-pack",
      "method": "GET",
      "pricing": "free preview; x402 ?mode=paid ~$0.02"
    },
    {
      "name": "news_headlines",
      "description": "Exa news/headline search: titles, URLs, snippets.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "topic": {
            "type": "string"
          }
        },
        "required": [
          "topic"
        ]
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/news",
      "method": "POST",
      "pricing": "free 5/IP/day; x402 ?mode=paid ~$0.01"
    },
    {
      "name": "cheap_chat",
      "description": "Short OpenRouter gpt-4o-mini completion (250 token cap).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string"
          }
        },
        "required": [
          "prompt"
        ]
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/chat",
      "method": "POST",
      "pricing": "free 3/IP/day; x402 ?mode=paid ~$0.01"
    },
    {
      "name": "pdf_text",
      "description": "Extract literal strings from a PDF URL (not OCR).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          }
        },
        "required": [
          "url"
        ]
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/pdf-text",
      "method": "GET",
      "pricing": "free 3/IP/day; x402 ?mode=paid ~$0.02"
    },
    {
      "name": "sku_quote",
      "description": "Recommend a LawLogic SKU from a natural-language intent.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "q": {
            "type": "string"
          }
        },
        "required": [
          "q"
        ]
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/quote",
      "method": "GET",
      "pricing": "free"
    },
    {
      "name": "credits_purchase_info",
      "description": "Get Base USDC pay_to address and credit pricing for API keys.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/credits/purchase-info",
      "method": "GET",
      "pricing": "free"
    },
    {
      "name": "token_prices",
      "description": "CoinGecko simple price for coin ids vs USD.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "string"
          }
        }
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/prices",
      "method": "GET",
      "pricing": "free 10/IP/day; x402 ~$0.001"
    },
    {
      "name": "fx_rates",
      "description": "ECB FX via Frankfurter.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          }
        }
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/fx",
      "method": "GET",
      "pricing": "free 10/IP/day; x402 ~$0.001"
    },
    {
      "name": "ip_geo",
      "description": "IP geolocation (country/city/ISP).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "ip": {
            "type": "string"
          }
        },
        "required": [
          "ip"
        ]
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/ip-geo",
      "method": "GET",
      "pricing": "free 10/IP/day; x402 ~$0.002"
    },
    {
      "name": "base_gas",
      "description": "Current Base gas price.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/gas",
      "method": "GET",
      "pricing": "free 20/IP/day; x402 ~$0.001"
    },
    {
      "name": "hn_top",
      "description": "Hacker News top stories.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/hn",
      "method": "GET",
      "pricing": "free 8/IP/day; x402 ~$0.005"
    },
    {
      "name": "wiki_summary",
      "description": "Wikipedia page extract.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          }
        },
        "required": [
          "title"
        ]
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/wiki",
      "method": "GET",
      "pricing": "free 8/IP/day; x402 ~$0.002"
    },
    {
      "name": "arxiv_search",
      "description": "arXiv paper search.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "q": {
            "type": "string"
          }
        }
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/arxiv",
      "method": "GET",
      "pricing": "free 5/IP/day; x402 ~$0.01"
    },
    {
      "name": "chain_tvl",
      "description": "DefiLlama chain TVL.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "chain": {
            "type": "string"
          }
        }
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/tvl",
      "method": "GET",
      "pricing": "free 8/IP/day; x402 ~$0.005"
    },
    {
      "name": "weather",
      "description": "Open-Meteo current weather by lat/lon.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "lat": {
            "type": "string"
          },
          "lon": {
            "type": "string"
          }
        }
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/weather",
      "method": "GET",
      "pricing": "free 10/IP/day; x402 ~$0.001"
    },
    {
      "name": "sitemap_map",
      "description": "First 50 URLs from a site sitemap.xml.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          }
        },
        "required": [
          "url"
        ]
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/sitemap",
      "method": "GET",
      "pricing": "free 5/IP/day; x402 ~$0.01"
    },
    {
      "name": "random_bytes",
      "description": "CSPRNG hex, int, and uuid.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "bytes": {
            "type": "integer"
          }
        }
      },
      "endpoint": "https://lawlogic-web.lawlogic.workers.dev/v1/utils/random",
      "method": "GET",
      "pricing": "free; x402 ?mode=paid ~$0.001"
    }
  ]
}