Skip to main content

Datacircle tools for the Claude Agent SDK (Python)

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 package gives the Claude Agent SDK for Python four tools that call Datacircle's open API, https://api.datacircle.dev/v1. The SDK's create_sdk_mcp_server() puts the tools on an in-process MCP server. query() and ClaudeSDKClient give them to the model. You need no key and no account.

Tool What the tool gives Call
list_apis Every GTM API on Datacircle, with the API's slug, number of plans, number of providers and best plan GET /apis
best_plans One API's plans, best score out of 100 first. Each plan comes with a rank and a price per 1,000 calls GET /apis/{slug}/best
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
provider_ranks The APIs a provider sells, and the provider's rank on each API GET /providers/{slug}

Install

pip install claude-agent-sdk-datacircle

The tools work with claude-agent-sdk 0.1.51 and later, on Python 3.10 and later.

Use the tools

Give the server to query():

import anyio
from claude_agent_sdk import ClaudeAgentOptions, ResultMessage, query
from claude_agent_sdk_datacircle import allowed_tools, datacircle_server

async def main():
    options = ClaudeAgentOptions(
        mcp_servers={"datacircle": datacircle_server()},
        allowed_tools=allowed_tools(),
    )
    async for message in query(prompt="Who are the 3 best providers for the email-finder API?", options=options):
        if isinstance(message, ResultMessage):
            print(message.result)

anyio.run(main)

The model sees each tool as mcp__datacircle__<name>, like mcp__datacircle__best_plans. The datacircle in that name is the server's key in mcp_servers. If you use another key, pass it to allowed_tools(), like allowed_tools("dc").

allowed_tools() gives the four tool names, so the tools run with no permission prompt. allowed_tools=["mcp__datacircle"] allows them too. Leave out allowed_tools and can_use_tool, and the SDK refuses each call.

Recent versions of the SDK hide MCP tools from the model at first. The model finds the tools with the SDK's tool search.

ClaudeSDKClient takes the same options. A subagent can call the tools too.

You can put the tools beside your own tools on the same server:

from claude_agent_sdk import create_sdk_mcp_server
from claude_agent_sdk_datacircle import datacircle_tools

server = create_sdk_mcp_server(name="datacircle", tools=[*datacircle_tools(), my_tool])

To give the model only some of the tools, filter them by name: [t for t in datacircle_tools() if t.name != "provider_ranks"].

Make each call yourself

You can make each call without a model. Each call returns the answer as a dict:

from claude_agent_sdk_datacircle import best_plans

answer = await best_plans("email-finder", limit=3)
print(answer["plans"])

The other calls are list_apis(), search_plans() and provider_ranks(). If the API refuses a call, the dict is {"error": ...} with the API's message.

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. The page on datacircle.dev lists every field.

An unknown slug gets an error (is_error) with the API's message, and the tool to call instead. If an input does not fit the schema, the SDK returns an error that names the wrong argument. If the network fails, the model gets an error with the network error's message. After an error, the model can call the tool again and keep working.

ClaudeSDKClient.interrupt() stops the run while a tool waits for the API.

datacircle_tools(timeout=10) and datacircle_server(timeout=10) set how many seconds each call waits for an answer. The default is 30. The tools work in asyncio and in trio.

Network

Each tool call makes one HTTPS GET request to https://api.datacircle.dev/v1 and nothing else. The request holds only the tool's own arguments: no key and nothing from your chats. The API takes up to 60 calls a minute from one IP address. After a 429 answer (too many calls), the tool waits up to a minute and tries once more. The package depends only on the SDK and anyio. The package stores nothing.

MIT license.

Metadata

Release files for claude-agent-sdk-datacircle 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for claude-agent-sdk-datacircle 0.1.0
File Size Uploaded Provenance Actions
claude_agent_sdk_datacircle-0.1.0.tar.gz 13.3 kB Without provenance Details for claude_agent_sdk_datacircle-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for claude-agent-sdk-datacircle 0.1.0
File Interpreter ABI Platform Actions
claude_agent_sdk_datacircle-0.1.0-py3-none-any.whl Python 3 none any Details for claude_agent_sdk_datacircle-0.1.0-py3-none-any.whl

Total release size: 25.3 kB

Release files / claude_agent_sdk_datacircle-0.1.0.tar.gz

Download URL claude_agent_sdk_datacircle-0.1.0.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
934185c57d807da5ff8d9bc58e77727d522a95e629fc3d5c0d520f91c127d37f
BLAKE2b-256 checksum
How to use checksums
c32c427874ed957de6a7bd47187f0e6322607592441a82ad9de1d2a9a37dfba5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / claude_agent_sdk_datacircle-0.1.0-py3-none-any.whl

Download URL claude_agent_sdk_datacircle-0.1.0-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b05534e3088f251f49b94d79c915e2a812361e38566c3aacadf585e9268dd27
BLAKE2b-256 checksum
How to use checksums
30ce399c5d466385c899a98d06e6e5c5aea0b30b9687e968ce50207114b3e463
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for claude-agent-sdk-datacircle 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page