pg.ddx.io

MCP tool reference

Every tool the pg.ddx.io MCP server offers, grouped by what you are trying to do. Generated from the server's own tool list, so it matches what tools/list returns.

Endpoint: https://pg.ddx.io/mcp (MCP Streamable HTTP, JSON-RPC 2.0). No key, no account. For how to connect a client and a good retrieval loop, see the home page.

Conventions that apply to every tool

109 tools.

Groups

Mail: search and read

search-regex

Full-text search across mailing list messages using POSIX regex patterns. Supports edit-distance fuzzy matching via the `k` parameter (0 = exact regex, >=1 = up to k insertions/deletions/substitutions per match). Same prefix syntax as `search`: s:subject f:from t:to d:2024-01..2025-01 b:body_text

argumenttypemeaning
querystringrequiredPOSIX regex pattern
collapse_threadsbooleanoptionalDeduplicate results to one per thread (default false)
inboxstringoptionalMailing list name, e.g. pgsql-general. Defaults to pgsql-hackers when omitted. Aliases: list, inbox_name.
knumberoptionalEdit distance for fuzzy match (0-5, default 0)
limitnumberoptionalMaximum results to return (1-200, default 50)
offsetnumberoptionalOffset for pagination

get_message

Get a message by Message-ID, including headers, body, and attachment metadata. Pass body_only=true to receive just the first text/plain MIME part as 'body' (headers, HTML alternatives, and base64 attachments stripped); use get_raw_message for the full RFC822 envelope.

argumenttypemeaning
message_idstringrequiredMessage-ID (with or without angle brackets)
body_onlybooleanoptionalReturn only the first text/plain MIME part as 'body' instead of the full multipart MIME envelope (default false)
inboxstringoptionalMailing list name, e.g. pgsql-general. Defaults to pgsql-hackers when omitted. Aliases: list, inbox_name.
include_bodybooleanoptionalInclude message body (default true)

get_thread

Messages in a thread, found by any Message-ID in it. PAGED: returns up to 20 messages per call (limit, max 500) with has_more / next_offset; bodies are capped at 4000 characters each (max_body_chars; 0 = no cap, body_truncated marks a cut). Pass include_bodies=false for a cheap outline of the whole thread first, then fetch the messages you need with get_message.

argumenttypemeaning
message_idstringrequiredMessage-ID of any message in the thread
inboxstringoptionalMailing list name, e.g. pgsql-general. Defaults to pgsql-hackers when omitted. Aliases: list, inbox_name.
include_bodiesbooleanoptionalInclude message bodies (default true). false returns an outline: headers only.
limitnumberoptionalMessages per page (1-500, default 20).
max_body_charsnumberoptionalCap each body at this many characters (default 4000; 0 = no cap).
offsetnumberoptionalSkip this many messages; use next_offset from the previous page.

get_raw_message

Get the complete raw RFC 822 email bytes for a message. Useful for agents that need to parse headers/structure themselves or forward messages.

argumenttypemeaning
message_idstringrequiredMessage-ID (with or without angle brackets)
inboxstringoptionalMailing list name, e.g. pgsql-general. Defaults to pgsql-hackers when omitted. Aliases: list, inbox_name.

get_message_headers

Get email headers as structured key/value pairs. Returns all headers or a specific header by name.

argumenttypemeaning
message_idstringrequiredMessage-ID (with or without angle brackets)
headerstringoptionalSpecific header name to retrieve (e.g. "X-Mailer"); omit to get all headers
inboxstringoptionalMailing list name, e.g. pgsql-general. Defaults to pgsql-hackers when omitted. Aliases: list, inbox_name.

get_message_references

Discover cross-references in a message. Returns explicit References/In-Reply-To headers plus any Message-IDs found in the body text, with archive lookup for each.

argumenttypemeaning
message_idstringrequiredMessage-ID (with or without angle brackets)
inboxstringoptionalMailing list name, e.g. pgsql-general. Defaults to pgsql-hackers when omitted. Aliases: list, inbox_name.

get_thread_references

Cross-reference graph for an entire thread. Collects all Message-IDs referenced in body text across all messages in the thread and resolves which other threads they point to.

