IBM Granite Analyze ($0.04)
ibm_granite_analyzeAnalyzes documents and returns structured JSON extracting entities, sentiment, risk signals, summaries, and next steps for contract, financial, or technical review.
Instructions
Structured document analysis powered by IBM Granite: extract entities, sentiment, risk signals, a concise summary, and recommended next steps from any text (contracts, reports, emails, code reviews, etc.). Returns a machine-readable JSON analysis. Use this when you need machine-readable fields (entities, sentiment, risks) from a document rather than the free-text reply ibm_granite_chat gives. No IBM Cloud account required — pay $0.04 USDC per call via x402.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document": "<document>"
},
"name": "ibm_granite_analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | The document, report, email, or text to analyze. | |
| language | No | Document language hint (e.g. "Spanish", "French"). Defaults to auto-detect. | |
| analysis_type | No | Analysis focus: general (universal), contract (legal terms, obligations), financial (metrics, risks, forecasts), technical (architecture, issues), medical (clinical entities, findings), or sentiment (tone, emotions). | general |