Skip to content

feat(eval): log tool selection — query_logs (hosted) vs get_logs (self-hosted) - #100

Draft
jordienr wants to merge 1 commit into
mainfrom
claude/log-tool-selection-eval
Draft

feat(eval): log tool selection — query_logs (hosted) vs get_logs (self-hosted)#100
jordienr wants to merge 1 commit into
mainfrom
claude/log-tool-selection-eval

Conversation

@jordienr

Copy link
Copy Markdown
Member

What

Two MCP-mode evals that check the agent selects the right logs tool based on the tool descriptions:

  • investigate-logs-002-tool-selection-hosted — hosted project → expects query_logs (and not get_logs)
  • investigate-logs-003-tool-selection-self-hosted — self-hosted project → expects get_logs (and not query_logs)

Both are interface: mcp, suite: regression, scored deterministically on ctx.toolCalls[].endpoint.

Why

Review feedback on supabase/mcp#333 (Rodriguespn): "curious if the agent will correctly call query_logs when working with the hosted version and get_logs when working with self-hosted … we should have an eval scenario." That PR added the query_logs tool and description-level steering (hosted-only, with get_logs as the CLI/self-hosted fallback); these evals guard that steering.

⚠️ Blocked — not runnable yet

Draft because the tool under test doesn't exist in a released MCP server version:

The self-hosted context is conveyed via the prompt (MCP mode runs against hosted platform-lite), so it tests description-driven selection rather than a real self-hosted runtime — flagging in case reviewers prefer a local-stack variant instead.

Validated with pnpm eval:dry (both scenarios load, parse, and plan as mode=tools runtime=platform-lite). Not executed — that needs the version bump above.

…hosted)

Two MCP-mode evals asserting description-driven log tool selection:
- hosted project -> query_logs
- self-hosted project -> get_logs

From supabase/mcp#333 review feedback (Rodriguespn). Blocked on query_logs
shipping in a released @supabase/mcp-server-supabase version and bumping
MCP_SERVER_VERSION in this repo; not runnable until then.
@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
evals Ignored Ignored Jul 21, 2026 1:11pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant