extension
Legal Document Analyzer
legalterminal — aerostack cli
$
npx aerostack add aerostack/legal-document-analyzersmart_toy
Use with AI Assistants
MCPConnect Claude, Cursor, or any MCP-compatible client — then call this function by slug
① Add MCP Server
Add this once — access all Aerostack functions from your AI tool.
claude_desktop_config.json
{
"mcpServers": {
"aerostack": {
"url": "https://mcp.aerostack.dev",
"type": "http"
}
}
}② Call this function
Ask your AI to use the call_function tool with this slug:
call_function
call_function({
slug: "legal-document-analyzer",
args: {}
})Legal Document Analyzer
Upload contracts and analyze them with AI. Scope questions to specific documents and extract named clause types.
Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /ingest | Upload contract text or URL |
| POST | /analyze | Ask a question (optional document_id to scope) |
| POST | /extract | Extract named clause types in parallel |
| GET | /docs | List uploaded contracts |
| DELETE | /docs/:docId | Remove a contract |
| GET | /health | Status check |
All responses include a legal disclaimer. This does not constitute legal advice.
Metadata
upgradeVersion1.0.0
gavelLicenseMIT
languageLanguagejavascript
cloudProvidercloudflare-worker
deployed_code
Build and publish your own functions
Write a TypeScript function, deploy it to the edge, and share it with thousands of developers — in minutes.