argumenttypemeaning
message_idstringrequiredMessage-ID of any message in the thread
inboxstringoptionalMailing list name, e.g. pgsql-general. Defaults to pgsql-hackers when omitted. Aliases: list, inbox_name.

get_attachment

Download the content of an attachment from a message. Identify the attachment by 1-based index or filename substring match. Text attachments are returned as text; binary attachments as base64.

argumenttypemeaning
message_idstringrequiredMessage-ID (with or without angle brackets)
filenamestringoptionalSubstring to match against attachment filenames
inboxstringoptionalMailing list name, e.g. pgsql-general. Defaults to pgsql-hackers when omitted. Aliases: list, inbox_name.
indexnumberoptional1-based attachment index (from get_message attachment metadata)

find_similar_messages

Find messages similar to a given message using its embedding vector. Useful for finding related discussions or duplicate threads.

argumenttypemeaning
message_idstringrequiredMessage-ID of the message to find similar messages for
inboxstringoptionalMailing list name, e.g. pgsql-general. Defaults to pgsql-hackers when omitted. Aliases: list, inbox_name.
limitnumberoptionalMaximum results to return (1-50, default 10)

history-of

One-shot historical context for CI: given content (a diff, file path, symbol, commit subject, or feature name), return the most relevant default-branch commits, the associated mailing-list discussion (message links), and the tracked people involved (community page links). Read-only; composes git history + list search.

argumenttypemeaning
contentstringrequiredFree text: a diff/hunk, file path(s), symbol name, commit subject, feature name, or error text.
inboxstringoptionalMailing list to search for discussion (default: pgsql-hackers).
limitnumberoptionalMax items per section (default 5).
repostringoptionalTracked repo whose default branch to trace (default: postgres).

browse_by_date

Browse threads within a specific date range. Useful for exploring what was discussed during a particular time period.

argumenttypemeaning
afterstringrequiredStart date (YYYY-MM-DD or YYYYMMDD)
beforestringrequiredEnd date (YYYY-MM-DD or YYYYMMDD)
inboxstringoptionalMailing list name, e.g. pgsql-general. Defaults to pgsql-hackers when omitted. Aliases: list, inbox_name.
limitnumberoptionalMaximum threads to return (1-200, default 50)

get_patch_series

Get patch submission history for a forge pull request URL. Returns all iterations submitted to the mailing list.

argumenttypemeaning
pr_urlstringrequiredForge pull request URL

get_patch_branches

Get the git branches created from a patch series. Shows what branches were applied from email patches for code intelligence analysis.

argumenttypemeaning
pr_urlstringrequiredForge pull request URL

get_author_messages

Find messages by a specific author, optionally filtered by date range. Uses the f: (from) search prefix.

argumenttypemeaning
authorstringrequiredAuthor name or email to search for
afterstringoptionalOnly return messages after this date (YYYY-MM-DD or YYYYMMDD)
beforestringoptionalOnly return messages before this date (YYYY-MM-DD or YYYYMMDD)
inboxstringoptionalMailing list name, e.g. pgsql-general. Defaults to pgsql-hackers when omitted. Aliases: list, inbox_name.
limitnumberoptionalMaximum results to return (1-200, default 50)
offsetnumberoptionalOffset for pagination

get_contributor_history

Show all past mailing list submissions by a contributor (matched by email address or name).

argumenttypemeaning
contributorstringrequiredContributor email address or display name
limitnumberoptionalMaximum results (1-100, default 50)

search_patches

Find patch series by parsing [PATCH v2 3/7]-style subject prefixes. Returns structured patch metadata including version, sequence, total, and series grouping.

argumenttypemeaning
inboxstringoptionalMailing list name, e.g. pgsql-general. Defaults to pgsql-hackers when omitted. Aliases: list, inbox_name.
limitnumberoptionalMaximum results to return (1-100, default 50)
querystringoptionalAdditional search query to filter patches

list_threads

Browse recent threads (topic-level view). Returns thread summaries with message counts, date ranges, and latest message metadata.

argumenttypemeaning
beforenumberoptionalUnix timestamp; only return threads with last activity before this time (for pagination)
inboxstringoptionalMailing list name, e.g. pgsql-general. Defaults to pgsql-hackers when omitted. Aliases: list, inbox_name.
limitnumberoptionalMaximum threads to return (1-100, default 20)

