Skip to main content
Glama
govconapi

io.github.govconapi/govconapi

Official

List Organizations

list_organizations
Read-onlyIdempotent

Resolve federal agency names or acronyms and list direct sub-units by parent ID for market research.

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

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

在注释已表明readOnlyHint=true、idempotentHint=true、destructiveHint=false的基础上,描述额外提供了关键行为信息:cgac代码空间与合同数据不共享、不存在共享标识符、cgac需单独查找不能直接链接;返回organization_id并说明后续如何继续遍历。这些信息远超注释,极大增强透明性。

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?

描述采用分点列表,清晰组织参数信息,关键用法放在开头,结构可扫描性强。虽然长度适中,但每项信息都有实际用途,没有冗余。唯一轻微不足是列表项较多,但整体紧凑。

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?

对于8个参数的列表工具,描述覆盖了核心查询模式、参数语义和后续操作方式,并说明了返回结果如何用于进一步调用。提供输出schema的存在减少了对返回格式的详细描述需求。缺少offset和is_active的说明,但整体功能完整,足以让代理正确调用。

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?

由于schema描述覆盖率为0%,描述承担了参数解释的主要责任。它解释了type、cgac、parent_id、hierarchy_level、search和limit的含义,特别是cgac的警告。但offset和is_active两个参数未在描述中提及,存在轻微遗漏,因此扣一分。

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?

描述明确说明工具用于搜索联邦机构组织树,并给出了具体范围(约907个部门/机构/办公室)。动词'Search'和资源'federal agency organization tree'清晰定义用途,且与兄弟工具如get_organization、lookup_agency等区分开来。

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?

描述明确说明了使用场景:通过'search'解析名称/缩写,或通过'parent_id'列出直接子单位,并指出它属于市场研究工具。还提到与get_organization的衔接方式。虽然没有明确列出'何时不使用',但已提供足够的上下文来指导选择。

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

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