Skip to main content

langchain-stackresolve

LangChain tools for StackResolve: web intelligence for AI agents.

Pick software for a task, compare vendors, check whether a product is agent-ready, and pull structured company facts. One tool call instead of a search-and-scrape loop.

pip install langchain-stackresolve

Quickstart

Every tool works without a key, subject to an anonymous rate limit. A free key from stackresolve.dev/developers raises it.

import os
from langchain_stackresolve import StackResolveToolkit
from langchain.agents import create_agent

os.environ["STACKRESOLVE_API_KEY"] = "ar_..."  # optional, raises the rate limit

agent = create_agent(
    model="claude-sonnet-5",
    tools=StackResolveToolkit().get_tools(),
)

result = agent.invoke({
    "messages": [{
        "role": "user",
        "content": "I need to scrape javascript-heavy sites. What should I use, "
                   "and what does it cost?",
    }]
})
print(result["messages"][-1].content)

The agent calls stackresolve_find_tools to get scored candidates, then stackresolve_get_pricing on the winner. Two calls, structured answers, no scraping.

Single tools

Import only what you need:

from langchain_stackresolve import StackResolveAudit, StackResolveFindTools

audit = StackResolveAudit()
print(audit.invoke({"domain": "stripe.com"}))

find = StackResolveFindTools()
print(find.invoke({"task": "send transactional email from a Node service"}))

Tools

Tool What it answers
stackresolve_find_tools "What should I use for this task?" Ranked, with AgentReady scores.
stackresolve_search_tools Registry search filtered on API, MCP, CLI, OpenAPI, or self-serve.
stackresolve_compare_products Side-by-side on scores, capabilities, and pricing.
stackresolve_audit 0-100 agent-readiness score for a domain, plus failing checks.
stackresolve_get_company Structured company facts from a domain.
stackresolve_get_pricing Current plans and prices as structured data.
stackresolve_find_competitors Competitors, with how each one differs.
stackresolve_research_company Deep research with sources, answering a question.

All eight work without a key, subject to an anonymous rate limit. A free key raises the limit and is required for account endpoints (monitors, usage, discovery runs), which this package does not expose.

Configuration

The toolkit and every tool accept api_key and base_url, and otherwise read STACKRESOLVE_API_KEY and STACKRESOLVE_BASE_URL from the environment.

toolkit = StackResolveToolkit(api_key="ar_...")

Pass an existing SDK client to share connection state:

from stackresolve import StackResolve

client = StackResolve(api_key="ar_...")
tools = StackResolveToolkit(client=client).get_tools()

Errors

Tools return a readable message rather than raising, so a failed call does not end the agent's turn. A missing key, an exhausted allowance, and a rate limit each come back as text the model can act on.

Output size

Tool output is capped at 6,000 characters and marked when truncated, so a large registry or research payload cannot flood the context window. Change it with langchain_stackresolve.tools.MAX_CHARS.

Also available

  • Hosted MCP server (no install): https://mcp.stackresolve.dev/mcp
  • TypeScript SDK and CLI: npm install stackresolve
  • Python SDK on its own: pip install stackresolve
  • REST API: https://api.stackresolve.dev, OpenAPI at /openapi.json

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_stackresolve-0.1.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_stackresolve-0.1.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file langchain_stackresolve-0.1.0.tar.gz.

File metadata

  • Download URL: langchain_stackresolve-0.1.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for langchain_stackresolve-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a7c99d162e568c531f707635cede5f30af8bd674aa41a67b03b900560ab74fe8
MD5 ff6d9e86cd0de381d6133303db928c43
BLAKE2b-256 b686b75e2c930497ebde72e4c6901a6c5589060908833631c44293ea972015bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_stackresolve-0.1.0.tar.gz:

Publisher: publish-langchain.yml on autorevai/agentready

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file langchain_stackresolve-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_stackresolve-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 759494e1213fe473959db2248b43e4392c0208840002416cbe88cbb37cf4b5d5
MD5 c7ef60a7176a9a1e9973162010c7a1a3
BLAKE2b-256 1841de517108f494efcbcda24df4b8cd988b5a3534de8438bf5caa255f8624f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_stackresolve-0.1.0-py3-none-any.whl:

Publisher: publish-langchain.yml on autorevai/agentready

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.0

2 files

This release

0.1.0 This release

2 files

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