list_recent

List recent messages from an inbox

argumenttypemeaning
inboxstringoptionalMailing list name, e.g. pgsql-general. Defaults to pgsql-hackers when omitted. Aliases: list, inbox_name.
limitnumberoptionalMaximum messages to return (1-200, default 25)

get_new_messages

Return messages newer than a given article number cursor, enabling agents to poll for new messages without re-scanning. Use after=0 for the first call, then use the returned last_article_num as the cursor for subsequent calls.

argumenttypemeaning
afternumberrequiredArticle number cursor; returns messages with article numbers greater than this value. Use 0 for the first call.
inboxstringoptionalMailing list name, e.g. pgsql-general. Defaults to pgsql-hackers when omitted. Aliases: list, inbox_name.
limitnumberoptionalMaximum messages to return (1-1000, default 200)

list_inboxes

List all configured agora mailboxes with name, message_count, latest_message_date, latest_import_date, listid (when known) and description. Optional min_messages filter; limit/offset are accepted for forward compatibility.

argumenttypemeaning
limitnumberoptionalForward-compat: max rows (default unlimited)
min_messagesnumberoptionalOnly return inboxes with at least this many messages
offsetnumberoptionalForward-compat: skip the first N rows

get_inbox_info

Get metadata for an inbox (name, addresses, message count, last activity)

argumenttypemeaning
inboxstringoptionalMailing list name, e.g. pgsql-general. Defaults to pgsql-hackers when omitted. Aliases: list, inbox_name.

get_inbox_stats

Return aggregate statistics about an inbox: message counts by time period, top authors, and activity trends.

argumenttypemeaning
inboxstringoptionalMailing list name, e.g. pgsql-general. Defaults to pgsql-hackers when omitted. Aliases: list, inbox_name.
periodstringoptionalAggregation period: "day", "week", "month" (default), or "year"
top_authorsnumberoptionalNumber of top authors to return (1-50, default 10)

get_inbox_summary

Per-inbox summary: total messages, top 10 posters, thread count, date range, and lifetime average messages/day (total messages divided by the days spanned by the archive).

argumenttypemeaning
namestringrequiredInbox name

embedding_status

Get embedding coverage statistics: how many messages have embeddings, which model was used, and when embeddings were last generated.

argumenttypemeaning
inboxstringoptionalMailing list name, e.g. pgsql-general. Defaults to pgsql-hackers when omitted. Aliases: list, inbox_name.

Git history

commit_history

Cross-source historical overview of a git commit: the commit, the email discussion thread it links to (via its postgr.es/m/ Discussion link), the thread participants resolved to canonical people + organizations, the commitfest entry if tracked, and any Discord messages referencing it. Connects git → mailing list → commitfest → Discord → people knowledge graph for one change.

argumenttypemeaning
commit_idstringrequiredThe commit id (the agora ULID-style id from ag_git_commits, as returned by search/blame tools).

git_log

Browse commit history with optional filters by branch, path, author, and date range. Returns commits in reverse chronological order.

argumenttypemeaning
authorstringoptionalFilter by author name or email (substring match)
branchstringoptionalRestrict the log to commits reachable from this branch (e.g. cf/5556). Default: the repository's default branch.
limitnumberoptionalMaximum commits to return (1-200, default 50)
offsetnumberoptionalOffset for pagination (default 0)
pathstringoptionalFilter commits to those touching this file path
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.
sincestringoptionalOnly commits after this date (YYYY-MM-DD or RFC3339)
untilstringoptionalOnly commits before this date (YYYY-MM-DD or RFC3339)

git_diff

Two modes: (1) commit-range mode — pass base_branch and head_branch to get the list of commits unique to head_branch (set difference base..head), optionally filtered by author/message/path; (2) content-diff mode — pass from_commit and to_commit to compute file-level unified diffs between two specific commits.

