Get Org Relationships
get_org_relationshipsRetrieve an organization's immediate sub-agencies or its ancestor chain to navigate federal procurement hierarchies without loading full records.
Instructions
Get JUST an organization's immediate children or its ancestor chain, without the rest of the record (get_organization already includes both if you need everything).
Market Research tool, narrow form: e.g. "list every sub-agency under DoD" doesn't
need DoD's own full record, just its children.
- organization_id: from list_organizations or get_organization
- direction: "children" (immediate sub-organizations) | "ancestors" (root department
down to immediate parent; empty if this org is already a root department)
Free tier. 404 (ancestors direction only) if organization_id doesn't exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | No | children | |
| organization_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |