Example • advanced • MCP

Use with your favorite LLM

Use with your favorite LLM

Ground ChatGPT, Claude, Gemini, or any MCP-capable runtime in SmartAPIs.net real-world intelligence without forcing curious users to know what MCP means first.

Public discovery Requires API key MCP-ready Not legal advice

Title

Use with your favorite LLM

Problem solved

Call SmartAPIs as a tool provider from an MCP-capable runtime.

Required route or routes

POST /mcp with initialize, tools/list, and tools/call.

Auth expectation

Initialize and discovery can be public. Product tools through MCP require X-API-Key and are usually paid routes.

Request snippet

curl

curl -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"smartagent_context_get","arguments":{"location_id":"chicago"}}}' \
  https://smartapis.net/mcp

Response snippet

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [{"type": "text", "text": "{\"location_id\":\"chicago\"...}"}]
  }
}

Next step

Call an authenticated tool such as smartagent_places_search with X-API-Key.

Caveats / legal posture

Tool outputs are informational. Preserve attribution and non-advice posture in downstream agent responses.