argumenttypemeaning
authorstringoptionalCommit-range mode: filter by author name or email (substring match)
base_branchstringoptionalCommit-range mode: base side of the range (excluded). Defaults to the repository's default branch when head_branch is set.
from_commitstringoptionalContent-diff mode: base commit ID to diff from
head_branchstringoptionalCommit-range mode: head side of the range (included). When set, switches to commit-range mode.
limitnumberoptionalCommit-range mode: maximum commits to return (1-1000, default 100)
message_filterstringoptionalCommit-range mode: filter commits whose message matches this string (case-insensitive substring; passed to git log --grep)
pathstringoptionalLimit results to a specific file path
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.
to_commitstringoptionalContent-diff mode: target commit ID to diff to (default: HEAD)

git_blame

Show the modification history for a file: which commits changed it, with author and summary for each version.

argumenttypemeaning
pathstringrequiredFile path within the repository
commitstringoptionalShow history up to this commit (default: all)
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

list_repositories

List all registered git repositories with name, branch, commit_count, file_count, indexed-symbol_count, latest_commit, last_fetched_at, and import_state. Optional min_commits and branch filters; limit/offset accepted for forward compatibility.

argumenttypemeaning
branchstringoptionalFilter to repositories whose default branch matches this string
limitnumberoptionalForward-compat: max rows (default unlimited)
min_commitsnumberoptionalOnly return repositories with at least this many commits
offsetnumberoptionalForward-compat: skip the first N rows

list_branches

List tracked branches for a repository, including head commit and default branch status.

argumenttypemeaning
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

repository_stats

Get detailed statistics for a git repository including commit count, file count, branch, and import state.

argumenttypemeaning
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

get_repository_summary

Per-repository summary: total commits, top 10 contributors, branches, language breakdown (from indexed symbols), and a sampled most-touched-paths list.

argumenttypemeaning
namestringrequiredRepository name

get_repo_sync_stats

Get commit frequency analysis and sync statistics for a repository. Returns median commit interval, recommended poll frequency, and recent fetch log.

argumenttypemeaning
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

check_upstream_status

Check whether a pull request has been merged upstream. Returns the latest patch series head commit and any merge information.

argumenttypemeaning
pr_urlstringrequiredForge pull request URL

list_projects

List bridge-configured projects linking a forge repository to a mailing list inbox.

No arguments.

git_show_file

Show the content of a file at a specific commit (or HEAD). Returns the file content as text, or indicates if binary.

argumenttypemeaning
pathstringrequiredFile path within the repository
commitstringoptionalCommit ID to show file at (default: HEAD)
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

git_analyze_activity

Show commit activity over time, bucketed by period. Useful for understanding development pace and trends.

argumenttypemeaning
periodstringoptionalAggregation period: "week", "month" (default), "quarter", or "year"
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

git_analyze_authors

Get commit statistics per author: total commits, first and last commit dates. Ranked by commit count.

argumenttypemeaning
limitnumberoptionalMaximum authors to return (1-100, default 25)
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

git_analyze_churn

Identify the most frequently modified files in the repository. High-churn files may indicate hotspots or unstable code.

argumenttypemeaning
limitnumberoptionalMaximum results to return (1-100, default 25)
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

git_analyze_hotspots

Aggregate file churn by directory to find the most actively changed areas of the codebase.

argumenttypemeaning
depthnumberoptionalDirectory depth for aggregation (default 1)
limitnumberoptionalMaximum directories to return (1-100, default 25)
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

git_analyze_coupling

Find files that are frequently changed together. Logical coupling can reveal hidden dependencies between components.

argumenttypemeaning
limitnumberoptionalMaximum pairs to return (1-100, default 25)
min_countnumberoptionalMinimum co-change count to include a pair (default 2)
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

git_analyze_bus_factor

Identify files with the fewest distinct authors (bus factor risk). Files modified by only one person are knowledge silos.

argumenttypemeaning
limitnumberoptionalMaximum files to return (1-100, default 25)
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

Docs, wiki and Discord

search_all_sources

Unified search across all document sources (docs, wiki, and email). Returns results ranked by relevance.

argumenttypemeaning
querystringrequiredSearch query (supports both keywords and natural language)
limitnumberoptionalMaximum results to return (1-50, default 20)

search_docs

Full-text search across documentation pages. Returns matching pages ranked by relevance.

argumenttypemeaning
querystringrequiredSearch query string
limitnumberoptionalMaximum results to return (1-50, default 20)
versionstringoptionalFilter by documentation version (e.g., "current", "17", "16")

