Single tool with adequate naming and schema, but descriptions lack depth and parameter documentation is minimal. Tool name 'get_top_performing_shares' follows verb_noun convention. Input schema present with types and defaults, but parameter descriptions are generic (e.g., 'The market to fetch top performing shares for' does not specify format, constraints, or examples). Output schema not documented, LLMs cannot predict the structure of returned share objects. No error handling guidance; exceptions like ValueError are raised but not mapped to actionable recovery steps. Tool is READ_ONLY, which is correct, but no explicit annotation present in definition.
Fetch top performing shares for a market using Serper search results.
Output schema not documented. Tool returns list[dict[str, Any]] with fields rank, title, snippet, link, symbol, LLMs cannot predict structure or plan downstream operations.
Parameter descriptions lack actionable constraints. 'market' description does not specify format (e.g., 'country name', 'region code'), valid examples, or length limits. LLMs may pass invalid values like 'XYZ' or 'the whole world'.
No error handling guidance. ValueError exceptions (empty market, limit < 1) are raised but tool description does not explain what inputs are invalid or how to recover. LLMs receive raw exceptions with no actionable next steps.
No tool annotation for READ_ONLY status. Tool should declare readOnlyHint=true in schema to signal to agents that it is safe to call without side effects.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 45 | 2026-07-28+ | v2 |
API key (SERPER_API_KEY) is injected via environment variable, which is correct, but no documentation in tool description explains the prerequisite or what happens if the key is missing. LLMs may not understand why the tool fails on first call.