Skip to main content
Glama
govconapi

io.github.govconapi/govconapi

Official

List Organizations

list_organizations
Read-onlyIdempotent

Search and filter the federal agency organization tree to find departments, agencies, and offices by name, type, parent, or active status.

Instructions

Search the federal agency organization tree (~907 departments/agencies/offices).

Market Research tool. Use `search` to resolve a name/acronym to an org, or
`parent_id` to list an agency's direct sub-units. Free tier.

- type: DEPARTMENT or AGENCY
- cgac: Treasury account code (e.g. "097" for DoD), NOT the same code space as
  `awarding_agency_code` on contract/award tools; there is no shared identifier
  between federal_hierarchy and contract-level data, cgac requires a separate
  lookup, it does not chain directly
- parent_id: filter to direct children of one organization_id
- hierarchy_level: 1 = root department
- search: matches canonical name, short name, or any alternative name (min 2 chars)
- limit: max 1000

Returns each org's organization_id, pass that to get_organization for the full
record with parent/children/ancestors inline, or to list_organizations again as
parent_id to page through its children.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cgacNo
typeNo
limitNo
offsetNo
searchNo
is_activeNo
parent_idNo
hierarchy_levelNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations already mark this as read-only, idempotent, and non-destructive, and the description adds substantial behavioral detail beyond that: the ~907 node scope, the free tier, the cgac warning that it is 'NOT the same code space as awarding_agency_code', the direct-children-only behavior of parent_id, and the search minimum length of 2 chars. This materially improves an agent's ability to use the tool correctly.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear opening sentence and bulleted parameter explanations. It is longer than minimal but nearly every line adds useful context, such as the code-space warning and the limit cap. Minor redundancy exists between the opening usage sentence and the search bullet, preventing a perfect score.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter tool with no schema descriptions, the description covers the core workflow, pagination via parent_id, and important integration caveats. The output schema exists, so return value documentation is not required. The main gaps are the undocumented is_active and offset parameters, which leave a small but real completeness hole.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With schema description coverage at 0%, the description carries the burden and explains six of eight parameters: type, cgac, parent_id, hierarchy_level, search, and limit. The cgac explanation is especially valuable. However, is_active and offset receive no explanatory text, so the coverage is strong but not complete.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Search the federal agency organization tree (~907 departments/agencies/offices).' It clearly distinguishes this from related siblings such as get_organization and lookup_agency by framing it as the search/list entry point over the hierarchy tree.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear usage context: 'Market Research tool. Use search to resolve a name/acronym to an org, or parent_id to list an agency's direct sub-units.' It also explains how to chain results to get_organization or page through children. It does not explicitly enumerate when not to use this tool versus siblings like lookup_agency or discover_offices, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/govconapi/govconapi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server