get_doc_page

Get a specific documentation page by path and optional version.

argumenttypemeaning
pathstringrequiredURL path of the documentation page
versionstringoptionalDocumentation version (default: latest available)

list_doc_versions

List available documentation versions with page counts.

No arguments.

search_wiki

Full-text search across wiki pages. Returns matching pages with latest revision content.

argumenttypemeaning
querystringrequiredSearch query string
limitnumberoptionalMaximum results to return (1-50, default 20)

get_wiki_page

Get a wiki page with its latest revision content.

argumenttypemeaning
titlestringrequiredWiki page title

get_wiki_history

Get revision history for a wiki page.

argumenttypemeaning
titlestringrequiredWiki page title
limitnumberoptionalMaximum revisions to return (1-100, default 20)

search_discord_topics

Find PostgreSQL Discord discussions semantically related to a query. Returns only the channel, approximate date range, and participants of relevant conversations — never message content or links (per the Discord community agreement).

argumenttypemeaning
querystringrequiredNatural language query to find semantically related Discord discussions
limitnumberoptionalMaximum results to return (1-25, default 10)

list_discord_channels

List monitored Discord channels with message counts.

No arguments.

Code intelligence

search_symbols

Search code symbols by name, kind, or language. Uses multi-tier search: BM25 full-text, trigram fuzzy match, and body content search.

argumenttypemeaning
querystringrequiredSearch query (symbol name, partial name, or keyword)
kindstringoptionalFilter by symbol kind: function, class, method, struct, enum, interface, trait, etc.
languagestringoptionalFilter by language: go, python, c, cpp, rust, java, typescript, javascript, etc.
limitnumberoptionalMaximum results (1-200, default 50)
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

semantic_search_code

Search code symbols by semantic similarity using vector embeddings. Requires embeddings.

argumenttypemeaning
querystringrequiredNatural language query
limitnumberoptionalMaximum results (1-50, default 20)
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

hybrid_search_code

Combined keyword + semantic code search using Reciprocal Rank Fusion. Requires embeddings to be generated.

argumenttypemeaning
querystringrequiredSearch query (supports keywords and natural language)
keyword_weightnumberoptionalWeight for keyword results in fusion (0.0-1.0, default 0.5)
limitnumberoptionalMaximum results (1-100, default 20)
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

find_pattern

Search for a regex pattern in code symbol bodies. Uses trigram indexes for acceleration.

argumenttypemeaning
patternstringrequiredRegular expression pattern
limitnumberoptionalMaximum results (1-100, default 50)
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

get_symbol

Get full details for a code symbol by its qualified name, including source code, signature, documentation, and file location.

argumenttypemeaning
qualified_namestringrequiredFully qualified symbol name (e.g. 'MyClass.myMethod', 'pkg::func_name')
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

get_signature

Get the function/method signature and doc comment for a symbol.

argumenttypemeaning
qualified_namestringrequiredFully qualified symbol name
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

blame_symbol

Show the commit history that modified a symbol's file, filtered to the symbol's line range.

argumenttypemeaning
qualified_namestringrequiredFully qualified symbol name
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

symbols_in_file

List all code symbols defined in a file, ordered by line number.

argumenttypemeaning
pathstringrequiredFile path within the repository
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

get_callers

Find all symbols that call/reference the given symbol (reverse call graph).

argumenttypemeaning
qualified_namestringrequiredFully qualified symbol name
limitnumberoptionalMaximum results (1-100, default 50)
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

get_callees

Find all symbols that the given symbol calls/references (forward call graph).

argumenttypemeaning
qualified_namestringrequiredFully qualified symbol name
limitnumberoptionalMaximum results (1-100, default 50)
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

get_dependents

Get transitive dependents: all symbols in the blast radius if this symbol changes.

argumenttypemeaning
qualified_namestringrequiredFully qualified symbol name
limitnumberoptionalMaximum results (1-200, default 50)
max_depthnumberoptionalMaximum BFS depth (1-5, default 3)
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

get_impact

Analyze the impact of modifying a symbol: risk level, blast radius, affected communities and execution flows.

