Run Safe Analytics Query
run_safe_analyticsRuns a constrained analytics query over owners, law firms and correspondents (rankings, counts, snapshots and timelines) and returns the results without exposing database details. Suited to custom aggregate business questions that a single search or summary tool does not answer.
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": {
"analysis_type": "<analysis_type>",
"entity": "<entity>"
},
"name": "run_safe_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of ranked rows, preview marks, or timeline events to return. | |
| entity | Yes | What to analyze. Ranking currently supports owners. Count, snapshot, and timeline also support firms and correspondents. | |
| metric | No | Required for count. Ranking currently supports filings only. | |
| filters | No | ||
| subject_name | No | Required for count, snapshot, and timeline. Examples: "Ideaya Biosciences", "Goodwin Procter", or "Todd Schneider". | |
| analysis_type | Yes | Business analytics mode: ranking, count, snapshot, or timeline. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| entity | Yes | ||
| metric | Yes | ||
| summary | Yes | ||
| rankings | Yes | ||
| returned | Yes | ||
| resolution | Yes | ||
| count_result | Yes | ||
| subject_name | Yes | ||
| analysis_type | Yes | ||
| filters_applied | Yes | ||
| snapshot_result | Yes | ||
| timeline_result | Yes | ||
| resolved_subject | Yes | ||
| open_in_gleanmark | Yes | ||
| total_matching_marks | No | ||
| total_matching_entities | No | ||
| total_matching_live_marks | No |