arcade-mcp icon indicating copy to clipboard operation
arcade-mcp copied to clipboard

feat(arcade-core): add WEB_SEARCH service domain

Open TheMostlyGreat opened this issue 5 months ago • 1 comments

What

Adds ServiceDomain.WEB_SEARCH for web search engines and search APIs, with a decorator test mirroring the existing domain tests. Bumps arcade-core to 4.9.0 (minor, same shape as #866).

Why

Web-search services have no ServiceDomain that passes the 10/10 consistency test, so every search toolkit ships with classification None and gets no category scoring boost:

  • Shipped today: google_search, exa (ArcadeAI/monorepo#1646)
  • Queued: Brave Search, Tavily, Perplexity

That's five services validating the boundary — past the "deferred until more toolkits validate the boundary" bar.

Naming

WEB_SEARCH over SEARCH / SEARCH_ENGINE:

  • SEARCH fails 10/10 — invites in-app search misclassification (a tool that searches Slack is MESSAGING) and would ambiguously absorb site-search services like Algolia, which is a different market category deserving its own value.
  • SEARCH_ENGINE reads as the consumer SERP product; "Is Perplexity a search engine?" splits the room.
  • WEB_SEARCH passes 10/10 for all five target services, and is the natural sibling of WEB_SCRAPING — the docstring pivots on query → ranked results from a web index, which extraction services (Firecrawl, Apify) don't do, keeping the scraping boundary crisp.

Vendor self-identification checked 2026-06-12: Tavily "the real-time search engine for AI agents"; Exa semantic web search; Brave "independent index of the Web".

Testing

  • libs/tests/tool + libs/tests/core + metadata serialization: 625 passed
  • New test: test_decorator_accepts_web_search_domain

🤖 Generated with Claude Code

TheMostlyGreat avatar Jun 12 '26 17:06 TheMostlyGreat

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
libs/arcade-core/arcade_core/metadata.py 100.00% <100.00%> (ø)
:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Jun 12 '26 17:06 codecov[bot]