argumenttypemeaning
qualified_namestringrequiredFully qualified symbol name
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

get_tests_for

Find test symbols that reference the given symbol.

argumenttypemeaning
qualified_namestringrequiredFully qualified symbol name
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

get_execution_flows

Trace execution flow paths through the call graph from entry points.

argumenttypemeaning
max_depthnumberoptionalMaximum BFS depth (1-10, default 8)
max_flowsnumberoptionalMaximum flows to return (1-50, default 20)
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

detect_changes

Detect which symbols changed between two commits by comparing file content hashes.

argumenttypemeaning
from_commitstringrequiredBase commit ID
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.
to_commitstringoptionalTarget commit ID (default: HEAD)

find_dead_code

Find functions/methods with zero incoming call graph edges (potentially unused code).

argumenttypemeaning
limitnumberoptionalMaximum results (1-200, default 50)
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

codebase_map

Get a directory-level overview of the codebase showing file counts and symbol counts per directory.

argumenttypemeaning
depthnumberoptionalDirectory depth for grouping (default 2)
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

get_communities

List Louvain community clusters detected in the call graph. Communities group related symbols by functional area.

argumenttypemeaning
limitnumberoptionalMaximum communities (1-100, default 20)
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

get_community

Get details and member symbols for a specific community.

argumenttypemeaning
community_idnumberrequiredCommunity ID
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

code_index_status

Get code indexing statistics: files indexed, symbol counts by kind and language, edge count, community count.

argumenttypemeaning
repositorystringoptionalRepository name, e.g. pgbouncer. Defaults to postgres when omitted. Aliases: repo, repo_name.

Commitfest and cfbot

list_commitfests

List PostgreSQL commitfests indexed in the mentat triple store. Each commitfest carries a status (:open / :in-progress / :closed) and an entry count grouped by status.

argumenttypemeaning
statusstringoptionalFilter by commitfest status: open, in-progress, or closed

get_commitfest

Get a single commitfest with entries grouped by status and the top contributors (authors with the most entries).

argumenttypemeaning
numbernumberrequiredCommitfest sequence number, e.g. 59

commitfest_stats

Overview of all indexed commitfests: count by status, top contributors (entries authored), distinct people / commitfests / entries totals.

No arguments.

list_entries

List commitfest entries (proposed patch series). Filterable by status, commitfest number, or topic; paginated.

argumenttypemeaning
commitfest_numbernumberoptionalRestrict to entries from this commitfest (e.g. 59)
limitnumberoptionalMax entries to return (1-500, default 100)
offsetnumberoptionalPagination offset (default 0)
statusstringoptionalStatus keyword without leading colon, e.g. needs-review, ready-for-committer, waiting-on-author, committed, withdrawn, returned-with-feedback
topicstringoptionalRestrict to entries with this :entry/topic value (substring match)

get_entry

Full detail for a commitfest entry: title, status, authors, reviewers, committer, thread message-ids, branches, last-updated time.

argumenttypemeaning
cf_idnumberrequiredcommitfest.postgresql.org entry id

entry_branches

Repository branches tracked for a commitfest entry. Joins commitfest.entry_repos with ag_repositories so callers see repo name + branch_name + is_authoritative.

argumenttypemeaning
cf_idnumberrequiredcommitfest.postgresql.org entry id

build_status_freshness

Most recent :entry/last-build-at observation across all entries. Use to detect a stalled cfbot scraper.

No arguments.

entry_history

Status changes for a commitfest entry across commitfests. The relational table doesn't carry an audit log, so we approximate the patch's lifeline by joining on shared :entry/thread-message-id (precise) and falling back to title-prefix substring (weak).

argumenttypemeaning
cf_idnumberrequiredcommitfest.postgresql.org entry id

recent_commitfest_activity

Rolling window of commitfest entries updated in the last N days. Returns the entries plus a status histogram. Uses the relational commitfest.entries table for predictable latency.

argumenttypemeaning
limitnumberoptionalMax entries (1-500, default 100)
sincestringoptionalRFC3339 cutoff (default: 7 days ago)

find_entries_for_author

Find commitfest entries where the given person is an author. Looks up by email (exact) or by name (substring, case-sensitive).

