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.2.0.tar.gz (9.6 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.2.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_stackresolve-0.2.0.tar.gz
  • Upload date:
  • Size: 9.6 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.2.0.tar.gz
Algorithm Hash digest
SHA256 7f880e3d89ff99ef497daaa350553f722285ff80352a60625ad97744592505ff
MD5 1ee693a6a2bbe4254a6981a6f7852795
BLAKE2b-256 d06e79ed5a5bbf8ae7d50419dff906539bd40779161cd4e880ca49676226ff69

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_stackresolve-0.2.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.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_stackresolve-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1a9ec64e98131fd07e8688d23afedf917b3ed04789649ebbd525ea89c793632
MD5 cb76fdfbcbbba4002645b1f66b031cba
BLAKE2b-256 1007533c72e9988b458adcabd27aed09a7d0692d2da20e595e0780eb9c5b0301

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_stackresolve-0.2.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

This release

0.2.0 This release

2 files

0.1.0

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