A comprehensive research agent powered by Gemini models that performs web research using Google Search API and provides detailed, cited responses.
Single tool with reasonable naming and structure, but significant gaps in parameter descriptions and output schema documentation. The tool name 'collect_research' starts with a verb (good), but parameter descriptions lack specific constraints, ranges, and format details required by the rubric. Output is documented only via examples in the docstring, not as a formal schema. Error handling exists but is generic. No enum constraints for parameters despite clear valid ranges. The implementation is competent but falls short of production-grade definition quality.
Collect comprehensive research data on any topic using Gemini AI and web search. Performs intelligent web research with multiple search strategies, iterative refinement, and source verification. Returns structured data for synthesis.
Parameter descriptions lack constraint documentation. 'initial_queries' and 'max_loops' have no specified ranges, defaults, or validation guidance. Rubric requires 'Specify minimum and maximum for numeric parameters' and 'When a parameter has a regex pattern, length limit, or character restriction, state it in the description.'
Output schema is completely undocumented. Tool returns a string (from final message or summary), but the rubric requires 'Document the output schema. LLMs need to know what fields to expect.' The actual structure (whether it contains citations, source URLs, JSON, markdown, etc.) is unclear from formal schema definition.
Missing error classification guidance. Error handling catches exceptions and returns an error message, but does not categorize errors as retryable vs fatal, nor provide next-step recovery guidance as required by pattern:recovery-guide. 'Research failed: {error}' offers no actionable path forward.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 10 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 41 | - | v1 |
Parameters default to None rather than sensible values. While the docstring mentions defaults (3 initial_queries, 2 max_loops), the function signature uses None defaults, requiring the LLM to infer behavior. Rubric states 'Reduce required parameters by providing smart defaults', explicit defaults in the schema would be clearer.
No input validation schema constraints. Enum, minLength, maxLength, minimum, maximum not present in the input schema. The 'question' parameter accepts any string, including empty (caught at runtime). Rubric requires constraints to be machine-parseable.