argumenttypemeaning
emailstringoptionalExact :person/email
limitnumberoptionalMax entries to return (1-500, default 100)
namestringoptional:person/name substring (case-sensitive)

find_entries_for_thread

Find commitfest entries linked to a pgsql-hackers thread by Message-ID. (Returns empty until the mailing-list cross-reference scrape lands; the index attribute :entry/thread-message-id is in the schema.)

argumenttypemeaning
message_idstringrequiredRFC822 Message-ID, with or without angle brackets

find_failing_patches

List commitfest entries whose latest cfbot.cputube.org build is failing on at least one platform. Filterable by entry status (defaults to active reviewable statuses) and platform.

argumenttypemeaning
entry_statusstringoptionalRestrict to entries in this status (e.g. needs-review, ready-for-committer). Default: any active status.
limitnumberoptionalMax entries (1-500, default 100)
platformstringoptionalRestrict to entries failing on this platform keyword (e.g. linux, macos, windows, freebsd, netbsd, openbsd).

find_passing_long_pending

Green patches stuck in review: entries whose builds pass on every platform yet whose :entry/last-updated is older than N days. Useful for the 'why isn't this committed yet?' question.

argumenttypemeaning
limitnumberoptionalMax entries (1-500, default 100)
min_daysnumberoptionalMinimum days since last update (default 14)

find_patches_by_platform_status

Patches that pass on some platforms but not others. Example: passing on linux but failing on macos -> portability bug.

argumenttypemeaning
failing_onstringoptionalPlatform keyword the entry must be failing on (e.g. macos)
limitnumberoptionalMax entries (1-500, default 100)
passing_onstringoptionalPlatform keyword the entry must be passing on (e.g. linux)

find_rebase_needed_patches

Entries cfbot reports as no longer applying to master tip (:entry/applies-cleanly is false). These need an author rebase.

argumenttypemeaning
limitnumberoptionalMax entries (1-500, default 100)

get_patch_build_history

Build matrix for one entry: per-platform/config status, log URL, observation time, applies-cleanly flag, rollup.

argumenttypemeaning
cf_idnumberrequiredcommitfest.postgresql.org entry id

find_entries_with_failures_on

Cross-domain feed: recent failed buildfarm runs for a named animal, plus commitfest entries with cfbot :failing rollups whose tracked branches overlap the animal's. Note: buildfarm runs commit SHAs and cfbot runs cf/<id> branches, so this verb correlates by branch overlap and time window — not by direct schema join.

argumenttypemeaning
animal_namestringrequiredBuildfarm animal name (e.g. fairywren)
limitnumberoptionalMax recent failed runs (1-200, default 50)

Buildfarm

buildfarm_overview

High-level buildfarm health: animal count, recent run counts, currently-failing animals, top owners, OS / branch breakdown, and freshness.

No arguments.

list_animals

List PostgreSQL buildfarm animals. Filterable by OS, branch tracked, last build status, or owner. Failing animals are returned first (sort key: last_status='failed' DESC, name ASC).

argumenttypemeaning
branchstringoptionalRestrict to animals tracking this PostgreSQL branch (e.g. master, REL_18_STABLE)
limitnumberoptionalMax animals (1-500, default 100)
osstringoptionalRestrict to animals running this OS (exact match against ag_buildfarm_animals.os)
ownerstringoptionalRestrict to a single owner_name or owner_email (exact match)
statusstringoptionalRestrict to animals with this last_status: passed, failed, flapping, unknown

get_animal

Profile of one buildfarm animal: hardware/OS/compiler/owner, branches tracked, last build status, plus the last 20 runs (any branch).

argumenttypemeaning
namestringrequiredAnimal name (e.g. elasmobranch, fairywren)

animal_history

Run timeline for one animal. Filterable by branch and start cutoff; ordered newest first.

argumenttypemeaning
namestringrequiredAnimal name
branchstringoptionalRestrict to a single PG branch
limitnumberoptionalMax runs (1-1000, default 100)
sincestringoptionalOnly runs with started_at >= this RFC3339 timestamp

animal_owner_contributions

Animals run by one owner: list, branches each tracks, last status, first_seen_at and elapsed days since first observation.

