Query the ontology (search or graph)
query_ontologyRead-only, parameterized query over the Tensorust Ontology (no query language, nothing to inject). Search mode: filter objects by name (match contains | prefix | exact), type (Organization, ControlGroup, FCCLicense, Sanction, PAC, Rule), rule (objects a federal rule applies to: ROAD-1001, DFARS-FOCI, FCC-FAC, FCC-FAC-FLAG, CBAND-LUMP, ERATE-LATEINV, OFAC-SDN) with an optional rule status, min_sources (objects found in N+ public data sources) and min_links; sort by relevance, sources, links or name; returns total, a page of rows {oid, name, type, sources, links, status} and next_offset. Graph mode: from= lists that object's links with counts; add link (OWNS, HOLDS, RECEIVED, MEMBER_OF, SUBSIDIARY_OF, SUBJECT_TO, APPLIED, SERVES, BORROWS, LENDS_TO, SANCTIONED, LOBBIES_FOR, HAS_PAC, FILED) and direction (out | in) to page the linked objects. Pages are 10 rows by default, 25 max (100 with a Tensorust key). Errors say exactly which value to send. Call describe_schema first if unsure. Free.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "query_ontology"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Graph mode: an object id from a search row, e.g. 'org:LOCKHEED MARTIN', 'cg:632693'. | |
| link | No | Graph mode: which link to list. | |
| name | No | Text to match on object names; case and punctuation are ignored. e.g. 'blackstone', 'Lockheed Martin' | |
| rule | No | Only objects this federal rule applies to (call describe_schema for each rule's meaning and statuses). | |
| sort | No | Default relevance: exact name matches first, then by sources and links. | |
| type | No | Only objects of this type. | |
| limit | No | Rows per page, default 10; max 25 without a key, 100 with one. | |
| match | No | How name matches. Default contains. | |
| offset | No | Paging offset from next_offset. The free tier sees the first 100 matches (25 for a rule list, 10 linked objects). | |
| status | No | With rule: one of that rule's statuses, e.g. 'applies', 'listed', 'likely', 'action_by_2026-11-12'. | |
| direction | No | Graph mode: out = this object -> others (default); in = others -> this object (e.g. subsidiaries of a parent: link SUBSIDIARY_OF, direction in). | |
| min_links | No | Only objects with at least this many links. | |
| min_sources | No | Only objects present in at least this many public data sources (cross-source entities are the best-resolved). |