Tool Implementation: Legal Database Query

implementationChallengeOctober 29, 2025

Prompt Content

Generate Python code for a `LegalDatabaseQueryTool` that an agent can use. This tool should accept a natural language query (e.g., 'recent cases on data privacy in California') and return a list of relevant legal document summaries or case snippets. Assume an underlying API or a simplified local search index.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations