pg.ddx.io: the PostgreSQL community's memory is an MCP server published by io.ddx.pg, hosted at pg.ddx.io. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 130 tools, including retrieve_context, animal_history, animal_owner_contributions, blame_symbol, browse_by_date.
Every PostgreSQL mailing list since 1991, linked to the commits, code, commitfest and docs.
2 connections through 4 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
START HERE for a PostgreSQL question. Hybrid search of every list (inbox narrows it) returned as cited passages within token_budget: one per thread, the author's own words (~1200 chars) with url, inbox, message_id, from, date. found=false with a reason when the archive does not discuss it. Write the answer yourself; cite each passage url. author/since/until: one person in a date window. Takes search operators; complete=false when out of budget_ms. A commit SHA returns the mail referring to it. For "why was X added/changed/reverted" it may add commit_context: the commit the question resolved to (resolved_by, matched), its message, states_reason (a rule's guess) and up to 4 sentences from its Discussion: threads; check it is the right commit. What a person said or objected to: said.
| Parameter | Type | Description |
|---|---|---|
| inbox | string | all (default), a list, or several comma-separated |
| query * | string | |
| since | string | On or after: YYYY[-MM[-DD]], ISO, or 2w/6m/1y ago |
| until | string | Before (exclusive), same forms as since |
| author | string | Name, address or hash:<8 hex> |
| budget_ms | number | ms, 100-15000, default 4500 |
| token_budget | number | Default 4000, max 32000 |
{
"name": "retrieve_context",
"title": "Retrieve Context",
"description": "START HERE for a PostgreSQL question. Hybrid search of every list (inbox narrows it) returned as cited passages within token_budget: one per thread, the author's own words (~1200 chars) with url, inbox, message_id, from, date. found=false with a reason when the archive does not discuss it. Write the answer yourself; cite each passage url. author/since/until: one person in a date window. Takes search operators; complete=false when out of budget_ms. A commit SHA returns the mail referring to it. For \"why was X added/changed/reverted\" it may add commit_context: the commit the question resolved to (resolved_by, matched), its message, states_reason (a rule's guess) and up to 4 sentences from its Discussion: threads; check it is the right commit. What a person said or objected to: said.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"inbox": {
"type": "string",
"description": "all (default), a list, or several comma-separated"
},
"query": {
"type": "string"
},
"since": {
"type": "string",
"description": "On or after: YYYY[-MM[-DD]], ISO, or 2w/6m/1y ago"
},
"until": {
"type": "string",
"description": "Before (exclusive), same forms as since"
},
"author": {
"type": "string",
"description": "Name, address or hash:<8 hex>"
},
"budget_ms": {
"type": "number",
"description": "ms, 100-15000, default 4500"
},
"token_budget": {
"type": "number",
"description": "Default 4000, max 32000"
}
}
},
"outputSchema": {
"type": "object",
"required": [
"question",
"found",
"token_budget",
"tokens_used",
"passages"
],
"properties": {
"found": {
"type": "boolean"
},
"inbox": {},
"filter": {
"type": [
"object",
"null"
],
"properties": {
"since": {
"type": [
"string",
"null"
]
},
"until": {
"type": [
"string",
"null"
]
},
"author": {
"type": [
"array",
"null"
]
}
},
"description": "The author / date filter applied (names and page hashes, never addresses)."
},
"reason": {
"type": [
"string",
"null"
]
},
"skipped": {
"type": "string",
"description": "Why the query's operators leave this source out (no results then)."
},
"complete": {
"type": "boolean",
"description": "false when the search ran out of budget_ms or a total is a lower bound."
},
"passages": {
"type": "array",
"items": {
"type": "object",
"required": [
"url",
"text"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string"
},
"date": {
"type": [
"string",
"null"
]
},
"from": {
"type": "string"
},
"text": {
"type": "string"
},
"inbox": {
"type": [
"string",
"null"
]
},
"source": {
"enum": [
"commit",
"commit_thread"
],
"type": "string",
"description": "Absent for a mail passage. commit: a commit message (sha, no message_id); commit_thread: a sentence of that commit's discussion."
},
"release": {
"type": [
"string",
"null"
]
},
"subject": {
"type": "string"
},
"thread_id": {
"type": [
"integer",
"null"
]
},
"message_id": {
"type": "string"
},
"similarity": {
"type": [
"number",
"null"
]
},
"thread_url": {
"type": "string"
}
}
}
},
"question": {
"type": "string"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
},
"description": "Operators the query could not use and left out, and the query-length cut."
},
"operators": {
"type": "array",
"items": {
"type": "object",
"required": [
"op",
"value",
"negated"
],
"properties": {
"op": {
"type": "string"
},
"field": {
"type": "string"
},
"value": {
"type": "string"
},
"negated": {
"type": "boolean"
}
}
},
"description": "The search operators and regexes the query applied (absent when it has none)."
},
"how_to_cite": {
"type": "string"
},
"tokens_used": {
"type": "integer"
},
"token_budget": {
"type": "integer"
},
"commit_context": {
"type": "object",
"required": [
"sha",
"resolved_by",
"matched",
"states_reason",
"message",
"sentences"
],
"properties": {
"sha": {
"type": "string"
},
"date": {
"type": [
"string",
"null"
]
},
"author": {
"type": [
"string",
"null"
]
},
"matched": {
"type": "string",
"description": "The question's token(s) the commit was resolved by."
},
"message": {
"type": "string",
"description": "The commit message body, subject and trailers removed; cut with a marker past ~500 tokens."
},
"release": {
"type": [
"string",
"null"
]
},
"subject": {
"type": [
"string",
"null"
]
},
"sentences": {
"type": "array",
"items": {
"type": "object",
"required": [
"text",
"message_id"
],
"properties": {
"date": {
"type": [
"string",
"null"
]
},
"from": {
"type": [
"string",
"null"
]
},
"text": {
"type": "string"
},
"inbox": {
"type": "string"
},
"message_id": {
"type": "string"
}
}
}
},
"resolved_by": {
"enum": [
"sha",
"identifier_first_introduction",
"subject_match",
"revert_subject"
],
"type": "string"
},
"states_reason": {
"type": "boolean",
"description": "A rule's guess: the message gives a reason relevant to the question."
}
},
"description": "Only for a why-shaped question that resolved to a commit: that commit and sentences of its discussion, beside the passages (never in them), at most ~800 tokens."
},
"threads_considered": {
"type": "integer"
},
"threads_omitted_for_budget": {
"type": "integer"
}
}
},
"annotations": {
"readOnlyHint": true
}
}One animal's runs, newest first; branch and since filter.
| Parameter | Type | Description |
|---|---|---|
| name * | string | Animal name |
| limit | number | 1-1000, default 100 |
| since | string | Runs started at or after (RFC 3339) |
| branch | string | One branch, e.g. master |
{
"name": "animal_history",
"title": "Animal History",
"description": "One animal's runs, newest first; branch and since filter.",
"inputSchema": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Animal name"
},
"limit": {
"type": "number",
"description": "1-1000, default 100"
},
"since": {
"type": "string",
"description": "Runs started at or after (RFC 3339)"
},
"branch": {
"type": "string",
"description": "One branch, e.g. master"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Animals one owner runs (owner_name or owner_email; at least one): the branches each tracks, last status, first_seen_at and days since.
| Parameter | Type | Description |
|---|---|---|
| owner_name | string | Exact |
| owner_email | string | Exact |
{
"name": "animal_owner_contributions",
"title": "Animal Owner Contributions",
"description": "Animals one owner runs (owner_name or owner_email; at least one): the branches each tracks, last status, first_seen_at and days since.",
"inputSchema": {
"type": "object",
"properties": {
"owner_name": {
"type": "string",
"description": "Exact"
},
"owner_email": {
"type": "string",
"description": "Exact"
}
}
},
"annotations": {
"readOnlyHint": true
}
}The commits that changed a symbol's lines in its file.
| Parameter | Type | Description |
|---|---|---|
| repository | string | |
| qualified_name * | string | From search_symbols |
{
"name": "blame_symbol",
"title": "Blame Symbol",
"description": "The commits that changed a symbol's lines in its file.",
"inputSchema": {
"type": "object",
"required": [
"qualified_name"
],
"properties": {
"repository": {
"type": "string"
},
"qualified_name": {
"type": "string",
"description": "From search_symbols"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Threads active in a date range [since, until) on one list.
| Parameter | Type | Description |
|---|---|---|
| inbox | string | Default pgsql-hackers |
| limit | number | Threads, 1-200, default 50 |
| since * | string | Start date (YYYY-MM-DD or YYYYMMDD) |
| until * | string | End date, exclusive (same forms) |
{
"name": "browse_by_date",
"title": "Browse by Date",
"description": "Threads active in a date range [since, until) on one list.",
"inputSchema": {
"type": "object",
"required": [
"since",
"until"
],
"properties": {
"inbox": {
"type": "string",
"description": "Default pgsql-hackers"
},
"limit": {
"type": "number",
"description": "Threads, 1-200, default 50"
},
"since": {
"type": "string",
"description": "Start date (YYYY-MM-DD or YYYYMMDD)"
},
"until": {
"type": "string",
"description": "End date, exclusive (same forms)"
}
}
},
"annotations": {
"readOnlyHint": true
}
}cfbot data age: last_build_at (newest build finish), seen_at (newest result our sync saw), build_count. Old seen_at: our scraper stalled; old last_build_at, recent seen_at: cfbot idle.
No parameters.
{
"name": "build_status_freshness",
"title": "Build Status Freshness",
"description": "cfbot data age: last_build_at (newest build finish), seen_at (newest result our sync saw), build_count. Old seen_at: our scraper stalled; old last_build_at, recent seen_at: cfbot idle.",
"inputSchema": {
"type": "object",
"properties": {}
},
"annotations": {
"readOnlyHint": true
}
}Buildfarm health: animal count, recent runs, failing animals, top owners, OS / branch breakdown, freshness.
No parameters.
{
"name": "buildfarm_overview",
"title": "Buildfarm Overview",
"description": "Buildfarm health: animal count, recent runs, failing animals, top owners, OS / branch breakdown, freshness.",
"inputSchema": {
"type": "object",
"properties": {}
},
"annotations": {
"readOnlyHint": true
}
}Was a pull request merged upstream: the patch series' latest head commit and any merge information.
| Parameter | Type | Description |
|---|---|---|
| pr_url * | string | Forge pull request URL |
{
"name": "check_upstream_status",
"title": "Check Upstream Status",
"description": "Was a pull request merged upstream: the patch series' latest head commit and any merge information.",
"inputSchema": {
"type": "object",
"required": [
"pr_url"
],
"properties": {
"pr_url": {
"type": "string",
"description": "Forge pull request URL"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Code index statistics: files, symbols by kind and language, edges, communities.
| Parameter | Type | Description |
|---|---|---|
| repository | string |
{
"name": "code_index_status",
"title": "Code Index Status",
"description": "Code index statistics: files, symbols by kind and language, edges, communities.",
"inputSchema": {
"type": "object",
"properties": {
"repository": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}File and symbol counts per directory.
| Parameter | Type | Description |
|---|---|---|
| depth | number | Directory depth (default 2) |
| repository | string |
{
"name": "codebase_map",
"title": "Codebase Map",
"description": "File and symbol counts per directory.",
"inputSchema": {
"type": "object",
"properties": {
"depth": {
"type": "number",
"description": "Directory depth (default 2)"
},
"repository": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Buildfarm results for one postgres commit: per animal branch, status, failing stage, log url; rollup counts.
| Parameter | Type | Description |
|---|---|---|
| commit * | string |
{
"name": "commit_buildfarm_status",
"title": "Commit Buildfarm Status",
"description": "Buildfarm results for one postgres commit: per animal branch, status, failing stage, log url; rollup counts.",
"inputSchema": {
"type": "object",
"required": [
"commit"
],
"properties": {
"commit": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Everything linked to one commit: subject, author, date, sha, message, the Discussion: thread (participants as people and organizations), commitfest entry, Discord mentions; for postgres also first_releases (per branch: sha, release or null, first_version, shipped), reverted_by and reverts. No diff (git_diff, git_show_file).
| Parameter | Type | Description |
|---|---|---|
| commit * | string |
{
"name": "commit_history",
"title": "Commit History",
"description": "Everything linked to one commit: subject, author, date, sha, message, the Discussion: thread (participants as people and organizations), commitfest entry, Discord mentions; for postgres also first_releases (per branch: sha, release or null, first_version, shipped), reverted_by and reverts. No diff (git_diff, git_show_file).",
"inputSchema": {
"type": "object",
"required": [
"commit"
],
"properties": {
"commit": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}All commitfests: entries by status, top authors, and totals of people, commitfests and entries.
No parameters.
{
"name": "commitfest_stats",
"title": "Commitfest Stats",
"description": "All commitfests: entries by status, top authors, and totals of people, commitfests and entries.",
"inputSchema": {
"type": "object",
"properties": {}
},
"annotations": {
"readOnlyHint": true
}
}Per release: people, distinct commits, count of commits per role (canonical authoritative repos only), revert commits.
| Parameter | Type | Description |
|---|---|---|
| release | string | e.g. PG17, 17, pre-9.6; empty = all |
{
"name": "contribution_summary",
"title": "Contribution Summary",
"description": "Per release: people, distinct commits, count of commits per role (canonical authoritative repos only), revert commits.",
"inputSchema": {
"type": "object",
"properties": {
"release": {
"type": "string",
"description": "e.g. PG17, 17, pre-9.6; empty = all"
}
}
},
"annotations": {
"readOnlyHint": true
}
}The symbols that changed between two commits (file content hashes).
| Parameter | Type | Description |
|---|---|---|
| to_commit | string | Target commit (default HEAD) |
| repository | string | |
| from_commit * | string | Base commit. Any commit form |
{
"name": "detect_changes",
"title": "Detect Changes",
"description": "The symbols that changed between two commits (file content hashes).",
"inputSchema": {
"type": "object",
"required": [
"from_commit"
],
"properties": {
"to_commit": {
"type": "string",
"description": "Target commit (default HEAD)"
},
"repository": {
"type": "string"
},
"from_commit": {
"type": "string",
"description": "Base commit. Any commit form"
}
}
},
"annotations": {
"readOnlyHint": true
}
}A commit's Discussion / Closes / Fixes / Backpatch-through trailers: raw text and URL. For the mail itself: git_search mail_refs.
| Parameter | Type | Description |
|---|---|---|
| commit * | string |
{
"name": "discussion_links",
"title": "Discussion Links",
"description": "A commit's Discussion / Closes / Fixes / Backpatch-through trailers: raw text and URL. For the mail itself: git_search mail_refs.",
"inputSchema": {
"type": "object",
"required": [
"commit"
],
"properties": {
"commit": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Embedding coverage of a list: messages embedded, model, last run.
| Parameter | Type | Description |
|---|---|---|
| inbox | string | Default pgsql-hackers |
{
"name": "embedding_status",
"title": "Embedding Status",
"description": "Embedding coverage of a list: messages embedded, model, last run.",
"inputSchema": {
"type": "object",
"properties": {
"inbox": {
"type": "string",
"description": "Default pgsql-hackers"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Repository branches tracked for a commitfest entry: repo, branch_name, is_authoritative.
| Parameter | Type | Description |
|---|---|---|
| cf_id * | number | Entry id |
{
"name": "entry_branches",
"title": "Entry Branches",
"description": "Repository branches tracked for a commitfest entry: repo, branch_name, is_authoritative.",
"inputSchema": {
"type": "object",
"required": [
"cf_id"
],
"properties": {
"cf_id": {
"type": "number",
"description": "Entry id"
}
}
},
"annotations": {
"readOnlyHint": true
}
}An entry's status across commitfests, matched by shared thread Message-ID (precise), else by title prefix (weak).
| Parameter | Type | Description |
|---|---|---|
| cf_id * | number | Entry id |
{
"name": "entry_history",
"title": "Entry History",
"description": "An entry's status across commitfests, matched by shared thread Message-ID (precise), else by title prefix (weak).",
"inputSchema": {
"type": "object",
"required": [
"cf_id"
],
"properties": {
"cf_id": {
"type": "number",
"description": "Entry id"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Animals that failed on a branch between two commits, by run time (the buildfarm has no commit order).
| Parameter | Type | Description |
|---|---|---|
| branch * | string | Branch, e.g. master |
| to_commit * | string | Window end |
| from_commit * | string | Window start |
{
"name": "find_breaks",
"title": "Find Breaks",
"description": "Animals that failed on a branch between two commits, by run time (the buildfarm has no commit order).",
"inputSchema": {
"type": "object",
"required": [
"branch",
"from_commit",
"to_commit"
],
"properties": {
"branch": {
"type": "string",
"description": "Branch, e.g. master"
},
"to_commit": {
"type": "string",
"description": "Window end"
},
"from_commit": {
"type": "string",
"description": "Window start"
}
}
},
"annotations": {
"readOnlyHint": true
}
}One person's contribution rows: commit SHAs and animals, each with role and release. By email, else name.
| Parameter | Type | Description |
|---|---|---|
| name | string | Name substring (when no email) |
| role | string | One role |
| string | Canonical email | |
| limit | number | 1-500, default 50 |
| release | string | e.g. PG17, 17, REL_17_STABLE, pre-9.6 |
{
"name": "find_contributions",
"title": "Find Contributions",
"description": "One person's contribution rows: commit SHAs and animals, each with role and release. By email, else name.",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name substring (when no email)"
},
"role": {
"type": "string",
"description": "One role"
},
"email": {
"type": "string",
"description": "Canonical email"
},
"limit": {
"type": "number",
"description": "1-500, default 50"
},
"release": {
"type": "string",
"description": "e.g. PG17, 17, REL_17_STABLE, pre-9.6"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Functions and methods nothing calls (no incoming call edges).
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-200, default 50 |
| repository | string |
{
"name": "find_dead_code",
"title": "Find Dead Code",
"description": "Functions and methods nothing calls (no incoming call edges).",
"inputSchema": {
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "1-200, default 50"
},
"repository": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Commitfest entries a person authored: email (exact) or name (substring, case-sensitive).
| Parameter | Type | Description |
|---|---|---|
| name | string | Name substring (case-sensitive) |
| string | Exact email | |
| limit | number | 1-500, default 100 |
{
"name": "find_entries_for_author",
"title": "Find Entries for Author",
"description": "Commitfest entries a person authored: email (exact) or name (substring, case-sensitive).",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name substring (case-sensitive)"
},
"email": {
"type": "string",
"description": "Exact email"
},
"limit": {
"type": "number",
"description": "1-500, default 100"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Commitfest entries whose page links any message of the thread.
| Parameter | Type | Description |
|---|---|---|
| message_id * | string |
{
"name": "find_entries_for_thread",
"title": "Find Entries for Thread",
"description": "Commitfest entries whose page links any message of the thread.",
"inputSchema": {
"type": "object",
"required": [
"message_id"
],
"properties": {
"message_id": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}An animal's recent failed runs, and commitfest entries failing in cfbot on branches it tracks (correlated by branch and time, not joined).
| Parameter | Type | Description |
|---|---|---|
| name * | string | Animal, e.g. fairywren |
| limit | number | 1-200, default 50 |
{
"name": "find_entries_with_failures_on",
"title": "Find Entries With Failures on",
"description": "An animal's recent failed runs, and commitfest entries failing in cfbot on branches it tracks (correlated by branch and time, not joined).",
"inputSchema": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Animal, e.g. fairywren"
},
"limit": {
"type": "number",
"description": "1-200, default 50"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Entries whose latest cfbot build fails on a platform: cf_id, title, entry_status, needs_rebase (newest version does not apply), commitfest_number.
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-500, default 100 |
| status | string | e.g. needs-review (default every active) |
| platform | string | linux, macos, windows, freebsd, netbsd, openbsd |
{
"name": "find_failing_patches",
"title": "Find Failing Patches",
"description": "Entries whose latest cfbot build fails on a platform: cf_id, title, entry_status, needs_rebase (newest version does not apply), commitfest_number.",
"inputSchema": {
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "1-500, default 100"
},
"status": {
"type": "string",
"description": "e.g. needs-review (default every active)"
},
"platform": {
"type": "string",
"description": "linux, macos, windows, freebsd, netbsd, openbsd"
}
}
},
"annotations": {
"readOnlyHint": true
}
}The newest failing buildfarm runs fleet-wide: what is broken now.
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-1000, default 100 |
| since | string | Runs started at or after (RFC 3339; default 24h ago) |
| branch | string | One branch, e.g. master |
{
"name": "find_failing_runs",
"title": "Find Failing Runs",
"description": "The newest failing buildfarm runs fleet-wide: what is broken now.",
"inputSchema": {
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "1-1000, default 100"
},
"since": {
"type": "string",
"description": "Runs started at or after (RFC 3339; default 24h ago)"
},
"branch": {
"type": "string",
"description": "One branch, e.g. master"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Entries green on every platform that apply to master, not updated for min_days: why isn't it committed?
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-500, default 100 |
| min_days | number | Days since last update (default 14) |
{
"name": "find_passing_long_pending",
"title": "Find Passing Long Pending",
"description": "Entries green on every platform that apply to master, not updated for min_days: why isn't it committed?",
"inputSchema": {
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "1-500, default 100"
},
"min_days": {
"type": "number",
"description": "Days since last update (default 14)"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Entries passing on one platform and failing on another (e.g. linux vs macos: a portability bug).
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-500, default 100 |
| failing_on | string | Platform it fails on, e.g. macos |
| passing_on | string | Platform it passes on, e.g. linux |
{
"name": "find_patches_by_platform_status",
"title": "Find Patches by Platform Status",
"description": "Entries passing on one platform and failing on another (e.g. linux vs macos: a portability bug).",
"inputSchema": {
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "1-500, default 100"
},
"failing_on": {
"type": "string",
"description": "Platform it fails on, e.g. macos"
},
"passing_on": {
"type": "string",
"description": "Platform it passes on, e.g. linux"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Regex search of code symbol bodies (trigram-indexed).
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-100, default 50 |
| query * | string | Regular expression |
| repository | string |
{
"name": "find_pattern",
"title": "Find Pattern",
"description": "Regex search of code symbol bodies (trigram-indexed).",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "number",
"description": "1-100, default 50"
},
"query": {
"type": "string",
"description": "Regular expression"
},
"repository": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Entries cfbot says no longer apply to master: they need a rebase.
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-500, default 100 |
{
"name": "find_rebase_needed_patches",
"title": "Find Rebase Needed Patches",
"description": "Entries cfbot says no longer apply to master: they need a rebase.",
"inputSchema": {
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "1-500, default 100"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Mail related to a commit, topic or PR. A postgres SHA: the mail referring to it (how_it_refers). Else a substring of subjects and Message-IDs, falling back to semantic search.
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-50, default 20 |
| query * | string | Subject words, Message-ID substring or commit SHA |
{
"name": "find_related_discussions",
"title": "Find Related Discussions",
"description": "Mail related to a commit, topic or PR. A postgres SHA: the mail referring to it (how_it_refers). Else a substring of subjects and Message-IDs, falling back to semantic search.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "number",
"description": "1-50, default 20"
},
"query": {
"type": "string",
"description": "Subject words, Message-ID substring or commit SHA"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Messages near one message by embedding: related or duplicate threads.
| Parameter | Type | Description |
|---|---|---|
| inbox | string | |
| limit | number | 1-50, default 10 |
| message_id * | string |
{
"name": "find_similar_messages",
"title": "Find Similar Messages",
"description": "Messages near one message by embedding: related or duplicate threads.",
"inputSchema": {
"type": "object",
"required": [
"message_id"
],
"properties": {
"inbox": {
"type": "string"
},
"limit": {
"type": "number",
"description": "1-50, default 10"
},
"message_id": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}One animal: hardware, OS, compiler, owner, branches, last status, its last 20 runs.
| Parameter | Type | Description |
|---|---|---|
| name * | string | Animal, e.g. fairywren |
{
"name": "get_animal",
"title": "Get Animal",
"description": "One animal: hardware, OS, compiler, owner, branches, last status, its last 20 runs.",
"inputSchema": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Animal, e.g. fairywren"
}
}
},
"annotations": {
"readOnlyHint": true
}
}One attachment, whole, by 1-based index or filename substring. Text as text (a .patch applies with git apply), binary as base64; size = decoded bytes; url. Large text: start_line/end_line, 2000 lines a call (total_lines, cut).
| Parameter | Type | Description |
|---|---|---|
| inbox | string | |
| index | number | 1-based index (from get_message attachments) |
| end_line | number | Text: last line, at most start_line + 1999 |
| filename | string | Filename substring |
| message_id * | string | |
| start_line | number | Text: first line (1-based) |
{
"name": "get_attachment",
"title": "Get Attachment",
"description": "One attachment, whole, by 1-based index or filename substring. Text as text (a .patch applies with git apply), binary as base64; size = decoded bytes; url. Large text: start_line/end_line, 2000 lines a call (total_lines, cut).",
"inputSchema": {
"type": "object",
"required": [
"message_id"
],
"properties": {
"inbox": {
"type": "string"
},
"index": {
"type": "number",
"description": "1-based index (from get_message attachments)"
},
"end_line": {
"type": "number",
"description": "Text: last line, at most start_line + 1999"
},
"filename": {
"type": "string",
"description": "Filename substring"
},
"message_id": {
"type": "string"
},
"start_line": {
"type": "number",
"description": "Text: first line (1-based)"
}
}
},
"annotations": {
"readOnlyHint": true
}
}One list's messages from a sender (name or address, as search's f:), newest first; since/until bound them.
| Parameter | Type | Description |
|---|---|---|
| inbox | string | Default pgsql-hackers |
| limit | number | 1-200, default 50 |
| since | string | On or after: YYYY[-MM[-DD]] or 2w/6m/1y ago |
| until | string | Before (exclusive), same forms |
| author * | string | Name or address |
| offset | number |
{
"name": "get_author_messages",
"title": "Get Author Messages",
"description": "One list's messages from a sender (name or address, as search's f:), newest first; since/until bound them.",
"inputSchema": {
"type": "object",
"required": [
"author"
],
"properties": {
"inbox": {
"type": "string",
"description": "Default pgsql-hackers"
},
"limit": {
"type": "number",
"description": "1-200, default 50"
},
"since": {
"type": "string",
"description": "On or after: YYYY[-MM[-DD]] or 2w/6m/1y ago"
},
"until": {
"type": "string",
"description": "Before (exclusive), same forms"
},
"author": {
"type": "string",
"description": "Name or address"
},
"offset": {
"type": "number"
}
}
},
"annotations": {
"readOnlyHint": true
}
}What a symbol calls or references (forward call graph).
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-100, default 50 |
| repository | string | |
| qualified_name * | string | From search_symbols |
{
"name": "get_callees",
"title": "Get Callees",
"description": "What a symbol calls or references (forward call graph).",
"inputSchema": {
"type": "object",
"required": [
"qualified_name"
],
"properties": {
"limit": {
"type": "number",
"description": "1-100, default 50"
},
"repository": {
"type": "string"
},
"qualified_name": {
"type": "string",
"description": "From search_symbols"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Who calls or references qualified_name, with file and lines. HEAD only; macros and function pointers are not followed.
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-100, default 50 |
| repository | string | |
| qualified_name * | string | From search_symbols |
{
"name": "get_callers",
"title": "Get Callers",
"description": "Who calls or references qualified_name, with file and lines. HEAD only; macros and function pointers are not followed.",
"inputSchema": {
"type": "object",
"required": [
"qualified_name"
],
"properties": {
"limit": {
"type": "number",
"description": "1-100, default 50"
},
"repository": {
"type": "string"
},
"qualified_name": {
"type": "string",
"description": "From search_symbols"
}
}
},
"annotations": {
"readOnlyHint": true
}
}One commitfest: entries by status and its top authors.
| Parameter | Type | Description |
|---|---|---|
| commitfest_number * | number | Commitfest number, e.g. 59 |
{
"name": "get_commitfest",
"title": "Get Commitfest",
"description": "One commitfest: entries by status and its top authors.",
"inputSchema": {
"type": "object",
"required": [
"commitfest_number"
],
"properties": {
"commitfest_number": {
"type": "number",
"description": "Commitfest number, e.g. 59"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Louvain clusters of the call graph: related symbols by functional area.
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-100, default 20 |
| repository | string |
{
"name": "get_communities",
"title": "Get Communities",
"description": "Louvain clusters of the call graph: related symbols by functional area.",
"inputSchema": {
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "1-100, default 20"
},
"repository": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}One community and its symbols.
| Parameter | Type | Description |
|---|---|---|
| repository | string | |
| community_id * | number | Community id (from get_communities) |
{
"name": "get_community",
"title": "Get Community",
"description": "One community and its symbols.",
"inputSchema": {
"type": "object",
"required": [
"community_id"
],
"properties": {
"repository": {
"type": "string"
},
"community_id": {
"type": "number",
"description": "Community id (from get_communities)"
}
}
},
"annotations": {
"readOnlyHint": true
}
}A contributor by email (exact) or name (substring): canonical name, page hash, per-release counts by role, the 5 latest credited commits, animals owned. Cite https://pg.ddx.io/community/<hash>.
| Parameter | Type | Description |
|---|---|---|
| name | string | Name substring |
| string | Exact canonical email |
{
"name": "get_contributor",
"title": "Get Contributor",
"description": "A contributor by email (exact) or name (substring): canonical name, page hash, per-release counts by role, the 5 latest credited commits, animals owned. Cite https://pg.ddx.io/community/<hash>.",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name substring"
},
"email": {
"type": "string",
"description": "Exact canonical email"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Every list message from a sender (address or name).
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-100, default 50 |
| author * | string | Address or display name |
{
"name": "get_contributor_history",
"title": "Get Contributor History",
"description": "Every list message from a sender (address or name).",
"inputSchema": {
"type": "object",
"required": [
"author"
],
"properties": {
"limit": {
"type": "number",
"description": "1-100, default 50"
},
"author": {
"type": "string",
"description": "Address or display name"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Transitive dependents: the blast radius if this symbol changes.
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-200, default 50 |
| max_depth | number | BFS depth, 1-5, default 3 |
| repository | string | |
| qualified_name * | string | From search_symbols |
{
"name": "get_dependents",
"title": "Get Dependents",
"description": "Transitive dependents: the blast radius if this symbol changes.",
"inputSchema": {
"type": "object",
"required": [
"qualified_name"
],
"properties": {
"limit": {
"type": "number",
"description": "1-200, default 50"
},
"max_depth": {
"type": "number",
"description": "BFS depth, 1-5, default 3"
},
"repository": {
"type": "string"
},
"qualified_name": {
"type": "string",
"description": "From search_symbols"
}
}
},
"annotations": {
"readOnlyHint": true
}
}One docs page as text: url, path, body, fetched_at. Find the path with search_docs; cite the url.
| Parameter | Type | Description |
|---|---|---|
| path * | string | Page, e.g. brin.html |
| version | string | e.g. 17, current (default the latest) |
{
"name": "get_doc_page",
"title": "Get Doc Page",
"description": "One docs page as text: url, path, body, fetched_at. Find the path with search_docs; cite the url.",
"inputSchema": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
"description": "Page, e.g. brin.html"
},
"version": {
"type": "string",
"description": "e.g. 17, current (default the latest)"
}
}
},
"annotations": {
"readOnlyHint": true
}
}One commitfest entry: title, status, commitfest, authors, reviewers, committer, mail threads, branches.
| Parameter | Type | Description |
|---|---|---|
| cf_id * | number | Entry id |
{
"name": "get_entry",
"title": "Get Entry",
"description": "One commitfest entry: title, status, commitfest, authors, reviewers, committer, mail threads, branches.",
"inputSchema": {
"type": "object",
"required": [
"cf_id"
],
"properties": {
"cf_id": {
"type": "number",
"description": "Entry id"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Execution paths through the call graph from entry points.
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-50, default 20 |
| max_depth | number | BFS depth, 1-10, default 8 |
| repository | string |
{
"name": "get_execution_flows",
"title": "Get Execution Flows",
"description": "Execution paths through the call graph from entry points.",
"inputSchema": {
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "1-50, default 20"
},
"max_depth": {
"type": "number",
"description": "BFS depth, 1-10, default 8"
},
"repository": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Impact of changing a symbol: risk level, blast radius, communities and flows affected.
| Parameter | Type | Description |
|---|---|---|
| repository | string | |
| qualified_name * | string | From search_symbols |
{
"name": "get_impact",
"title": "Get Impact",
"description": "Impact of changing a symbol: risk level, blast radius, communities and flows affected.",
"inputSchema": {
"type": "object",
"required": [
"qualified_name"
],
"properties": {
"repository": {
"type": "string"
},
"qualified_name": {
"type": "string",
"description": "From search_symbols"
}
}
},
"annotations": {
"readOnlyHint": true
}
}A list's name, addresses, message_count (a cross-post counts on each list) and last activity.
| Parameter | Type | Description |
|---|---|---|
| inbox | string | Default pgsql-hackers |
{
"name": "get_inbox_info",
"title": "Get Inbox Info",
"description": "A list's name, addresses, message_count (a cross-post counts on each list) and last activity.",
"inputSchema": {
"type": "object",
"properties": {
"inbox": {
"type": "string",
"description": "Default pgsql-hackers"
}
}
},
"annotations": {
"readOnlyHint": true
}
}A list's message counts per period, top authors, trends; total_messages; oldest_date/newest_date skip unparsable or impossible dates.
| Parameter | Type | Description |
|---|---|---|
| inbox | string | Default pgsql-hackers |
| period | string | day, week, month (default) or year |
| top_authors | number | 1-50, default 10 |
{
"name": "get_inbox_stats",
"title": "Get Inbox Stats",
"description": "A list's message counts per period, top authors, trends; total_messages; oldest_date/newest_date skip unparsable or impossible dates.",
"inputSchema": {
"type": "object",
"properties": {
"inbox": {
"type": "string",
"description": "Default pgsql-hackers"
},
"period": {
"type": "string",
"description": "day, week, month (default) or year"
},
"top_authors": {
"type": "number",
"description": "1-50, default 10"
}
}
},
"annotations": {
"readOnlyHint": true
}
}One list: total messages, top 10 posters, threads, date range, average messages per day over its life.
| Parameter | Type | Description |
|---|---|---|
| inbox * | string | List name |
{
"name": "get_inbox_summary",
"title": "Get Inbox Summary",
"description": "One list: total messages, top 10 posters, threads, date range, average messages per day over its life.",
"inputSchema": {
"type": "object",
"required": [
"inbox"
],
"properties": {
"inbox": {
"type": "string",
"description": "List name"
}
}
},
"annotations": {
"readOnlyHint": true
}
}One message: headers, in_reply_to/references, body (own words: quotes, forwards, inline patches, signature removed; full_text=true for all), attachments [{index, filename, content_type, size}], has_patch. quotes: own_words/in_message verdicts per quote (include_body=false: verdicts only). Raw: get_attachment, get_raw_message.
| Parameter | Type | Description |
|---|---|---|
| inbox | string | |
| quotes | array | Up to 20 quotes to check (12+ chars) |
| full_text | boolean | Default false: own words |
| message_id * | string | |
| include_body | boolean | Default true |
{
"name": "get_message",
"title": "Get Message",
"description": "One message: headers, in_reply_to/references, body (own words: quotes, forwards, inline patches, signature removed; full_text=true for all), attachments [{index, filename, content_type, size}], has_patch. quotes: own_words/in_message verdicts per quote (include_body=false: verdicts only). Raw: get_attachment, get_raw_message.",
"inputSchema": {
"type": "object",
"required": [
"message_id"
],
"properties": {
"inbox": {
"type": "string"
},
"quotes": {
"type": "array",
"items": {
"type": "string"
},
"description": "Up to 20 quotes to check (12+ chars)"
},
"full_text": {
"type": "boolean",
"description": "Default false: own words"
},
"message_id": {
"type": "string"
},
"include_body": {
"type": "boolean",
"description": "Default true"
}
}
},
"outputSchema": {
"type": "object",
"required": [
"message_id"
],
"properties": {
"cc": {
"type": "string"
},
"to": {
"type": "string"
},
"body": {
"type": "string"
},
"date": {
"type": "string"
},
"from": {
"type": "string"
},
"bytes": {
"type": "integer"
},
"quotes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"quote": {
"type": "string"
},
"own_words": {
"type": "boolean"
},
"too_short": {
"type": "boolean"
},
"in_message": {
"type": "boolean"
}
}
}
},
"subject": {
"type": "string"
},
"has_patch": {
"type": "boolean"
},
"text_mode": {
"enum": [
"clean",
"full"
]
},
"thread_id": {
"type": [
"integer",
"null"
]
},
"body_chars": {
"type": "integer"
},
"message_id": {
"type": "string"
},
"references": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"attachments": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"properties": {
"size": {
"type": "integer"
},
"index": {
"type": "integer"
},
"filename": {
"type": "string"
},
"content_type": {
"type": "string"
}
}
}
},
"in_reply_to": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"body_truncated": {
"type": "boolean"
}
}
},
"annotations": {
"readOnlyHint": true
}
}A message's headers as key/value pairs, all or one.
| Parameter | Type | Description |
|---|---|---|
| inbox | string | |
| header | string | One header, e.g. X-Mailer (default all) |
| message_id * | string |
{
"name": "get_message_headers",
"title": "Get Message Headers",
"description": "A message's headers as key/value pairs, all or one.",
"inputSchema": {
"type": "object",
"required": [
"message_id"
],
"properties": {
"inbox": {
"type": "string"
},
"header": {
"type": "string",
"description": "One header, e.g. X-Mailer (default all)"
},
"message_id": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}A message's references: References/In-Reply-To and Message-IDs in its body, each looked up in the archive.
| Parameter | Type | Description |
|---|---|---|
| inbox | string | |
| message_id * | string |
{
"name": "get_message_references",
"title": "Get Message References",
"description": "A message's references: References/In-Reply-To and Message-IDs in its body, each looked up in the archive.",
"inputSchema": {
"type": "object",
"required": [
"message_id"
],
"properties": {
"inbox": {
"type": "string"
},
"message_id": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Messages after an article-number cursor, to poll without rescanning: after=0 first, then the returned last_article_num.
| Parameter | Type | Description |
|---|---|---|
| after * | number | 0 first, then last_article_num |
| inbox | string | Default pgsql-hackers |
| limit | number | 1-1000, default 200 |
{
"name": "get_new_messages",
"title": "Get New Messages",
"description": "Messages after an article-number cursor, to poll without rescanning: after=0 first, then the returned last_article_num.",
"inputSchema": {
"type": "object",
"required": [
"after"
],
"properties": {
"after": {
"type": "number",
"description": "0 first, then last_article_num"
},
"inbox": {
"type": "string",
"description": "Default pgsql-hackers"
},
"limit": {
"type": "number",
"description": "1-1000, default 200"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Git branches made from a pull request's patch series.
| Parameter | Type | Description |
|---|---|---|
| pr_url * | string | Forge pull request URL |
{
"name": "get_patch_branches",
"title": "Get Patch Branches",
"description": "Git branches made from a pull request's patch series.",
"inputSchema": {
"type": "object",
"required": [
"pr_url"
],
"properties": {
"pr_url": {
"type": "string",
"description": "Forge pull request URL"
}
}
},
"annotations": {
"readOnlyHint": true
}
}One entry's cfbot build matrix: per job status, platform, config, log URL, at, started_at, seen_at; rollup: last_build_at, seen_at, passing/failing_platforms, applies_cleanly, needs_rebase (the newest patch does not apply; builds are of the last that did).
| Parameter | Type | Description |
|---|---|---|
| cf_id * | number | Entry id |
{
"name": "get_patch_build_history",
"title": "Get Patch Build History",
"description": "One entry's cfbot build matrix: per job status, platform, config, log URL, at, started_at, seen_at; rollup: last_build_at, seen_at, passing/failing_platforms, applies_cleanly, needs_rebase (the newest patch does not apply; builds are of the last that did).",
"inputSchema": {
"type": "object",
"required": [
"cf_id"
],
"properties": {
"cf_id": {
"type": "number",
"description": "Entry id"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Every iteration of a pull request posted to the lists.
| Parameter | Type | Description |
|---|---|---|
| pr_url * | string | Forge pull request URL |
{
"name": "get_patch_series",
"title": "Get Patch Series",
"description": "Every iteration of a pull request posted to the lists.",
"inputSchema": {
"type": "object",
"required": [
"pr_url"
],
"properties": {
"pr_url": {
"type": "string",
"description": "Forge pull request URL"
}
}
},
"annotations": {
"readOnlyHint": true
}
}A message's raw RFC 822 bytes.
| Parameter | Type | Description |
|---|---|---|
| inbox | string | |
| message_id * | string |
{
"name": "get_raw_message",
"title": "Get Raw Message",
"description": "A message's raw RFC 822 bytes.",
"inputSchema": {
"type": "object",
"required": [
"message_id"
],
"properties": {
"inbox": {
"type": "string"
},
"message_id": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}A repository's commit cadence (median interval, suggested poll) and fetch log.
| Parameter | Type | Description |
|---|---|---|
| repository | string |
{
"name": "get_repo_sync_stats",
"title": "Get Repo Sync Stats",
"description": "A repository's commit cadence (median interval, suggested poll) and fetch log.",
"inputSchema": {
"type": "object",
"properties": {
"repository": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}One repository: commits, top 10 contributors, branches, languages (indexed symbols), most-touched paths (sampled).
| Parameter | Type | Description |
|---|---|---|
| repository * | string | Repository name |
{
"name": "get_repository_summary",
"title": "Get Repository Summary",
"description": "One repository: commits, top 10 contributors, branches, languages (indexed symbols), most-touched paths (sampled).",
"inputSchema": {
"type": "object",
"required": [
"repository"
],
"properties": {
"repository": {
"type": "string",
"description": "Repository name"
}
}
},
"annotations": {
"readOnlyHint": true
}
}A symbol's signature and doc comment.
| Parameter | Type | Description |
|---|---|---|
| repository | string | |
| qualified_name * | string | From search_symbols |
{
"name": "get_signature",
"title": "Get Signature",
"description": "A symbol's signature and doc comment.",
"inputSchema": {
"type": "object",
"required": [
"qualified_name"
],
"properties": {
"repository": {
"type": "string"
},
"qualified_name": {
"type": "string",
"description": "From search_symbols"
}
}
},
"annotations": {
"readOnlyHint": true
}
}One list_sources source: kind, item_count, last_update, next_sync, freshness_status, description; a postgresql.org list also has poll (p_new, due, next_poll).
| Parameter | Type | Description |
|---|---|---|
| kind | string | inbox, repository, docs, wiki, discord or legacy (for a shared name) |
| name * | string | A list_sources name |
{
"name": "get_source_info",
"title": "Get Source Info",
"description": "One list_sources source: kind, item_count, last_update, next_sync, freshness_status, description; a postgresql.org list also has poll (p_new, due, next_poll).",
"inputSchema": {
"type": "object",
"required": [
"name"
],
"properties": {
"kind": {
"type": "string",
"description": "inbox, repository, docs, wiki, discord or legacy (for a shared name)"
},
"name": {
"type": "string",
"description": "A list_sources name"
}
}
},
"annotations": {
"readOnlyHint": true
}
}A symbol by qualified name: source, signature, docs, file location.
| Parameter | Type | Description |
|---|---|---|
| repository | string | |
| qualified_name * | string | e.g. pkg::func_name |
{
"name": "get_symbol",
"title": "Get Symbol",
"description": "A symbol by qualified name: source, signature, docs, file location.",
"inputSchema": {
"type": "object",
"required": [
"qualified_name"
],
"properties": {
"repository": {
"type": "string"
},
"qualified_name": {
"type": "string",
"description": "e.g. pkg::func_name"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Test symbols that reference a symbol.
| Parameter | Type | Description |
|---|---|---|
| repository | string | |
| qualified_name * | string | From search_symbols |
{
"name": "get_tests_for",
"title": "Get Tests for",
"description": "Test symbols that reference a symbol.",
"inputSchema": {
"type": "object",
"required": [
"qualified_name"
],
"properties": {
"repository": {
"type": "string"
},
"qualified_name": {
"type": "string",
"description": "From search_symbols"
}
}
},
"annotations": {
"readOnlyHint": true
}
}The reply thread of a message (what In-Reply-To/References join to it), oldest first; root_message_id is its first message. grouping=subject: the whole subject thread, as the /m/ page shows it (may hold several reply threads). Each message: from, to, cc, date, message_id, body (own words; full_text=true for all), attachments, has_patch. Pages of 20 (limit max 500; next_offset, has_more); bodies cut at max_body_chars. include_body=false: outline.
| Parameter | Type | Description |
|---|---|---|
| inbox | string | |
| limit | number | Messages per page, 1-500, default 20 |
| offset | number | next_offset from the previous page |
| grouping | string | reply (default) or subject |
| full_text | boolean | Default false: own words |
| message_id * | string | |
| include_body | boolean | Default true |
| max_body_chars | number | Default 4000; 0 = no cap |
{
"name": "get_thread",
"title": "Get Thread",
"description": "The reply thread of a message (what In-Reply-To/References join to it), oldest first; root_message_id is its first message. grouping=subject: the whole subject thread, as the /m/ page shows it (may hold several reply threads). Each message: from, to, cc, date, message_id, body (own words; full_text=true for all), attachments, has_patch. Pages of 20 (limit max 500; next_offset, has_more); bodies cut at max_body_chars. include_body=false: outline.",
"inputSchema": {
"type": "object",
"required": [
"message_id"
],
"properties": {
"inbox": {
"type": "string"
},
"limit": {
"type": "number",
"description": "Messages per page, 1-500, default 20"
},
"offset": {
"type": "number",
"description": "next_offset from the previous page"
},
"grouping": {
"enum": [
"reply",
"subject"
],
"type": "string",
"description": "reply (default) or subject"
},
"full_text": {
"type": "boolean",
"description": "Default false: own words"
},
"message_id": {
"type": "string"
},
"include_body": {
"type": "boolean",
"description": "Default true"
},
"max_body_chars": {
"type": "number",
"description": "Default 4000; 0 = no cap"
}
}
},
"outputSchema": {
"type": "object",
"required": [
"root_message_id",
"message_count",
"returned",
"has_more",
"messages"
],
"properties": {
"offset": {
"type": "integer"
},
"grouping": {
"enum": [
"reply",
"subject"
]
},
"has_more": {
"type": "boolean"
},
"messages": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"required": [
"message_id"
],
"properties": {
"cc": {
"type": "string"
},
"to": {
"type": "string"
},
"body": {
"type": "string"
},
"date": {
"type": "string"
},
"from": {
"type": "string"
},
"bytes": {
"type": "integer"
},
"subject": {
"type": "string"
},
"has_patch": {
"type": "boolean"
},
"text_mode": {
"enum": [
"clean",
"full"
]
},
"body_chars": {
"type": "integer"
},
"message_id": {
"type": "string"
},
"references": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"article_num": {
"type": "integer"
},
"attachments": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"properties": {
"size": {
"type": "integer"
},
"index": {
"type": "integer"
},
"filename": {
"type": "string"
},
"content_type": {
"type": "string"
}
}
}
},
"in_reply_to": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"body_truncated": {
"type": "boolean"
}
}
}
},
"returned": {
"type": "integer"
},
"next_offset": {
"type": [
"integer",
"null"
]
},
"message_count": {
"type": "integer"
},
"root_message_id": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}A thread's cross-reference graph: Message-IDs cited in its bodies and the threads they point to.
| Parameter | Type | Description |
|---|---|---|
| inbox | string | |
| message_id * | string |
{
"name": "get_thread_references",
"title": "Get Thread References",
"description": "A thread's cross-reference graph: Message-IDs cited in its bodies and the threads they point to.",
"inputSchema": {
"type": "object",
"required": [
"message_id"
],
"properties": {
"inbox": {
"type": "string"
},
"message_id": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}A wiki page's revisions.
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-100, default 20 |
| title * | string |
{
"name": "get_wiki_history",
"title": "Get Wiki History",
"description": "A wiki page's revisions.",
"inputSchema": {
"type": "object",
"required": [
"title"
],
"properties": {
"limit": {
"type": "number",
"description": "1-100, default 20"
},
"title": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}One wiki.postgresql.org page by title ("Don't Do This"): latest revision, author, date. Cite https://wiki.postgresql.org/wiki/<title>.
| Parameter | Type | Description |
|---|---|---|
| title * | string |
{
"name": "get_wiki_page",
"title": "Get Wiki Page",
"description": "One wiki.postgresql.org page by title (\"Don't Do This\"): latest revision, author, date. Cite https://wiki.postgresql.org/wiki/<title>.",
"inputSchema": {
"type": "object",
"required": [
"title"
],
"properties": {
"title": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Commits per period: development pace.
| Parameter | Type | Description |
|---|---|---|
| period | string | week, month (default), quarter or year |
| repository | string |
{
"name": "git_analyze_activity",
"title": "Git Analyze Activity",
"description": "Commits per period: development pace.",
"inputSchema": {
"type": "object",
"properties": {
"period": {
"type": "string",
"description": "week, month (default), quarter or year"
},
"repository": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Per author: commits, first and last date; by commit count.
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-100, default 25 |
| repository | string |
{
"name": "git_analyze_authors",
"title": "Git Analyze Authors",
"description": "Per author: commits, first and last date; by commit count.",
"inputSchema": {
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "1-100, default 25"
},
"repository": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Files with the fewest distinct authors (knowledge silos).
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-100, default 25 |
| repository | string |
{
"name": "git_analyze_bus_factor",
"title": "Git Analyze Bus Factor",
"description": "Files with the fewest distinct authors (knowledge silos).",
"inputSchema": {
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "1-100, default 25"
},
"repository": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Most often changed files.
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-100, default 25 |
| repository | string |
{
"name": "git_analyze_churn",
"title": "Git Analyze Churn",
"description": "Most often changed files.",
"inputSchema": {
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "1-100, default 25"
},
"repository": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}File pairs often changed together (hidden dependencies).
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-100, default 25 |
| min_count | number | Minimum co-changes (default 2) |
| repository | string |
{
"name": "git_analyze_coupling",
"title": "Git Analyze Coupling",
"description": "File pairs often changed together (hidden dependencies).",
"inputSchema": {
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "1-100, default 25"
},
"min_count": {
"type": "number",
"description": "Minimum co-changes (default 2)"
},
"repository": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Churn per directory: the most changed areas.
| Parameter | Type | Description |
|---|---|---|
| depth | number | Directory depth (default 1) |
| limit | number | 1-100, default 25 |
| repository | string |
{
"name": "git_analyze_hotspots",
"title": "Git Analyze Hotspots",
"description": "Churn per directory: the most changed areas.",
"inputSchema": {
"type": "object",
"properties": {
"depth": {
"type": "number",
"description": "Directory depth (default 1)"
},
"limit": {
"type": "number",
"description": "1-100, default 25"
},
"repository": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}A file's commit history (git log <rev> -- <path>), newest first: sha, commit_id, author, date, summary, status. Not per-line blame (blame). Renames not followed.
| Parameter | Type | Description |
|---|---|---|
| path * | string | |
| limit | number | 1-1000, default 100 |
| commit | string | Default HEAD |
| repository | string |
{
"name": "git_blame",
"title": "Git Blame",
"description": "A file's commit history (git log <rev> -- <path>), newest first: sha, commit_id, author, date, summary, status. Not per-line blame (blame). Renames not followed.",
"inputSchema": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string"
},
"limit": {
"type": "number",
"description": "1-1000, default 100"
},
"commit": {
"type": "string",
"description": "Default HEAD"
},
"repository": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Range mode (head_branch, optional base_branch: commits in head not base, filtered by author/message/path) or diff mode (from_commit, to_commit: unified diff).
| Parameter | Type | Description |
|---|---|---|
| path | string | Only this file path |
| limit | number | Range mode: 1-1000, default 100 |
| author | string | Range mode: author substring |
| message | string | Range mode: message substring |
| to_commit | string | Diff mode: to (default HEAD) |
| repository | string | |
| base_branch | string | Range mode: base (default branch) |
| from_commit | string | Diff mode: from. Any commit form |
| head_branch | string | Selects range mode |
{
"name": "git_diff",
"title": "Git Diff",
"description": "Range mode (head_branch, optional base_branch: commits in head not base, filtered by author/message/path) or diff mode (from_commit, to_commit: unified diff).",
"inputSchema": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Only this file path"
},
"limit": {
"type": "number",
"description": "Range mode: 1-1000, default 100"
},
"author": {
"type": "string",
"description": "Range mode: author substring"
},
"message": {
"type": "string",
"description": "Range mode: message substring"
},
"to_commit": {
"type": "string",
"description": "Diff mode: to (default HEAD)"
},
"repository": {
"type": "string"
},
"base_branch": {
"type": "string",
"description": "Range mode: base (default branch)"
},
"from_commit": {
"type": "string",
"description": "Diff mode: from. Any commit form"
},
"head_branch": {
"type": "string",
"description": "Selects range mode"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Commit history like git log, newest first; path, author (substring), since/until, branch (branch, tag or major) filter. Each: sha, commit_id, message, author, dates; has_more.
| Parameter | Type | Description |
|---|---|---|
| path | string | Commits touching this path |
| limit | number | 1-200, default 50 |
| since | string | After (YYYY-MM-DD or RFC 3339) |
| until | string | Before (YYYY-MM-DD or RFC 3339) |
| author | string | Name or email substring |
| branch | string | Default the default branch |
| offset | number | |
| repository | string |
{
"name": "git_log",
"title": "Git Log",
"description": "Commit history like git log, newest first; path, author (substring), since/until, branch (branch, tag or major) filter. Each: sha, commit_id, message, author, dates; has_more.",
"inputSchema": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Commits touching this path"
},
"limit": {
"type": "number",
"description": "1-200, default 50"
},
"since": {
"type": "string",
"description": "After (YYYY-MM-DD or RFC 3339)"
},
"until": {
"type": "string",
"description": "Before (YYYY-MM-DD or RFC 3339)"
},
"author": {
"type": "string",
"description": "Name or email substring"
},
"branch": {
"type": "string",
"description": "Default the default branch"
},
"offset": {
"type": "number"
},
"repository": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Commit messages (or paths: search_in=paths) by keywords, best match first; every word, case-insensitive. Each commit: sha, commit_id, branch, branches (its branch, then its back-patches': a back-patched fix appears once per branch, so pick by branch), first_release (first final release on its branch containing it, or null), message, author, date, people, mail_refs (up to 5, with how_it_refers). A SHA or 7+ hex prefix returns that commit.
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-200, default 50 |
| query * | string | |
| search_in | string | messages (default) or paths |
| repository | string |
{
"name": "git_search",
"title": "Git Search",
"description": "Commit messages (or paths: search_in=paths) by keywords, best match first; every word, case-insensitive. Each commit: sha, commit_id, branch, branches (its branch, then its back-patches': a back-patched fix appears once per branch, so pick by branch), first_release (first final release on its branch containing it, or null), message, author, date, people, mail_refs (up to 5, with how_it_refers). A SHA or 7+ hex prefix returns that commit.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "number",
"description": "1-200, default 50"
},
"query": {
"type": "string"
},
"search_in": {
"type": "string",
"description": "messages (default) or paths"
},
"repository": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}A file at any commit (git show <rev>:<path>); an unknown rev or path is an error. Max 2000 lines a call (start_line/end_line; total_lines, cut). Returns sha and ref.
| Parameter | Type | Description |
|---|---|---|
| path * | string | |
| commit | string | Any commit form (default HEAD) |
| end_line | number | At most start_line + 1999 |
| numbered | boolean | Default true |
| repository | string | |
| start_line | number | First line (1-based, default 1) |
{
"name": "git_show_file",
"title": "Git Show File",
"description": "A file at any commit (git show <rev>:<path>); an unknown rev or path is an error. Max 2000 lines a call (start_line/end_line; total_lines, cut). Returns sha and ref.",
"inputSchema": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string"
},
"commit": {
"type": "string",
"description": "Any commit form (default HEAD)"
},
"end_line": {
"type": "number",
"description": "At most start_line + 1999"
},
"numbered": {
"type": "boolean",
"description": "Default true"
},
"repository": {
"type": "string"
},
"start_line": {
"type": "number",
"description": "First line (1-based, default 1)"
}
}
},
"annotations": {
"readOnlyHint": true
}
}For CI: given a diff, path, symbol, subject or feature, the most relevant default-branch commits, their mail discussion and the people involved.
| Parameter | Type | Description |
|---|---|---|
| inbox | string | List to search (default pgsql-hackers) |
| limit | number | Per section, 1-25, default 5 |
| query * | string | |
| repository | string | Its default branch is traced (default postgres) |
{
"name": "history-of",
"title": "History of",
"description": "For CI: given a diff, path, symbol, subject or feature, the most relevant default-branch commits, their mail discussion and the people involved.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"inbox": {
"type": "string",
"description": "List to search (default pgsql-hackers)"
},
"limit": {
"type": "number",
"description": "Per section, 1-25, default 5"
},
"query": {
"type": "string"
},
"repository": {
"type": "string",
"description": "Its default branch is traced (default postgres)"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Mailing-list search, BM25 over own words and semantic, blended per thread; every list unless inbox narrows it. Up to limit threads, best first, each its best message: inbox, message_id, subject, from, date, thread_id, fused_score (0-1), similarity, excerpt. author/since/until: one sender in a date window. Takes search operators (operators, warnings, skipped report them); complete=false when out of budget_ms. A commit SHA returns the mail referring to it (how_it_refers).
| Parameter | Type | Description |
|---|---|---|
| inbox | string | all (default), a list, or several comma-separated |
| limit | number | 1-50, default 20 |
| query * | string | Words or a question; search's operators |
| since | string | On or after: YYYY[-MM[-DD]], ISO, or 2w/6m/1y ago |
| until | string | Before (exclusive), same forms as since |
| author | string | Name, address or hash:<8 hex> |
| budget_ms | number | ms, 100-15000, default 4500 |
| keyword_weight | number | 0.0-1.0, default 0.65; raise for exact identifiers |
Code search by keyword and meaning, fused (RRF). Needs embeddings.
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-100, default 20 |
| query * | string | Keywords or natural language |
| repository | string | |
| keyword_weight | number | 0.0-1.0, default 0.5 |
{
"name": "hybrid_search_code",
"title": "Hybrid Search Code",
"description": "Code search by keyword and meaning, fused (RRF). Needs embeddings.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "number",
"description": "1-100, default 20"
},
"query": {
"type": "string",
"description": "Keywords or natural language"
},
"repository": {
"type": "string"
},
"keyword_weight": {
"type": "number",
"description": "0.0-1.0, default 0.5"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Buildfarm animals by OS, branch, last status or owner; failing first, then by name.
| Parameter | Type | Description |
|---|---|---|
| os | string | Exact OS |
| limit | number | 1-500, default 100 |
| owner | string | Exact owner name or email |
| branch | string | Tracking this branch, e.g. REL_18_STABLE |
| status | string | passed, failed, flapping or unknown |
{
"name": "list_animals",
"title": "List Animals",
"description": "Buildfarm animals by OS, branch, last status or owner; failing first, then by name.",
"inputSchema": {
"type": "object",
"properties": {
"os": {
"type": "string",
"description": "Exact OS"
},
"limit": {
"type": "number",
"description": "1-500, default 100"
},
"owner": {
"type": "string",
"description": "Exact owner name or email"
},
"branch": {
"type": "string",
"description": "Tracking this branch, e.g. REL_18_STABLE"
},
"status": {
"type": "string",
"description": "passed, failed, flapping or unknown"
}
}
},
"annotations": {
"readOnlyHint": true
}
}A repository's branches: head commit, default.
| Parameter | Type | Description |
|---|---|---|
| repository | string |
{
"name": "list_branches",
"title": "List Branches",
"description": "A repository's branches: head commit, default.",
"inputSchema": {
"type": "object",
"properties": {
"repository": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Commitfests: status (open / in-progress / closed) and entry counts by status.
| Parameter | Type | Description |
|---|---|---|
| status | string | open, in-progress or closed |
{
"name": "list_commitfests",
"title": "List Commitfests",
"description": "Commitfests: status (open / in-progress / closed) and entry counts by status.",
"inputSchema": {
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "open, in-progress or closed"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Contributors from git trailers, author/committer headers and animal owners, most contributions first.
| Parameter | Type | Description |
|---|---|---|
| role | string | authored, reviewed, committed, ... |
| limit | number | 1-500, default 100 |
| offset | number | |
| source | string | git, buildfarm, email, wiki or commitfest |
| release | string | e.g. PG17, 17, REL_17_STABLE, pre-9.6 |
{
"name": "list_contributors",
"title": "List Contributors",
"description": "Contributors from git trailers, author/committer headers and animal owners, most contributions first.",
"inputSchema": {
"type": "object",
"properties": {
"role": {
"type": "string",
"description": "authored, reviewed, committed, ..."
},
"limit": {
"type": "number",
"description": "1-500, default 100"
},
"offset": {
"type": "number"
},
"source": {
"type": "string",
"description": "git, buildfarm, email, wiki or commitfest"
},
"release": {
"type": "string",
"description": "e.g. PG17, 17, REL_17_STABLE, pre-9.6"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Monitored Discord channels and their message counts.
No parameters.
{
"name": "list_discord_channels",
"title": "List Discord Channels",
"description": "Monitored Discord channels and their message counts.",
"inputSchema": {
"type": "object",
"properties": {}
},
"annotations": {
"readOnlyHint": true
}
}Documentation versions and page counts.
No parameters.
{
"name": "list_doc_versions",
"title": "List Doc Versions",
"description": "Documentation versions and page counts.",
"inputSchema": {
"type": "object",
"properties": {}
},
"annotations": {
"readOnlyHint": true
}
}Commitfest entries (patch series) by status, commitfest or topic; paged.
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-500, default 100 |
| topic | string | Topic substring |
| offset | number | |
| status | string | e.g. needs-review, committed |
| commitfest_number | number | e.g. 59 |
{
"name": "list_entries",
"title": "List Entries",
"description": "Commitfest entries (patch series) by status, commitfest or topic; paged.",
"inputSchema": {
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "1-500, default 100"
},
"topic": {
"type": "string",
"description": "Topic substring"
},
"offset": {
"type": "number"
},
"status": {
"type": "string",
"description": "e.g. needs-review, committed"
},
"commitfest_number": {
"type": "number",
"description": "e.g. 59"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Every list: name, message_count, latest_message_date, latest_import_date, listid, description.
| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| offset | number | |
| min_messages | number | At least this many messages |
{
"name": "list_inboxes",
"title": "List Inboxes",
"description": "Every list: name, message_count, latest_message_date, latest_import_date, listid, description.",
"inputSchema": {
"type": "object",
"properties": {
"limit": {
"type": "number"
},
"offset": {
"type": "number"
},
"min_messages": {
"type": "number",
"description": "At least this many messages"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Projects linking a forge repository to a list.
No parameters.
{
"name": "list_projects",
"title": "List Projects",
"description": "Projects linking a forge repository to a list.",
"inputSchema": {
"type": "object",
"properties": {}
},
"annotations": {
"readOnlyHint": true
}
}A list's newest messages.
| Parameter | Type | Description |
|---|---|---|
| inbox | string | Default pgsql-hackers |
| limit | number | 1-200, default 25 |
{
"name": "list_recent",
"title": "List Recent",
"description": "A list's newest messages.",
"inputSchema": {
"type": "object",
"properties": {
"inbox": {
"type": "string",
"description": "Default pgsql-hackers"
},
"limit": {
"type": "number",
"description": "1-200, default 25"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Every repository: name, branch, commit_count, file_count, symbol_count, latest_commit, last_fetched_at, import_state.
| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| branch | string | Default branch equals this |
| offset | number | |
| min_commits | number | At least this many commits |
{
"name": "list_repositories",
"title": "List Repositories",
"description": "Every repository: name, branch, commit_count, file_count, symbol_count, latest_commit, last_fetched_at, import_state.",
"inputSchema": {
"type": "object",
"properties": {
"limit": {
"type": "number"
},
"branch": {
"type": "string",
"description": "Default branch equals this"
},
"offset": {
"type": "number"
},
"min_commits": {
"type": "number",
"description": "At least this many commits"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Every source (inbox, repository, docs, wiki, discord): item count, last update, freshness. The names other tools take.
| Parameter | Type | Description |
|---|---|---|
| kind | string | inbox, repository, docs, wiki or discord |
| limit | number | |
| offset | number | |
| min_items | number | At least this many items |
{
"name": "list_sources",
"title": "List Sources",
"description": "Every source (inbox, repository, docs, wiki, discord): item count, last update, freshness. The names other tools take.",
"inputSchema": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"description": "inbox, repository, docs, wiki or discord"
},
"limit": {
"type": "number"
},
"offset": {
"type": "number"
},
"min_items": {
"type": "number",
"description": "At least this many items"
}
}
},
"annotations": {
"readOnlyHint": true
}
}A list's recent threads: message counts, date ranges, latest message.
| Parameter | Type | Description |
|---|---|---|
| inbox | string | Default pgsql-hackers |
| limit | number | 1-100, default 20 |
| before | number | Unix time (paging) |
{
"name": "list_threads",
"title": "List Threads",
"description": "A list's recent threads: message counts, date ranges, latest message.",
"inputSchema": {
"type": "object",
"properties": {
"inbox": {
"type": "string",
"description": "Default pgsql-hackers"
},
"limit": {
"type": "number",
"description": "1-100, default 20"
},
"before": {
"type": "number",
"description": "Unix time (paging)"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Entries updated since a cutoff, with a status histogram.
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-500, default 100 |
| since | string | RFC 3339 cutoff (default 7 days ago) |
{
"name": "recent_commitfest_activity",
"title": "Recent Commitfest Activity",
"description": "Entries updated since a cutoff, with a status histogram.",
"inputSchema": {
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "1-500, default 100"
},
"since": {
"type": "string",
"description": "RFC 3339 cutoff (default 7 days ago)"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Full-text search of commitfest entries (title, then people), the current commitfest unless commitfests; "phrase", -term, or. Each: cf_id, title, status, commitfest(s), people, last update, patch url, thread link, outlook (P(commit) or null). Operators: intitle:, from:, after:/before:, /regex/, commitfest:, release:. A commit SHA returns its threads' entries.
| Parameter | Type | Description |
|---|---|---|
| sort | string | Default relevance; likely/unlikely sort by P(commit) |
| limit | integer | 1-50, default 20 |
| query * | string | e.g. NUMA, "Tom Lane"; commitfest:this|next, release:this|next|PG20 |
| commitfests | string | current (default), all, or numbers "62,61" |
{
"name": "search_commitfest",
"title": "Search Commitfest",
"description": "Full-text search of commitfest entries (title, then people), the current commitfest unless commitfests; \"phrase\", -term, or. Each: cf_id, title, status, commitfest(s), people, last update, patch url, thread link, outlook (P(commit) or null). Operators: intitle:, from:, after:/before:, /regex/, commitfest:, release:. A commit SHA returns its threads' entries.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"sort": {
"enum": [
"relevance",
"likely",
"unlikely"
],
"type": "string",
"description": "Default relevance; likely/unlikely sort by P(commit)"
},
"limit": {
"type": "integer",
"description": "1-50, default 20"
},
"query": {
"type": "string",
"description": "e.g. NUMA, \"Tom Lane\"; commitfest:this|next, release:this|next|PG20"
},
"commitfests": {
"type": "string",
"description": "current (default), all, or numbers \"62,61\""
}
}
},
"outputSchema": {
"type": "object",
"required": [
"total",
"results"
],
"properties": {
"total": {
"type": "integer"
},
"current": {
"type": [
"integer",
"null"
]
},
"results": {
"type": "array",
"items": {
"type": "object",
"required": [
"cf_id"
],
"properties": {
"url": {
"type": "string"
},
"cf_id": {
"type": "integer"
},
"title": {
"type": "string"
},
"status": {
"type": "string"
},
"thread_url": {
"type": [
"string",
"null"
]
}
}
}
},
"skipped": {
"type": "string",
"description": "Why the query's operators leave this source out (no results then)."
},
"warnings": {
"type": "array",
"items": {
"type": "string"
},
"description": "Operators the query could not use and left out, and the query-length cut."
},
"operators": {
"type": "array",
"items": {
"type": "object",
"required": [
"op",
"value",
"negated"
],
"properties": {
"op": {
"type": "string"
},
"field": {
"type": "string"
},
"value": {
"type": "string"
},
"negated": {
"type": "boolean"
}
}
},
"description": "The search operators and regexes the query applied (absent when it has none)."
},
"commitfests": {}
}
},
"annotations": {
"readOnlyHint": true
}
}Top contributors per role (authored, reviewed, tested, reported, committed) for one release, by distinct commits.
| Parameter | Type | Description |
|---|---|---|
| limit | number | Per role, 1-100, default 20 |
| release * | string | e.g. PG17, 17, REL_17_STABLE, pre-9.6 |
{
"name": "release_contributors",
"title": "Release Contributors",
"description": "Top contributors per role (authored, reviewed, tested, reported, committed) for one release, by distinct commits.",
"inputSchema": {
"type": "object",
"required": [
"release"
],
"properties": {
"limit": {
"type": "number",
"description": "Per role, 1-100, default 20"
},
"release": {
"type": "string",
"description": "e.g. PG17, 17, REL_17_STABLE, pre-9.6"
}
}
},
"annotations": {
"readOnlyHint": true
}
}A repository's commits, files, branch and import state.
| Parameter | Type | Description |
|---|---|---|
| repository | string |
{
"name": "repository_stats",
"title": "Repository Stats",
"description": "A repository's commits, files, branch and import state.",
"inputSchema": {
"type": "object",
"properties": {
"repository": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Keyword search of mail (BM25 over subject, sender, own words), every list unless inbox narrows it. Messages best first (collapse_threads: one per thread): inbox, message_id, subject, from, date, thread_id, excerpt; total, has_more. For exact words; questions: hybrid_search. complete=false: out of budget_ms or total is a lower bound. define:<term> adds definition.
| Parameter | Type | Description |
|---|---|---|
| inbox | string | all (default), a list, or several comma-separated |
| limit | number | 1-200, default 50 |
| query * | string | Words. Operators: after:/before:, d:A..B, site:, from:, intitle:, intext:, to:/cc:, has:patch, link:, /regex/, -op; alone: newest first |
| since | string | On or after: YYYY[-MM[-DD]], ISO, or 2w/6m/1y ago |
| until | string | Before (exclusive), same forms as since |
| author | string | Name, address or hash:<8 hex> |
| offset | number | |
| budget_ms | number | ms, 100-15000, default 4500 |
| collapse_threads | boolean | One hit per thread, the best (default false) |
POSIX-regex search of mail, optionally fuzzy (k edits per match). search's prefixes apply (s:, f:, t:, d:, b:).
| Parameter | Type | Description |
|---|---|---|
| k | number | Edits allowed per match, 0-5 (default 0 = exact) |
| inbox | string | Default pgsql-hackers |
| limit | number | 1-200, default 50 |
| query * | string | POSIX regex |
| offset | number | |
| collapse_threads | boolean | One hit per thread (default false) |
{
"name": "search-regex",
"title": "Search Regex",
"description": "POSIX-regex search of mail, optionally fuzzy (k edits per match). search's prefixes apply (s:, f:, t:, d:, b:).",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"k": {
"type": "number",
"description": "Edits allowed per match, 0-5 (default 0 = exact)"
},
"inbox": {
"type": "string",
"description": "Default pgsql-hackers"
},
"limit": {
"type": "number",
"description": "1-200, default 50"
},
"query": {
"type": "string",
"description": "POSIX regex"
},
"offset": {
"type": "number"
},
"collapse_threads": {
"type": "boolean",
"description": "One hit per thread (default false)"
}
}
},
"annotations": {
"readOnlyHint": true
}
}One search over docs, wiki and mail, by relevance; define:<term> adds definition.
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-50, default 20 |
| query * | string | Words or a question; search's operators |
{
"name": "search_all_sources",
"title": "Search All Sources",
"description": "One search over docs, wiki and mail, by relevance; define:<term> adds definition.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "number",
"description": "1-50, default 20"
},
"query": {
"type": "string",
"description": "Words or a question; search's operators"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Discord conversations near a query: channel, approximate dates and participants only, never content or links (the Discord community agreement).
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-25, default 10 |
| query * | string | Natural language |
{
"name": "search_discord_topics",
"title": "Search Discord Topics",
"description": "Discord conversations near a query: channel, approximate dates and participants only, never content or links (the Discord community agreement).",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "number",
"description": "1-25, default 10"
},
"query": {
"type": "string",
"description": "Natural language"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Full-text search of the docs ("phrase", -term, or), title first; the current release unless version(s). One result per page: title, path, url, versions, snippet. define:<term> (MVCC, T611, LATERAL) adds definition (glossary, SQL feature or key word). Operators: intitle:, inurl:, after:/before:. Read: get_doc_page.
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-50, default 20 |
| query * | string | |
| version | string | e.g. 17 or current |
| versions | array | e.g. ["18", "17"] |
{
"name": "search_docs",
"title": "Search Docs",
"description": "Full-text search of the docs (\"phrase\", -term, or), title first; the current release unless version(s). One result per page: title, path, url, versions, snippet. define:<term> (MVCC, T611, LATERAL) adds definition (glossary, SQL feature or key word). Operators: intitle:, inurl:, after:/before:. Read: get_doc_page.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "number",
"description": "1-50, default 20"
},
"query": {
"type": "string"
},
"version": {
"type": "string",
"description": "e.g. 17 or current"
},
"versions": {
"type": "array",
"items": {
"type": "string"
},
"description": "e.g. [\"18\", \"17\"]"
}
}
},
"outputSchema": {
"type": "object",
"required": [
"total",
"results"
],
"properties": {
"total": {
"type": "integer"
},
"results": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"url"
],
"properties": {
"url": {
"type": "string"
},
"path": {
"type": "string"
},
"title": {
"type": [
"string",
"null"
]
},
"snippet": {
"type": [
"string",
"null"
]
},
"version": {
"type": "string"
}
}
}
},
"skipped": {
"type": "string"
},
"versions": {
"type": "array",
"items": {
"type": "string"
}
},
"warnings": {
"type": "array",
"items": {
"type": "string"
},
"description": "Operators the query could not use and left out, and the query-length cut."
},
"operators": {
"type": "array",
"items": {
"type": "object",
"required": [
"op",
"value",
"negated"
],
"properties": {
"op": {
"type": "string"
},
"field": {
"type": "string"
},
"value": {
"type": "string"
},
"negated": {
"type": "boolean"
}
}
},
"description": "The search operators and regexes the query applied (absent when it has none)."
},
"definition": {
"type": "object",
"required": [
"term",
"found",
"match",
"paragraphs",
"link_count"
],
"properties": {
"url": {
"type": "string"
},
"also": {
"type": "array",
"items": {
"type": "object"
}
},
"term": {
"type": "string"
},
"found": {
"type": "boolean"
},
"match": {
"enum": [
"exact",
"alias",
"see",
"name",
"text",
"none"
],
"type": "string"
},
"title": {
"type": "string"
},
"source": {
"enum": [
"glossary",
"sql_feature",
"sql_keyword",
null
],
"type": [
"string",
"null"
]
},
"see_also": {
"type": "array",
"items": {
"type": "object",
"required": [
"text"
],
"properties": {
"link": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"kind": {
"enum": [
"term",
"doc",
"sql_feature"
],
"type": "string"
}
}
},
"text": {
"type": "string"
}
}
}
},
"link_count": {
"type": "integer"
},
"paragraphs": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"text"
],
"properties": {
"link": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"kind": {
"enum": [
"term",
"doc",
"sql_feature"
],
"type": "string"
}
}
},
"text": {
"type": "string"
}
}
}
}
}
},
"description": "With define:<term> in query: the glossary entry, SQL feature or SQL key word, as text segments some of which link."
}
}
},
"annotations": {
"readOnlyHint": true
}
}Patch series from [PATCH v2 3/7] subjects: version, number, total, series.
| Parameter | Type | Description |
|---|---|---|
| inbox | string | Default pgsql-hackers |
| limit | number | 1-100, default 50 |
| query | string | Words to filter the patches |
| budget_ms | number | ms, 100-15000, default 10000 |
{
"name": "search_patches",
"title": "Search Patches",
"description": "Patch series from [PATCH v2 3/7] subjects: version, number, total, series.",
"inputSchema": {
"type": "object",
"properties": {
"inbox": {
"type": "string",
"description": "Default pgsql-hackers"
},
"limit": {
"type": "number",
"description": "1-100, default 50"
},
"query": {
"type": "string",
"description": "Words to filter the patches"
},
"budget_ms": {
"type": "number",
"description": "ms, 100-15000, default 10000"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Which posted patches carry a line: the +/- lines of every patch posted to the lists, for an identifier, line or hunk. One entry per series (thread): first_version and latest_version carrying it (message_id, date, from, version, patch files with urls, matching lines), message count, and commit (the one that landed it via its Discussion: link, or null). Words match from a word start; any whitespace run matches; several lines must be in one file. complete=false (cut says why) at the read cap or budget.
| Parameter | Type | Description |
|---|---|---|
| side | string | any (default), added or removed |
| inbox | string | One list (default every list) |
| limit | number | Series, 1-100, default 20 |
| query * | string | Identifier, line or hunk (max 32 lines); a leading + or - names the side |
| budget_ms | number | ms, 100-15000, default 10000 |
| case_sensitive | boolean | JSON boolean, default true |
{
"name": "search_patch_lines",
"title": "Search Patch Lines",
"description": "Which posted patches carry a line: the +/- lines of every patch posted to the lists, for an identifier, line or hunk. One entry per series (thread): first_version and latest_version carrying it (message_id, date, from, version, patch files with urls, matching lines), message count, and commit (the one that landed it via its Discussion: link, or null). Words match from a word start; any whitespace run matches; several lines must be in one file. complete=false (cut says why) at the read cap or budget.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"side": {
"enum": [
"any",
"added",
"removed"
],
"type": "string",
"description": "any (default), added or removed"
},
"inbox": {
"type": "string",
"description": "One list (default every list)"
},
"limit": {
"type": "number",
"description": "Series, 1-100, default 20"
},
"query": {
"type": "string",
"description": "Identifier, line or hunk (max 32 lines); a leading + or - names the side"
},
"budget_ms": {
"type": "number",
"description": "ms, 100-15000, default 10000"
},
"case_sensitive": {
"type": "boolean",
"description": "JSON boolean, default true"
}
}
},
"outputSchema": {
"type": "object",
"required": [
"series",
"count",
"complete"
],
"properties": {
"cut": {
"type": [
"string",
"null"
]
},
"more": {
"type": "boolean"
},
"side": {
"enum": [
"any",
"added",
"removed"
],
"type": "string"
},
"count": {
"type": "integer"
},
"query": {
"type": "string"
},
"series": {
"type": "array",
"items": {
"type": "object",
"required": [
"inbox",
"first_version",
"latest_version",
"commit"
],
"properties": {
"inbox": {
"type": "string"
},
"commit": {
"type": [
"object",
"null"
],
"properties": {
"sha": {
"type": "string"
},
"subject": {
"type": [
"string",
"null"
]
},
"committed_at": {
"type": "string"
}
}
},
"subject": {
"type": "string"
},
"messages": {
"type": "integer"
},
"first_version": {
"type": "object",
"required": [
"message_id",
"files",
"lines"
],
"properties": {
"url": {
"type": "string"
},
"date": {
"type": [
"string",
"null"
]
},
"from": {
"type": [
"string",
"null"
]
},
"files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"name": {
"type": "string"
}
}
}
},
"lines": {
"type": "array",
"items": {
"type": "object",
"properties": {
"file": {
"type": "string"
},
"path": {
"type": [
"string",
"null"
]
},
"text": {
"type": "string"
}
}
}
},
"subject": {
"type": "string"
},
"version": {
"type": [
"integer",
"null"
]
},
"message_id": {
"type": "string"
}
}
},
"latest_version": {
"type": "object",
"required": [
"message_id",
"files",
"lines"
],
"properties": {
"url": {
"type": "string"
},
"date": {
"type": [
"string",
"null"
]
},
"from": {
"type": [
"string",
"null"
]
},
"files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"name": {
"type": "string"
}
}
}
},
"lines": {
"type": "array",
"items": {
"type": "object",
"properties": {
"file": {
"type": "string"
},
"path": {
"type": [
"string",
"null"
]
},
"text": {
"type": "string"
}
}
}
},
"subject": {
"type": "string"
},
"version": {
"type": [
"integer",
"null"
]
},
"message_id": {
"type": "string"
}
}
}
}
}
},
"complete": {
"type": "boolean"
},
"total_series": {
"type": "integer"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}What a person said, objected to or agreed with: rule-labelled stance sentences from their own words. author + topic ("what did Tom Lane object to in SIGFPE handling"), or message_id for one thread (every participant, or add author). Each: verbatim sentence, message_id, url, date, from, stance (opposes, concerned, supports, commits), cue, source (rule or commitfest status). Labels are a rule's guess: read the sentence. counts by stance; messages_read (max 400); complete=false when a cap or budget_ms cut it. Sentences without a cue word are not returned.
| Parameter | Type | Description |
|---|---|---|
| inbox | string | One list (default every list) |
| since | string | From (YYYY[-MM[-DD]] or 2w / 6m / 1y ago) |
| topic | string | Words or a question |
| until | string | Before (same forms) |
| author | string | Name, address or hash:<8 hex> |
| budget_ms | number | ms, 100-15000, default 3000 |
| message_id | string | Any message of the thread |
{
"name": "said",
"title": "Said",
"description": "What a person said, objected to or agreed with: rule-labelled stance sentences from their own words. author + topic (\"what did Tom Lane object to in SIGFPE handling\"), or message_id for one thread (every participant, or add author). Each: verbatim sentence, message_id, url, date, from, stance (opposes, concerned, supports, commits), cue, source (rule or commitfest status). Labels are a rule's guess: read the sentence. counts by stance; messages_read (max 400); complete=false when a cap or budget_ms cut it. Sentences without a cue word are not returned.",
"inputSchema": {
"type": "object",
"properties": {
"inbox": {
"type": "string",
"description": "One list (default every list)"
},
"since": {
"type": "string",
"description": "From (YYYY[-MM[-DD]] or 2w / 6m / 1y ago)"
},
"topic": {
"type": "string",
"description": "Words or a question"
},
"until": {
"type": "string",
"description": "Before (same forms)"
},
"author": {
"type": "string",
"description": "Name, address or hash:<8 hex>"
},
"budget_ms": {
"type": "number",
"description": "ms, 100-15000, default 3000"
},
"message_id": {
"type": "string",
"description": "Any message of the thread"
}
}
},
"outputSchema": {
"type": "object",
"required": [
"messages_read",
"complete",
"counts",
"threads"
],
"properties": {
"note": {
"type": [
"string",
"null"
],
"description": "Why the answer is not what was asked for: the threads were chosen by topic because the author-filtered search found nothing or ran out of time."
},
"inbox": {},
"topic": {
"type": [
"string",
"null"
]
},
"counts": {
"type": "object",
"properties": {
"commits": {
"type": "integer"
},
"opposes": {
"type": "integer"
},
"supports": {
"type": "integer"
},
"concerned": {
"type": "integer"
}
}
},
"people": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"properties": {
"hash": {
"type": "string"
},
"name": {
"type": "string"
}
}
}
},
"person": {
"type": [
"string",
"null"
]
},
"thread": {
"type": [
"string",
"null"
]
},
"threads": {
"type": "array",
"items": {
"type": "object",
"properties": {
"inbox": {
"type": "string"
},
"subject": {
"type": [
"string",
"null"
]
},
"sentences": {
"type": "array",
"items": {
"type": "object",
"required": [
"message_id",
"url",
"stance",
"cue",
"source",
"sentence"
],
"properties": {
"cue": {
"type": "string"
},
"url": {
"type": "string"
},
"date": {
"type": [
"string",
"null"
]
},
"from": {
"type": [
"string",
"null"
]
},
"source": {
"enum": [
"rule",
"commitfest"
],
"type": "string"
},
"stance": {
"enum": [
"opposes",
"concerned",
"supports",
"commits"
],
"type": "string"
},
"sentence": {
"type": "string"
},
"message_id": {
"type": "string"
}
}
}
},
"thread_id": {
"type": [
"integer",
"null"
]
},
"stance_sentences": {
"type": "integer"
}
}
}
},
"complete": {
"type": "boolean"
},
"how_to_read": {
"type": "string"
},
"messages_read": {
"type": "integer"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}The PostgreSQL agent skills published here: name, description, SKILL.md uri, files. Read one with load_skill.
No parameters.
{
"name": "list_skills",
"title": "List Skills",
"description": "The PostgreSQL agent skills published here: name, description, SKILL.md uri, files. Read one with load_skill.",
"inputSchema": {
"type": "object",
"properties": {}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}Read a skill: name gives SKILL.md and its file list; name + file one file; uri any skill:// document.
| Parameter | Type | Description |
|---|---|---|
| uri | string | Any skill:// uri (instead of name) |
| file | string | Another file of that skill, as load_skill lists it |
| name | string | From list_skills, e.g. postgres-developer |
{
"name": "load_skill",
"title": "Load Skill",
"description": "Read a skill: name gives SKILL.md and its file list; name + file one file; uri any skill:// document.",
"inputSchema": {
"type": "object",
"properties": {
"uri": {
"type": "string",
"description": "Any skill:// uri (instead of name)"
},
"file": {
"type": "string",
"description": "Another file of that skill, as load_skill lists it"
},
"name": {
"type": "string",
"description": "From list_skills, e.g. postgres-developer"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}C functions, macros, types and variables by name in HEAD (BM25, then fuzzy). Each: qualified_name, name, kind, language, file, start_line, end_line.
| Parameter | Type | Description |
|---|---|---|
| kind | string | function, struct, enum, ... |
| limit | number | 1-200, default 50 |
| query * | string | Name, partial name or keyword |
| language | string | c, cpp, go, python, rust, ... |
| repository | string | Default postgres; several comma-separated |
{
"name": "search_symbols",
"title": "Search Symbols",
"description": "C functions, macros, types and variables by name in HEAD (BM25, then fuzzy). Each: qualified_name, name, kind, language, file, start_line, end_line.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"kind": {
"type": "string",
"description": "function, struct, enum, ..."
},
"limit": {
"type": "number",
"description": "1-200, default 50"
},
"query": {
"type": "string",
"description": "Name, partial name or keyword"
},
"language": {
"type": "string",
"description": "c, cpp, go, python, rust, ..."
},
"repository": {
"type": "string",
"description": "Default postgres; several comma-separated"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Full-text search of wiki.postgresql.org, current text unless history=true (per page its latest matching revision: rev_id, revision_url, author, comment, timestamp, is_current, matches). Operators as in search. A commit SHA returns the pages citing it.
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-50, default 20 |
| query * | string | |
| since | string | With history: revisions at or after (YYYY-MM-DD or ISO-8601) |
| until | string | With history: revisions before the end of this date |
| history | boolean | Default false |
{
"name": "search_wiki",
"title": "Search Wiki",
"description": "Full-text search of wiki.postgresql.org, current text unless history=true (per page its latest matching revision: rev_id, revision_url, author, comment, timestamp, is_current, matches). Operators as in search. A commit SHA returns the pages citing it.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "number",
"description": "1-50, default 20"
},
"query": {
"type": "string"
},
"since": {
"type": "string",
"description": "With history: revisions at or after (YYYY-MM-DD or ISO-8601)"
},
"until": {
"type": "string",
"description": "With history: revisions before the end of this date"
},
"history": {
"type": "boolean",
"description": "Default false"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Mail by meaning (embeddings), every list unless inbox narrows it; each result has inbox and an own-words excerpt.
| Parameter | Type | Description |
|---|---|---|
| inbox | string | all (default), a list, or several comma-separated |
| limit | number | 1-50, default 20 |
| query * | string | Natural language |
{
"name": "semantic_search",
"title": "Semantic Search",
"description": "Mail by meaning (embeddings), every list unless inbox narrows it; each result has inbox and an own-words excerpt.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"inbox": {
"type": "string",
"description": "all (default), a list, or several comma-separated"
},
"limit": {
"type": "number",
"description": "1-50, default 20"
},
"query": {
"type": "string",
"description": "Natural language"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Code symbols by meaning. Needs embeddings.
| Parameter | Type | Description |
|---|---|---|
| limit | number | 1-50, default 20 |
| query * | string | Natural language |
| repository | string |
{
"name": "semantic_search_code",
"title": "Semantic Search Code",
"description": "Code symbols by meaning. Needs embeddings.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "number",
"description": "1-50, default 20"
},
"query": {
"type": "string",
"description": "Natural language"
},
"repository": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}A file's symbols in line order.
| Parameter | Type | Description |
|---|---|---|
| path * | string | |
| repository | string |
{
"name": "symbols_in_file",
"title": "Symbols in File",
"description": "A file's symbols in line order.",
"inputSchema": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string"
},
"repository": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Regex search of the CURRENT source only (HEAD), like git grep -E (^ $ per line). Files with repo_name, file_path, line_no, snippet. Other commits or history: code_search match=regex.
| Parameter | Type | Description |
|---|---|---|
| limit | number | Files, 1-500, default 50 |
| query * | string | POSIX extended regex |
| path_glob | string | SQL LIKE on the path, e.g. "%/src/backend/%.c" |
| repository | string | Exact repository name (default every repository) |
{
"name": "regex_search_code",
"title": "Regex Search Code",
"description": "Regex search of the CURRENT source only (HEAD), like git grep -E (^ $ per line). Files with repo_name, file_path, line_no, snippet. Other commits or history: code_search match=regex.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "number",
"description": "Files, 1-500, default 50"
},
"query": {
"type": "string",
"description": "POSIX extended regex"
},
"path_glob": {
"type": "string",
"description": "SQL LIKE on the path, e.g. \"%/src/backend/%.c\""
},
"repository": {
"type": "string",
"description": "Exact repository name (default every repository)"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Literal search of the CURRENT source only (HEAD), like git grep -F. Files with repo_name, file_path, line_no, snippet. Other commits or history: code_search.
| Parameter | Type | Description |
|---|---|---|
| limit | number | Files, 1-500, default 50 |
| query * | string | Literal text (regex characters are escaped) |
| repository | string | Default every repository |
| case_sensitive | boolean | Default true (false = git grep -i) |
{
"name": "grep_repository",
"title": "Grep Repository",
"description": "Literal search of the CURRENT source only (HEAD), like git grep -F. Files with repo_name, file_path, line_no, snippet. Other commits or history: code_search.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "number",
"description": "Files, 1-500, default 50"
},
"query": {
"type": "string",
"description": "Literal text (regex characters are escaped)"
},
"repository": {
"type": "string",
"description": "Default every repository"
},
"case_sensitive": {
"type": "boolean",
"description": "Default true (false = git grep -i)"
}
}
},
"annotations": {
"readOnlyHint": true
}
}A literal in HEAD source, only inside "strings", after // or /* comments, or anywhere.
| Parameter | Type | Description |
|---|---|---|
| kind | string | all (default), strings or comments |
| limit | number | Files, 1-500, default 50 |
| query * | string | Literal text (regex characters are escaped) |
| repository | string | Default every repository |
{
"name": "find_string_literals",
"title": "Find String Literals",
"description": "A literal in HEAD source, only inside \"strings\", after // or /* comments, or anywhere.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"kind": {
"type": "string",
"description": "all (default), strings or comments"
},
"limit": {
"type": "number",
"description": "Files, 1-500, default 50"
},
"query": {
"type": "string",
"description": "Literal text (regex characters are escaped)"
},
"repository": {
"type": "string",
"description": "Default every repository"
}
}
},
"annotations": {
"readOnlyHint": true
}
}PostgreSQL events in a date window: conferences, meetups, online events, CfP and registration deadlines, talks (speakers with person hash), releases, commitfests. Source: PostgreSQL Event Calendar (Andreas Scherbaum).
| Parameter | Type | Description |
|---|---|---|
| to | string | End, YYYY-MM-DD (default from + days) |
| days | integer | Window, days (default 90, max 730) |
| from | string | Start, YYYY-MM-DD (default today) |
| kind | string | event, cfp, deadline, session (a talk), release or signal |
| limit | integer | Default 50, max 500 |
| where | string | Country, region (europe, north-america, ...), series slug, or online |
| offset | integer | |
| person | string | Person hash (8 hex): their talks only |
| series | string | e.g. pgconf-eu, pgconf-dev, posette, talking-postgres |
| speaker | string | Speaker-name substring |
Every calendar feed (iCalendar URL) with event counts: all, regions, countries, series, release cycle, teams, organisations.
No parameters.
{
"name": "calendar_feeds",
"title": "Calendar Feeds",
"description": "Every calendar feed (iCalendar URL) with event counts: all, regions, countries, series, release cycle, teams, organisations.",
"inputSchema": {
"type": "object",
"properties": {}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}Several calendar feeds (from calendar_feeds; 1-200) as one subscription: hash, feeds, https and webcal urls; stable per selection.
| Parameter | Type | Description |
|---|---|---|
| feeds * | array | |
| excludes | array | Feeds to subtract |
{
"name": "combine_calendars",
"title": "Combine Calendars",
"description": "Several calendar feeds (from calendar_feeds; 1-200) as one subscription: hash, feeds, https and webcal urls; stable per selection.",
"inputSchema": {
"type": "object",
"required": [
"feeds"
],
"properties": {
"feeds": {
"type": "array",
"items": {
"type": "string"
}
},
"excludes": {
"type": "array",
"items": {
"type": "string"
},
"description": "Feeds to subtract"
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}What relates to one stored item. ref: Message-ID or URL, commit SHA or URL, docs URL or page, wiki URL or title, commitfest URL, CVE-YYYY-NNNNN, or feature:<words>. Related threads, commits (releases, reverted_by), docs, wiki pages, entries and people, each with why, strongest first; timeline (status and dated events) for a commit, thread, entry or feature; graph (design-history facts with confidence) for features and entries. ~3 s budget (late parts in timed_out). Same as GET /api/v2/related.
| Parameter | Type | Description |
|---|---|---|
| ref * | string | |
| kinds | array | |
| limit | number | Per kind, 1-25, default 5 |
| version | string | Docs version, default current |
| timeline | boolean | Default true |
{
"name": "cross_reference",
"title": "Cross Reference",
"description": "What relates to one stored item. ref: Message-ID or URL, commit SHA or URL, docs URL or page, wiki URL or title, commitfest URL, CVE-YYYY-NNNNN, or feature:<words>. Related threads, commits (releases, reverted_by), docs, wiki pages, entries and people, each with why, strongest first; timeline (status and dated events) for a commit, thread, entry or feature; graph (design-history facts with confidence) for features and entries. ~3 s budget (late parts in timed_out). Same as GET /api/v2/related.",
"inputSchema": {
"type": "object",
"required": [
"ref"
],
"properties": {
"ref": {
"type": "string"
},
"kinds": {
"type": "array",
"items": {
"enum": [
"mail",
"git",
"docs",
"wiki",
"commitfest",
"people"
],
"type": "string"
}
},
"limit": {
"type": "number",
"description": "Per kind, 1-25, default 5"
},
"version": {
"type": "string",
"description": "Docs version, default current"
},
"timeline": {
"type": "boolean",
"description": "Default true"
}
}
},
"outputSchema": {
"type": "object",
"required": [
"ref",
"related"
],
"properties": {
"ref": {
"type": "object",
"properties": {
"key": {},
"url": {
"type": [
"string",
"null"
]
},
"date": {},
"kind": {
"type": "string"
},
"title": {
"type": [
"string",
"null"
]
}
}
},
"partial": {
"type": "boolean"
},
"related": {
"type": "object"
},
"took_ms": {
"type": "integer"
},
"timeline": {
"type": "object",
"required": [
"status",
"events",
"sources"
],
"properties": {
"events": {
"type": "array",
"items": {
"type": "object",
"required": [
"kind",
"date",
"what",
"source"
],
"properties": {
"sha": {
"type": "string"
},
"date": {
"type": [
"string",
"null"
]
},
"kind": {
"enum": [
"first_post",
"commitfest",
"commit",
"backpatch",
"revert"
],
"type": "string"
},
"what": {
"type": "string"
},
"branch": {
"type": "string"
},
"source": {
"type": [
"string",
"null"
]
},
"release": {
"type": [
"string",
"null"
]
}
}
}
},
"status": {
"type": "object",
"required": [
"state",
"evidence"
],
"properties": {
"state": {
"type": "string"
},
"evidence": {
"type": "array"
},
"released_in": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"sources": {
"type": "object",
"properties": {
"commits": {
"type": "array",
"items": {
"type": "string"
}
},
"threads": {
"type": "array",
"items": {
"type": "string"
}
},
"commits_cut": {
"type": "boolean"
},
"commitfest_entries": {
"type": "array",
"items": {
"type": "integer"
}
}
}
}
},
"description": "What happened to it, from git tags, commit messages and the commitfest; every event cites its source."
},
"timed_out": {
"type": "array"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}Catch up: what a person or group did, and where they were named, in a window; newest first per kind. who: a name (fuzzy; close matches return ambiguous), email, hash:<8 hex>, team:<slug>, org:<name>, new:<window>, or a list. Kinds: waiting (one person, no topic: their open items, each with rule, priority 0-100, why, outlook, p_reply, p_more_replies; finished threads (a commit, a closed entry, a quiet thread, or a last message that only thanks or reports the work done: done_reason acknowledged / work_done) only counted in left_out unless done=show; a waiting thread whose last message laya estimates asks them nothing comes last with fold probably_not_waiting and its laya estimate), acted, mail_from, mail_to_cc, mail_mention, git_author, git_credit, git_mention, wiki_edit, wiki_mention, commitfest, calendar, roster. Names, hashes and urls, never addresses. ~4 s budget (late kinds in timed_out). Same as GET /api/v2/activity.
| Parameter | Type | Description |
|---|---|---|
| who * | any | |
| done | string | Finished waiting threads: hide (default) or show |
| kinds | array | |
| limit | number | Per kind, 1-100, default 20 |
| since | string | Date, 2w, today, pg19 or all (default 14 days ago) |
| topic | string | Narrows every kind by hybrid search, e.g. NUMA |
| until | string | Default now |
| during | string |
The postgres source at any commit, or across history (code-history index, byte-exact). match: literal (default), regex (^ $ per line) or identifier (all spellings). Results name sha and ref. history (all, <rev>, A..B): every matching line any commit had, with the commits that added and removed it. complete=false: totals are lower bounds.
| Parameter | Type | Description |
|---|---|---|
| limit | number | Per page, 1-2000, default 100 |
| match | string | Default literal |
| paths | array | Directories or globs, e.g. src/backend/storage |
| query * | string | Text, regex or identifier |
| commit | string | Any commit form, a release (17.2) or <ref>@YYYY-MM-DD; default newest release branch |
| offset | number | Results to skip (paging) |
| output | string | Default lines |
| context | number | Context lines, 0-20, default 0 |
| exclude | array | Globs to drop |
| history | string | all, a rev, or A..B |
| include |
A postgres file at any commit (code-history index): numbered lines, at most 2000 a call (start_line/end_line); total_lines, complete; binary files return metadata.
| Parameter | Type | Description |
|---|---|---|
| path * | string | From the root, e.g. src/backend/access/transam/xlog.c |
| commit | string | Any commit form, a release (17.2) or <ref>@YYYY-MM-DD; default newest release branch |
| end_line | number | Default start_line + 1999 |
| repository | string | Only postgres |
| start_line | number | Default 1 |
{
"name": "read_file",
"title": "Read File",
"description": "A postgres file at any commit (code-history index): numbered lines, at most 2000 a call (start_line/end_line); total_lines, complete; binary files return metadata.",
"inputSchema": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
"description": "From the root, e.g. src/backend/access/transam/xlog.c"
},
"commit": {
"type": "string",
"description": "Any commit form, a release (17.2) or <ref>@YYYY-MM-DD; default newest release branch"
},
"end_line": {
"type": "number",
"description": "Default start_line + 1999"
},
"repository": {
"type": "string",
"description": "Only postgres"
},
"start_line": {
"type": "number",
"description": "Default 1"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}Files under a directory at any commit (code-history index) with line counts; depth folds deeper paths; glob filters.
| Parameter | Type | Description |
|---|---|---|
| glob | string | e.g. *.dat, src/include/catalog/*.h |
| path | string | Directory (default the root) |
| depth | number | Levels below path (default all) |
| limit | number | 1-5000, default 500 |
| commit | string | Any commit form, a release (17.2) or <ref>@YYYY-MM-DD; default newest release branch |
| repository | string | Only postgres |
{
"name": "list_files",
"title": "List Files",
"description": "Files under a directory at any commit (code-history index) with line counts; depth folds deeper paths; glob filters.",
"inputSchema": {
"type": "object",
"properties": {
"glob": {
"type": "string",
"description": "e.g. *.dat, src/include/catalog/*.h"
},
"path": {
"type": "string",
"description": "Directory (default the root)"
},
"depth": {
"type": "number",
"description": "Levels below path (default all)"
},
"limit": {
"type": "number",
"description": "1-5000, default 500"
},
"commit": {
"type": "string",
"description": "Any commit form, a release (17.2) or <ref>@YYYY-MM-DD; default newest release branch"
},
"repository": {
"type": "string",
"description": "Only postgres"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}Per-line blame of a postgres file at any commit, as git blame. ignore_revs skips pgindent commits (.git-blame-ignore-revs); reverse adds the commit that removed each line. Max 2000 lines a call. proposals=true: per line the earliest posted patch that added it. Not git_blame (a file's commit list).
| Parameter | Type | Description |
|---|---|---|
| path * | string | |
| commit | string | Any commit form, a release (17.2) or <ref>@YYYY-MM-DD; default newest release branch |
| reverse | boolean | Default false |
| end_line | number | Default start_line + 1999 |
| proposals | boolean | Default false |
| repository | string | Only postgres |
| start_line | number | Default 1 |
| ignore_revs | boolean | Default true |
{
"name": "blame",
"title": "Blame",
"description": "Per-line blame of a postgres file at any commit, as git blame. ignore_revs skips pgindent commits (.git-blame-ignore-revs); reverse adds the commit that removed each line. Max 2000 lines a call. proposals=true: per line the earliest posted patch that added it. Not git_blame (a file's commit list).",
"inputSchema": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string"
},
"commit": {
"type": "string",
"description": "Any commit form, a release (17.2) or <ref>@YYYY-MM-DD; default newest release branch"
},
"reverse": {
"type": "boolean",
"description": "Default false"
},
"end_line": {
"type": "number",
"description": "Default start_line + 1999"
},
"proposals": {
"type": "boolean",
"description": "Default false"
},
"repository": {
"type": "string",
"description": "Only postgres"
},
"start_line": {
"type": "number",
"description": "Default 1"
},
"ignore_revs": {
"type": "boolean",
"description": "Default true"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}One postgres commit (code-history index): message, trailers (names only), Discussion threads, back-patch siblings, first_releases (per branch: sha, release such as 14.23 or null, first_version, shipped), reverted_by, reverts, posted_patch (the Discussion patch mail matching it best, score 0-1, or null), files with line counts, and the diff (max 3000 lines; diff_complete).
| Parameter | Type | Description |
|---|---|---|
| diff | boolean | Include the diff (default true) |
| paths | array | Only diff files under these paths |
| commit * | string | |
| context | number | Diff context lines (0-1000, default 3) |
| repository | string | Only postgres |
{
"name": "get_commit",
"title": "Get Commit",
"description": "One postgres commit (code-history index): message, trailers (names only), Discussion threads, back-patch siblings, first_releases (per branch: sha, release such as 14.23 or null, first_version, shipped), reverted_by, reverts, posted_patch (the Discussion patch mail matching it best, score 0-1, or null), files with line counts, and the diff (max 3000 lines; diff_complete).",
"inputSchema": {
"type": "object",
"required": [
"commit"
],
"properties": {
"diff": {
"type": "boolean",
"description": "Include the diff (default true)"
},
"paths": {
"type": "array",
"items": {
"type": "string"
},
"description": "Only diff files under these paths"
},
"commit": {
"type": "string"
},
"context": {
"type": "number",
"description": "Diff context lines (0-1000, default 3)"
},
"repository": {
"type": "string",
"description": "Only postgres"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}Postgres commits (code-history index), newest first, like git log. range: a rev (its first-parent line), A..B, or all (default: every branch; each commit once, branches = where its change landed). Filters: message, author (also credit trailers), paths, since/until, changed_lines (-G), occurrences (-S). complete=false when -G/-S matched over 300,000 lines.
| Parameter | Type | Description |
|---|---|---|
| limit | number | Commits (1-200, default 30) |
| paths | array | Path prefixes the commit touched |
| range | string | A rev, A..B, or all (default) |
| since | string | YYYY-MM-DD (committed on or after) |
| until | string | YYYY-MM-DD (committed before) |
| author | string | Regex |
| offset | number | Commits to skip |
| message | string | Regex over the commit message |
| budget_ms | number | ms, 100-15000, default 10000 |
| repository | string | Only postgres |
| occurrences | string |
What this server knows and which tool reads it: kinds of fact with attributes and counts, the design-history graph's relations, sources and confidence. Same as GET /api/v2/ontology.
No parameters.
{
"name": "get_ontology",
"title": "Get Ontology",
"description": "What this server knows and which tool reads it: kinds of fact with attributes and counts, the design-history graph's relations, sources and confidence. Same as GET /api/v2/ontology.",
"inputSchema": {
"type": "object",
"properties": {}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}pg.ddx.io is a searchable archive of the PostgreSQL project: every mailing list since 1991 (85 lists, 2.0M messages), the full git history of postgres and ecosystem repositories, the docs for each release, the wiki, Discord, the buildfarm, cfbot and the commitfest, each linked to the others. Use it to research PostgreSQL internals and extension development, review patches, find prior art, and trace design decisions to their discussion. Getting started: - A question: `retrieve_context` (cited passages within a token budget, every list). For "why was X added/changed/reverted" it may also return `commit_context`: the commit message and sentences from its discussion; `get_commit` / `commit_history` give the full commit. What did X say or object to (in a thread): `said`. Mail search: `hybrid_search` (questions) or `search` (exact words); both cover every list unless `inbox` narrows them, and each hit names its inbox. Read with `get_thread` / `get_message` (decoded text, quotes removed by default; `full_text` for everything). - Code and commits: `git_search` / `git_log` (each commit has its 40-hex `sha`), `commit_history` (the commit's message, thread, people, commitfest entry), `git_show_file` at any SHA, branch, tag or major version (`17`, `9.6`), `grep_repository` / `regex_search_code` (HEAD; ^ and $ are per line). - Anything stored (message, commit, docs page, wiki page, commitfest entry, CVE): `cross_reference` finds what relates to it. - Patches in flight: `search_commitfest`, `get_entry`, `find_failing_patches`, `commit_buildfarm_status`. People: `whats_new`, `get_contributor`. - Which posted patch carries a line, first and latest version, and the commit that landed it: `search_patch_lines`. - `list_sources` gives the list and repository names tools accept. - No Skills extension or resources/read: `list_skills`, then `load_skill`. Skills: this server publishes PostgreSQL agent skills through the Skills extension (`skills/list`, then `resources/read` a skill's SKILL.md): `postgres/postgres-developer` (patches to core and extensions), `postgres/postgres-user`, `postgres-dba`, `postgres-overseer`, `postgres-replication`, `postgres-triage`, `postgres-best-practices` (44 rule files), `tooling/pg-ddx-research` (how to research with this server), `tooling/pg-benchmark-rigor` and the benchmark skills it builds on. `resources/list` also lists the supporting documents: how the community works (`skill://community/...`: review standards, patch submission, communication norms, coding and commit conventions, committers' voices), task recipes (`skill://generic/workflows/...`: submit-patch, deep-git-blame, buildfarm-blame, rebase-feature-branch, write-an-extension, ...), worked examples (`skill://examples/...`) and `skill://steering/postgresql.md`. Common tasks are also PROMPTS (`prompts/list`). Arguments mean the same in every tool. A commit (`commit`, `from_commit`, `to_commit`; "any commit form") is a SHA or 7+ hex prefix, a branch, a tag, a major version (`17`, `9.6`), `<ref>~N`, a commit_id from another tool, or a commit URL (gitweb, git.postgresql.org, GitHub, pg.ddx.io); an unknown name is an error, never a silent HEAD. A `message_id` is a Message-ID, with or without <>, or a message URL (postgr.es/m/, postgresql.org/message-id/, pg.ddx.io /m/ or /id/). `repository` defaults to postgres. `inbox`: the mail searches read every list unless it names some; a tool reading one message finds its list; other mail tools default to pgsql-hackers. `limit` and `offset` page; `since`/`until` bound dates. A search's `budget_ms` caps its time: complete=false when it ran out or a total is a lower bound. Searches echo `operators` applied, `warnings` for dropped ones and `skipped` when they leave a source out; a query that cannot run is an error. In search, hybrid_search, retrieve_context, search_wiki and search_commitfest a query that is one commit's SHA (7-40 hex) returns what refers to that commit (`how_it_refers` on ma
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
{
"name": "hybrid_search",
"title": "Hybrid Search",
"description": "Mailing-list search, BM25 over own words and semantic, blended per thread; every list unless inbox narrows it. Up to limit threads, best first, each its best message: inbox, message_id, subject, from, date, thread_id, fused_score (0-1), similarity, excerpt. author/since/until: one sender in a date window. Takes search operators (operators, warnings, skipped report them); complete=false when out of budget_ms. A commit SHA returns the mail referring to it (how_it_refers).",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"inbox": {
"type": "string",
"description": "all (default), a list, or several comma-separated"
},
"limit": {
"type": "number",
"description": "1-50, default 20"
},
"query": {
"type": "string",
"description": "Words or a question; search's operators"
},
"since": {
"type": "string",
"description": "On or after: YYYY[-MM[-DD]], ISO, or 2w/6m/1y ago"
},
"until": {
"type": "string",
"description": "Before (exclusive), same forms as since"
},
"author": {
"type": "string",
"description": "Name, address or hash:<8 hex>"
},
"budget_ms": {
"type": "number",
"description": "ms, 100-15000, default 4500"
},
"keyword_weight": {
"type": "number",
"description": "0.0-1.0, default 0.65; raise for exact identifiers"
}
}
},
"outputSchema": {
"type": "object",
"required": [
"query",
"total",
"results"
],
"properties": {
"inbox": {},
"query": {
"type": "string"
},
"total": {
"type": "integer"
},
"filter": {
"type": [
"object",
"null"
],
"properties": {
"since": {
"type": [
"string",
"null"
]
},
"until": {
"type": [
"string",
"null"
]
},
"author": {
"type": [
"array",
"null"
]
}
},
"description": "The author / date filter applied (names and page hashes, never addresses)."
},
"results": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"required": [
"message_id"
],
"properties": {
"date": {
"type": "string"
},
"from": {
"type": "string"
},
"inbox": {
"type": [
"string",
"null"
]
},
"excerpt": {
"type": "string"
},
"subject": {
"type": "string"
},
"thread_id": {
"type": [
"integer",
"null"
]
},
"message_id": {
"type": "string"
},
"similarity": {
"type": "number"
},
"fused_score": {
"type": "number"
}
}
}
},
"skipped": {
"type": "string",
"description": "Why the query's operators leave this source out (no results then)."
},
"complete": {
"type": "boolean",
"description": "false when the search ran out of budget_ms or a total is a lower bound."
},
"warnings": {
"type": "array",
"items": {
"type": "string"
},
"description": "Operators the query could not use and left out, and the query-length cut."
},
"operators": {
"type": "array",
"items": {
"type": "object",
"required": [
"op",
"value",
"negated"
],
"properties": {
"op": {
"type": "string"
},
"field": {
"type": "string"
},
"value": {
"type": "string"
},
"negated": {
"type": "boolean"
}
}
},
"description": "The search operators and regexes the query applied (absent when it has none)."
},
"keyword_weight": {
"type": "number"
}
}
},
"annotations": {
"readOnlyHint": true
}
}{
"name": "search",
"title": "Search",
"description": "Keyword search of mail (BM25 over subject, sender, own words), every list unless inbox narrows it. Messages best first (collapse_threads: one per thread): inbox, message_id, subject, from, date, thread_id, excerpt; total, has_more. For exact words; questions: hybrid_search. complete=false: out of budget_ms or total is a lower bound. define:<term> adds definition.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"inbox": {
"type": "string",
"description": "all (default), a list, or several comma-separated"
},
"limit": {
"type": "number",
"description": "1-200, default 50"
},
"query": {
"type": "string",
"description": "Words. Operators: after:/before:, d:A..B, site:, from:, intitle:, intext:, to:/cc:, has:patch, link:, /regex/, -op; alone: newest first"
},
"since": {
"type": "string",
"description": "On or after: YYYY[-MM[-DD]], ISO, or 2w/6m/1y ago"
},
"until": {
"type": "string",
"description": "Before (exclusive), same forms as since"
},
"author": {
"type": "string",
"description": "Name, address or hash:<8 hex>"
},
"offset": {
"type": "number"
},
"budget_ms": {
"type": "number",
"description": "ms, 100-15000, default 4500"
},
"collapse_threads": {
"type": "boolean",
"description": "One hit per thread, the best (default false)"
}
}
},
"annotations": {
"readOnlyHint": true
}
}{
"name": "upcoming_events",
"title": "Upcoming Events",
"description": "PostgreSQL events in a date window: conferences, meetups, online events, CfP and registration deadlines, talks (speakers with person hash), releases, commitfests. Source: PostgreSQL Event Calendar (Andreas Scherbaum).",
"inputSchema": {
"type": "object",
"properties": {
"to": {
"type": "string",
"description": "End, YYYY-MM-DD (default from + days)"
},
"days": {
"type": "integer",
"description": "Window, days (default 90, max 730)"
},
"from": {
"type": "string",
"description": "Start, YYYY-MM-DD (default today)"
},
"kind": {
"type": "string",
"description": "event, cfp, deadline, session (a talk), release or signal"
},
"limit": {
"type": "integer",
"description": "Default 50, max 500"
},
"where": {
"type": "string",
"description": "Country, region (europe, north-america, ...), series slug, or online"
},
"offset": {
"type": "integer"
},
"person": {
"type": "string",
"description": "Person hash (8 hex): their talks only"
},
"series": {
"type": "string",
"description": "e.g. pgconf-eu, pgconf-dev, posette, talking-postgres"
},
"speaker": {
"type": "string",
"description": "Speaker-name substring"
}
}
},
"annotations": {
"readOnlyHint": true
}
}| Calendar event uid or url, or pg19: its dates |
{
"name": "whats_new",
"title": "Whats New",
"description": "Catch up: what a person or group did, and where they were named, in a window; newest first per kind. who: a name (fuzzy; close matches return ambiguous), email, hash:<8 hex>, team:<slug>, org:<name>, new:<window>, or a list. Kinds: waiting (one person, no topic: their open items, each with rule, priority 0-100, why, outlook, p_reply, p_more_replies; finished threads (a commit, a closed entry, a quiet thread, or a last message that only thanks or reports the work done: done_reason acknowledged / work_done) only counted in left_out unless done=show; a waiting thread whose last message laya estimates asks them nothing comes last with fold probably_not_waiting and its laya estimate), acted, mail_from, mail_to_cc, mail_mention, git_author, git_credit, git_mention, wiki_edit, wiki_mention, commitfest, calendar, roster. Names, hashes and urls, never addresses. ~4 s budget (late kinds in timed_out). Same as GET /api/v2/activity.",
"inputSchema": {
"type": "object",
"required": [
"who"
],
"properties": {
"who": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"done": {
"enum": [
"hide",
"show"
],
"type": "string",
"description": "Finished waiting threads: hide (default) or show"
},
"kinds": {
"type": "array",
"items": {
"enum": [
"waiting",
"acted",
"mail_from",
"mail_to_cc",
"mail_mention",
"git_author",
"git_credit",
"git_mention",
"wiki_edit",
"wiki_mention",
"commitfest",
"calendar",
"roster"
],
"type": "string"
}
},
"limit": {
"type": "number",
"description": "Per kind, 1-100, default 20"
},
"since": {
"type": "string",
"description": "Date, 2w, today, pg19 or all (default 14 days ago)"
},
"topic": {
"type": "string",
"description": "Narrows every kind by hybrid search, e.g. NUMA"
},
"until": {
"type": "string",
"description": "Default now"
},
"during": {
"type": "string",
"description": "Calendar event uid or url, or pg19: its dates"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"who": {
"type": "object"
},
"hint": {
"type": "string"
},
"input": {},
"items": {
"type": "object",
"description": "Items by kind (mail_from, git_author, commitfest, waiting, ...), each an array.",
"additionalProperties": {
"type": "array"
}
},
"topic": {
"type": [
"string",
"null"
]
},
"counts": {
"type": "object",
"description": "How many items of each kind were found.",
"additionalProperties": {
"type": "integer"
}
},
"failed": {
"type": "array"
},
"window": {
"type": "object"
},
"partial": {
"type": "boolean"
},
"skipped": {
"type": "array"
},
"took_ms": {
"type": "integer"
},
"ambiguous": {
"type": "array"
},
"timed_out": {
"type": "array"
},
"truncated": {
"type": "boolean"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}| array |
| Globs to keep, e.g. *.c, src/include/**/*.h |
| budget_ms | number | ms, 100-15000, default 10000 |
| repository | string | Only postgres |
| case_sensitive | boolean | Default true |
{
"name": "code_search",
"title": "Code Search",
"description": "The postgres source at any commit, or across history (code-history index, byte-exact). match: literal (default), regex (^ $ per line) or identifier (all spellings). Results name sha and ref. history (all, <rev>, A..B): every matching line any commit had, with the commits that added and removed it. complete=false: totals are lower bounds.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "number",
"description": "Per page, 1-2000, default 100"
},
"match": {
"enum": [
"literal",
"regex",
"identifier"
],
"type": "string",
"description": "Default literal"
},
"paths": {
"type": "array",
"items": {
"type": "string"
},
"description": "Directories or globs, e.g. src/backend/storage"
},
"query": {
"type": "string",
"description": "Text, regex or identifier"
},
"commit": {
"type": "string",
"description": "Any commit form, a release (17.2) or <ref>@YYYY-MM-DD; default newest release branch"
},
"offset": {
"type": "number",
"description": "Results to skip (paging)"
},
"output": {
"enum": [
"lines",
"files",
"counts"
],
"type": "string",
"description": "Default lines"
},
"context": {
"type": "number",
"description": "Context lines, 0-20, default 0"
},
"exclude": {
"type": "array",
"items": {
"type": "string"
},
"description": "Globs to drop"
},
"history": {
"type": "string",
"description": "all, a rev, or A..B"
},
"include": {
"type": "array",
"items": {
"type": "string"
},
"description": "Globs to keep, e.g. *.c, src/include/**/*.h"
},
"budget_ms": {
"type": "number",
"description": "ms, 100-15000, default 10000"
},
"repository": {
"type": "string",
"description": "Only postgres"
},
"case_sensitive": {
"type": "boolean",
"description": "Default true"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}| String (git log -S) |
| changed_lines | string | Regex (git log -G) |
{
"name": "search_commits",
"title": "Search Commits",
"description": "Postgres commits (code-history index), newest first, like git log. range: a rev (its first-parent line), A..B, or all (default: every branch; each commit once, branches = where its change landed). Filters: message, author (also credit trailers), paths, since/until, changed_lines (-G), occurrences (-S). complete=false when -G/-S matched over 300,000 lines.",
"inputSchema": {
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "Commits (1-200, default 30)"
},
"paths": {
"type": "array",
"items": {
"type": "string"
},
"description": "Path prefixes the commit touched"
},
"range": {
"type": "string",
"description": "A rev, A..B, or all (default)"
},
"since": {
"type": "string",
"description": "YYYY-MM-DD (committed on or after)"
},
"until": {
"type": "string",
"description": "YYYY-MM-DD (committed before)"
},
"author": {
"type": "string",
"description": "Regex"
},
"offset": {
"type": "number",
"description": "Commits to skip"
},
"message": {
"type": "string",
"description": "Regex over the commit message"
},
"budget_ms": {
"type": "number",
"description": "ms, 100-15000, default 10000"
},
"repository": {
"type": "string",
"description": "Only postgres"
},
"occurrences": {
"type": "string",
"description": "String (git log -S)"
},
"changed_lines": {
"type": "string",
"description": "Regex (git log -G)"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}