Skip to content

Add everyrow_single_agent MCP tool#173

Merged
RafaelPo merged 3 commits intomainfrom
feat/single-agent-tool
Feb 20, 2026
Merged

Add everyrow_single_agent MCP tool#173
RafaelPo merged 3 commits intomainfrom
feat/single-agent-tool

Conversation

@RafaelPo
Copy link
Contributor

Summary

  • Adds everyrow_single_agent MCP tool that dispatches a single web research agent on a task (unlike everyrow_agent which processes many CSV rows)
  • Accepts optional input_data dict for context and response_schema for structured output
  • Includes SingleAgentInput model, manifest entry, server re-exports, and unit tests

Test plan

  • All existing tests pass (uv run pytest tests/ -x -q — 39 passed, 5 skipped)
  • New tests cover: basic submission, input_data conversion, response_schema handling, input validation
  • Manifest sync test passes (tool registered in both Python and manifest.json)
  • Pre-commit hooks pass (format, lint, typecheck)

🤖 Generated with Claude Code

Unlike everyrow_agent (which processes many CSV rows), this tool dispatches
a single agent to research one question, optionally with context data via
input_data dict and a structured response_schema.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Two tests: with input_data + response_schema, and a pure question with no context.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@RafaelPo
Copy link
Contributor Author

@claude code review

Comment on lines +146 to +148
- "Find the current CEO of Apple and their background"
- "Research the latest funding round for this company" (with input_data: {"company": "Stripe"})
- "What are the pricing tiers for this product?" (with input_data: {"product": "Snowflake"})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These aren't especially good examples. We'd mostly use single agent for expand operations, so most of the examples would be better as "give me a list of ..."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be fixed-forward.

Comment on lines 49 to +55
"name": "everyrow_agent",
"description": "Run web research agents on each row of a CSV file."
},
{
"name": "everyrow_single_agent",
"description": "Run a single web research agent on a task, optionally with context data."
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not for this PR, but I do think it's a bit off in our interface that we distinguish agent and single_agent, rather than single_agent being a special case of agent/agent-map. Might be something for us to consider later

The API returns a single object (TaskResultResponseDataType1) for
single_agent results instead of a list. Without this, everyrow_results
returned "Task result has no table data" for all single agent tasks.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Contributor

@rgambee rgambee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@RafaelPo RafaelPo merged commit cfe16ae into main Feb 20, 2026
8 checks passed
@RafaelPo RafaelPo deleted the feat/single-agent-tool branch February 20, 2026 16:03
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.

3 participants