The project is in a healthy, maintained state
Four Anthropic SDK tools call Datacircle's open API with no key. List the GTM APIs and each API's best plans. Search every plan, or see where one provider ranks in our benchmarks. We benchmark all the GTM APIs and we put the results on our website: https://datacircle.dev
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 1.15.0, < 3
 Project Readme

Datacircle tools for the Anthropic Ruby SDK

Find the best GTM APIs. We benchmark all the GTM APIs and we put the results on our website.

Our website: https://datacircle.dev

This gem gives the Anthropic Ruby SDK four tools that call Datacircle's open API, https://api.datacircle.dev/v1. They run in the SDK's tool runner, client.beta.messages.tool_runner. You need no key and no account.

Tool What the tool gives Call
datacircle_list_apis Every GTM API on Datacircle, with the API's slug, number of plans, number of providers and best plan GET /apis
datacircle_best_plans One API's plans, sorted by score out of 100, best first. Each plan comes with a rank and a price per 1,000 calls GET /apis/{slug}/best
datacircle_search_plans Plans that match a provider or plan name, on all APIs or on one API. You can sort them by score, provider or price GET /plans
datacircle_provider The APIs a provider sells, and the provider's rank on each API GET /providers/{slug}

Install

bundle add anthropic-datacircle

The gem needs the anthropic gem 1.15.0 or later and Ruby 3.2 or later. The anthropic gem added the tool runner in 1.15.0.

Use the tools

Give the tools to the tool runner:

require "anthropic"
require "anthropic/datacircle"

client = Anthropic::Client.new

runner = client.beta.messages.tool_runner(
  model: "claude-opus-5-5",
  max_tokens: 16000,
  tools: Anthropic::Datacircle.tools,
  messages: [{role: "user", content: "Who are the 3 best providers for the email-finder API?"}]
)

message = runner.run_until_finished.last
puts message.content.find { _1.type == :text }&.text

You can also call each_message or each_streaming on the runner instead of run_until_finished. You can list our tools beside your own Anthropic::BaseTool tools: tools: [*Anthropic::Datacircle.tools, MyTool.new]. Pick tools by class to give the model only those: tools: [Anthropic::Datacircle::DatacircleBestPlans.new].

Make each call yourself

You can call a tool without a model and read the JSON answer:

Anthropic::Datacircle::DatacircleBestPlans.new.call(slug: "email-finder", limit: 3)
# => "{\"api\":\"Employee email\",\"slug\":\"email-finder\",...,\"plans\":[{\"api\":\"Employee email\",\"rank\":1,\"provider\":\"Emelia\",...}]}"

Anthropic::Datacircle::Calls.new makes the same calls and gives you a Hash. The methods of Calls are list_apis, best_plans, search_plans and provider.

What the model reads

Each tool gives the model a JSON object as text. Each plan comes with a rank, provider, plan, score, price per 1,000 (perThousand, in dollars) and a page on datacircle.dev. That page lists every field.

The tool raises Anthropic::Datacircle::Error with the API's message when the API gives no data, for example for an unknown slug. The tool runner sends that message to the model as an error result (is_error). The tool runner also sends network errors to the model as error results. The model can then call the tool again. The run keeps going.

Anthropic::Datacircle.tools(base_url: ...) sets a new address for the tools, for example a proxy of yours. Leave base_url out and the tools call https://api.datacircle.dev/v1.

Network

Each tool call makes one HTTPS GET request to https://api.datacircle.dev/v1. A tool makes two requests when the model gives a name instead of a slug. A tool also makes two when the model gives a provider instead of an API. A request holds the tool's own arguments and nothing else: no key and nothing from your chats. The API takes up to 60 calls a minute from one IP address. A tool waits once, for a minute at most, when the API asks for a wait. The gem depends only on anthropic and stores nothing.

Links

MIT license.