Search library elements
search-library-elementsFind taxonomy elements by a phrase or a qname: reporting concepts (rs-gaap and the other standards) and this graph's own accounts, matched against qname, name and label.
WHEN TO USE:
Turning a qname (
rs-gaap:ProceedsFromIssuanceOfLongTermDebt) or a phrase ("deferred revenue") into an element id for a mapping, a flow or a scheduleChecking which reporting concept an idea is called before mapping to it
PARAMETERS:
query (required): one or more words; each must appear in the qname, name or label text
source (optional): one standard only, e.g.
rs-gaapwhole_library (optional, default false): search every concept the reporting library has, not only the ones this graph already holds. Use it to name a line of a report being received with
ingest-report; a mapping or a schedule needs a concept this graph holdsbrief (optional, default false): return one short row per concept (
id,qname,label,balance_type,period_type,trait,is_abstract) without documentation and references. Use it when choosing among many candidateslimit (optional, default 50, 1 to 500)
RETURNS:
elements, closest name first (the exact name, then names that start with the query, then names that contain it, shorter names first): each with id, qname, namespace, name, trait, balance_type, period_type, is_abstract, is_monetary, element_type, source, taxonomy_id, parent_id, labels and references; with brief, the short row.
RELATED TOOLS:
suggest-mapping — ranked concepts for one account
list-element-arcs — what an element maps to
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": {
"query": "<query>"
},
"name": "search-library-elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brief | No | One short row per concept, without documentation and references. | |
| limit | No | ||
| query | Yes | Substring of the qname, name or label text. | |
| source | No | One standard, e.g. rs-gaap. | |
| whole_library | No | Search the whole reporting library rather than this graph's own working set. |