美國聯邦法典 (US Code) 條文查詢
us_get_usc_section
台灣專屬MIT
**關鍵字 / Keywords**: 美國法典 聯邦法典 USC 法條 章節 標題 us code title section statute govinfo copyright IRS tax health chapter
Scope: US Code (federal statutes) via GovInfo USCODE collection.
Look up one section of a US Code title (e.g. 17 USC §105 =
title 17 [Copyright], section 105 [Copyright of US Government
works — the public-domain rule invoked in every response's
`license` field on this server).
Endpoint:
POST https://api.govinfo.gov/search
(query: collection:USCODE AND "Sec. {section}")
Args:
title: USC title number, e.g. 17 (Copyright), 26 (IRS),
42 (Public Health), 5 (Government Organization).
section: section number as string (`"105"`, `"1983"`, `"1a"`).
year: USC edition year. Defaults to most recent (2024). USC
is published annually ~December.
Returns dict with `heading` (section title from GovInfo MODS),
`package_id` (USCODE-{year}-title{N}), `granule_id`
(USCODE-{year}-title{N}-chap{M}-sec{X}), `date_issued`,
download URLs (`download_txt_url` for HTML text,
`download_pdf_url`, `download_mods_url` for XML metadata),
plus `other_matches[]` if the section appears in multiple
chapters. `original_url` links to www.govinfo.gov/app/details/.
License: US Public Domain. Requires `US_GOVINFO_API_KEY`.輸入 schema
{
"properties": {
"title": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"title": "Title"
},
"section": {
"title": "Section",
"type": "string"
},
"year": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Year"
}
},
"required": [
"title",
"section"
],
"title": "us_get_usc_sectionArguments",
"type": "object"
}呼叫方式
配置好 Twinkle Hub 的 MCP client 後,agent 會看到 us_get_usc_section。直接讓它呼叫即可,例如:
# Ask Claude / any MCP client: 請用 us_get_usc_section 處理 "…"。 # It will call: us_get_usc_section(input="…")
尚未設定 Client?
Claude Desktop 約 3 分鐘即可完成設定 — 下載 .mcpb 檔案並雙擊即可,或參閱文件中的各 Client 安裝步驟。
查看使用者設定文件