Skip to content
Source
Sign inSign up
TanStack/schemas

Read Groq tool pages' Supported Models tables for serverTools #738 (GitHub #737)

Mergedtombeckenhammerged 3 commits intomain fromfix/707-groq-toolsmerged by tombeckenham View on GitHub

tombeckenhamcommented

Part of #707

Groq's chat rows now get serverTools from every Groq page that lists models per hosted tool. A row none of them names stays null with no entry: these pages are not a complete per-model source, so silence would overclaim.

Sources read

PageElementTool type id
https://console.groq.com/docs/tool-use/built-in-tools.md### GPT-OSS Models bullets + Identifier column (already parsed); "You can specify browser_search or code_interpreter"browser_search, code_interpreter
https://console.groq.com/docs/browser-search.md## Supported Models table, Model ID column ("supported for the following models")browser_search (from the page's tools=[{"type": ...}] examples)
https://console.groq.com/docs/code-execution.md## Supported Models and Systems table, Model ID columncode_interpreter
https://console.groq.com/docs/tool-use/remote-mcp.md## Supported Models table ("available on all Groq models that support tool use")mcp (same id OpenAI and BytePlus rows use)

The tables are not complete. https://console.groq.com/docs/tool-use/overview.md says "All models hosted on Groq support tool use", and its table lists minimaxai/minimax-m2.7 with tool use "Yes", but the MCP table leaves that model out. So no source-silent entry is written.

Groq also contradicts itself on openai/gpt-oss-safeguard-20b: the overview table says "Built-In Tools Support? No", while the browser-search page lists the model. This PR follows the browser-search page.

I did not read the overview's "Built-In Tools Support?" column. None of the three unnamed rows appears in it. Its "No" rows are the safeguard row, which is contradicted, and qwen/qwen3.8-27b, which the MCP page gives mcp. Silence for either would be false.

The 5 rows from #707

  • openai/gpt-oss-safeguard-20b → ["browser_search"] (browser search table)
  • qwen/qwen3.8-27b → ["mcp"] (remote MCP table)
  • allam-2-7b, meta-llama/llama-prompt-guard-2-22m, meta-llama/llama-prompt-guard-2-86m → null, no entry (no page names them, and the pages are not complete)

Side effect: openai/gpt-oss-20b and -120b gain mcp (remote MCP table names both).

Failure handling

Each page loads through tryDocs under its own cache key (the built-in page keeps its key and cached shape, so no DOCS_CACHE_VERSION bump). If any page fails, every row is absent: unavailable and keeps its stored tools: a partial union is never stored and a failure never reads as silence. A tool page throws instead of naming no model when its Supported Models heading, its Model ID header, any Model ID cell or its single tools type id changes.

Checks

  • Trimmed real fixtures: fixtures/groq-{browser-search,code-execution,remote-mcp}.md.txt (fetched 2026-11-21).
  • server-tools.test.ts: per-page parse, changed wording throws (including a bad Model ID cell), union and per-tool sources, no entry for an unnamed model, one failed page → unavailable.
  • pnpm run typecheck, pnpm run lint, pnpm run check; vitest on groq adapter, server-tools, source-silent-facts, poll-models worker, model-facts, first-party worker: 166 passed. No spec change.
    1. tombeckenham pushedfaea21d

    2. tombeckenham merged this7e17693

    3. tombeckenham closed this

Sign in to join this conversation.