argumenttypemeaning
owner_emailstringoptionalOwner email (exact)
owner_namestringoptionalOwner name (exact)

find_failing_runs

Most recent failing buildfarm runs across the entire fleet. Filterable by branch and start cutoff. Use to answer 'what is broken right now?'

argumenttypemeaning
branchstringoptionalRestrict to a single PG branch
limitnumberoptionalMax runs (1-1000, default 100)
sincestringoptionalOnly runs with started_at >= this RFC3339 timestamp (default: 24h ago)

find_breaks

Animals that failed on a branch within the time window bounded by two commit SHAs. The window is defined by the earliest started_at observed for either SHA on that branch — not by git topological order, since the buildfarm tables don't carry commit ordering.

argumenttypemeaning
branchstringrequiredPG branch (e.g. master)
end_shastringrequiredLater commit SHA (window upper bound)
start_shastringrequiredEarlier commit SHA (window lower bound)

commit_buildfarm_status

Per-animal status for one PostgreSQL commit: every animal that ran this commit, on which branch, with status and stage_failed. Returns a {passed,failed,flapping,unknown} rollup alongside.

argumenttypemeaning
commit_shastringrequiredFull commit SHA (40 hex)

Community and people

get_contributor

Get a contributor's profile: canonical name, canonical email, all release-by-role counts, sample commits, owned buildfarm animals.

argumenttypemeaning
emailstringoptionalExact :person/canonical-email match
namestringoptional:person/canonical-name substring (case-insensitive). Used only when email is not provided.

list_contributors

List PostgreSQL community contributors aggregated across git trailers (Reviewed-by, Tested-by, etc.), commit author/committer headers, and buildfarm animal owners. Sorted by total contributions descending. Filterable by release / role / source.

argumenttypemeaning
limitnumberoptionalMax contributors to return (1-500, default 100)
offsetnumberoptionalPagination offset (default 0)
releasestringoptionalRestrict to one release tag, e.g. PG18 / PG17 / pre-9.6
rolestringoptionalRestrict to one role: authored, reviewed, tested, reported, committed, co-authored, suggested, signed-off, buildfarm-owner, ...
sourcestringoptionalRestrict to one source: git, buildfarm, email, wiki, commitfest

release_contributors

Top contributors per role for one release. Scope: canonical authoritative repos only (ag_repositories.is_authoritative = TRUE). Returns top 20 per role across authored / reviewed / tested / reported / committed (per-role distinct-commit counts).

argumenttypemeaning
releasestringrequiredRelease tag, e.g. PG18 / PG17 / pre-9.6
per_role_limitnumberoptionalTop-N per role (1-100, default 20)

contribution_summary

Summary of contribution counts per release: unique people, distinct commits, role breakdown (count(DISTINCT commit_sha) per role, canonical authoritative repos only), and revert-commit count. Powers the /community hero strip.

argumenttypemeaning
releasestringoptionalRestrict to one release; empty = all releases.

find_contributions

Find raw contribution rows for one person: git commit SHAs / buildfarm animals tagged with a role + release. Useful for drill-down on a contributor's recent work.

argumenttypemeaning
emailstringoptionalPerson's canonical email
limitnumberoptionalMax rows (1-500, default 50)
namestringoptionalPerson's name (substring; used when email is not given)
releasestringoptionalRestrict to one release
rolestringoptionalRestrict to one role

Sources and coverage

list_sources

Enumerate every data source backing the MCP server (mailing-list inboxes, git repositories, doc sites, wiki, discord). Returns each source with its kind, item count, last-update timestamp, and freshness classification (fresh/stale). The universe is small (~50 inboxes, ~10 repos, a few docs/wiki sources); no pagination is required, but limit/offset are accepted for forward compatibility.

argumenttypemeaning
kindstringoptionalFilter to a single kind (inbox|repository|docs|wiki|discord)
limitnumberoptionalForward-compat: max rows (default unlimited)
min_itemsnumberoptionalOnly return sources with at least this many items
offsetnumberoptionalForward-compat: skip the first N rows

get_source_info

Detail for a single source by name. Returns kind, item_count, last_update, next_sync, freshness_status, and description.

argumenttypemeaning
namestringrequiredSource name (inbox name, repo name, source nick)