pg-aiguide
Server Details
Comprehensive PostgreSQL documentation and best practices, including ecosystem tools
- Status
- Healthy
- Uptime
- 99.9% over 46 days
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- Repository
- timescale/pg-aiguide
- GitHub Stars
- 1,852
- Server Listing
- pg-aiguide
TDQS
Scored across 2 tools
The two tools serve clearly distinct purposes: search_docs performs hybrid semantic/keyword search across documentation, while view_skill retrieves a specific skill by name. There is no overlap or ambiguity between them.
Both tool names follow a consistent verb_noun pattern (search_docs, view_skill), making the API predictable and easy to understand.
With only 2 tools, the surface feels thin for a documentation/guide server. While the scope is narrow, it might benefit from additional operations like listing available skills or browsing categories.
The tool set lacks a way to discover what skills are available; view_skill assumes knowledge of skill names, and search_docs only searches documentation, not skills. This creates a significant gap for agents trying to navigate the guide content.
Available Tools
2 toolssearch_docsSearch DocumentationARead-onlyIdempotentInspect
Search documentation with hybrid semantic (vector) and keyword (BM25) search. Use semanticWeight to choose keyword-only (0), semantic-only (1), or a blend; mid values fuse rankings with RRF. Supports Tiger Cloud (TimescaleDB), PostgreSQL, and PostGIS.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | Yes | The maximum number of matches to return. Defaults to 20. | |
| query | Yes | The search query. Used for BM25 when keyword or hybrid search applies, and for the embedding when semantic or hybrid search applies. | |
| source | Yes | The documentation source to search. "tiger" for Tiger Cloud and TimescaleDB, "postgres" for PostgreSQL, "postgis" for PostGIS spatial extension. Specific versions provided with _X.X suffixes. | |
| semanticWeight | Yes | Controls the balance between semantic and keyword search. 0 = keyword only, 0.5 = equal mix, 1 = semantic only. Default is 0.7 (favor semantic search). |
Output Schema
| Name | Required | Description |
|---|---|---|
| results | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Beyond the annotations (readOnly, idempotent), the description discloses the hybrid search mechanism, BM25, semantic vectors, RRF fusion for mid values, and supported database platforms. This adds substantial behavioral context without contradicting annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences, front-loaded with the core purpose, and every piece of information earns its place. No fluff or redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the presence of an output schema and detailed annotations, the description sufficiently covers the tool's functionality, parameter tuning, and supported sources. It does not need to detail return values since the output schema exists.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema already covers all parameters, but the description adds meaning by explaining the semanticWeight scale and that query is used for both BM25 and embedding where relevant. This goes beyond simple parameter names.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool searches documentation using hybrid semantic and keyword search, which is a specific verb+resource combination. It also distinguishes from the sibling tool view_skill by focusing on search rather than viewing.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides explicit guidance on using semanticWeight values (0, 1, blend) and lists supported sources. However, it does not explicitly contrast with view_skill or state when not to use this tool, so it lacks full alternative guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
view_skillView SkillBRead-onlyIdempotentInspect
Retrieve detailed skills for TimescaleDB operations and best practices.
Available Skills
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | A relative path to a file or directory within the skill to view. If empty, will view the `SKILL.md` file by default. Use `.` to list the root directory of the skill. | |
| skill_name | Yes | The name of the skill to browse, or `.` to list all available skills. |
Output Schema
| Name | Required | Description |
|---|---|---|
| content | Yes | The content of the file or directory listing. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already provide readOnlyHint=true and idempotentHint=true, so the read-only safety profile is covered. The description adds some context by naming the content domain (TimescaleDB operations) and listing available skills, but it does not disclose behavior beyond annotations, such as how path resolution works or what the returned structure looks like. It does not contradict the annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely long, dominated by a large catalog of skills with verbose trigger conditions and keywords. While this content is useful, it is not concise and pushes the actual tool-purpose statement into a tiny fraction of the whole. A shorter pointer to available skills would be more appropriate for a tool definition.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description plus schema provides enough to invoke the tool correctly: required parameters are covered, available skill values are listed, and annotations plus output schema reduce ambiguity. However, it lacks any statement of how view_skill relates to search_docs, and it never explicitly says it browses skill files/directories. This leaves a gap for an agent deciding between the two tools.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Although the input schema describes both parameters with 100% coverage, the description adds substantial value by enumerating all available skill_name values with detailed descriptions. This is effectively a dynamic enum for skill_name, which the schema does not provide. The path parameter is not discussed in the description, but the schema already documents its default and '.' behavior thoroughly.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a specific action and resource: 'Retrieve detailed skills for TimescaleDB operations and best practices.' It is clear this tool returns skill content, and the large available-skills list gives concrete examples. However, it does not explicitly differentiate this tool from the sibling search_docs, and 'detailed skills' is slightly ambiguous about browsing files versus returning a catalog.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when to use view_skill versus search_docs or any other alternative. The available_skills list explains when to use each skill, but that is content-specific guidance, not guidance about invoking this tool. No exclusions, prerequisites, or routing rules are stated.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
- Changed
search_docs6 fields changed- changed
Input schema / properties / limit / descriptionPrevious value: -"The maximum number of matches to return. If not provided, default is 10."New value: +"The maximum number of matches to return. Defaults to 20." - changed
Input schema / properties / query / descriptionPrevious value: -"The search query. For semantic search, use natural language. For keyword search, provide keywords."New value: +"The search query. Used for BM25 when keyword or hybrid search applies, and for the embedding when semantic or hybrid search applies." - removed
Input schema / properties / search_typeRemoved value: -{ - "description": "The type of search to perform. \"semantic\" uses natural language vector similarity, \"keyword\" uses BM25 keyword matching.", - "enum": [ - "semantic", - "keyword" - ], - "type": "string" -} - added
Input schema / properties / semanticWeightAdded value: +{ + "anyOf": [ + { + "maximum": 1, + "minimum": 0, + "multipleOf": 0.1, + "type": "number" + }, + { + "type": "null" + } + ], + "description": "Controls the balance between semantic and keyword search. 0 = keyword only, 0.5 = equal mix, 1 = semantic only. Default is 0.7 (favor semantic search)." +} - changed
Input schema / requiredPrevious value: -[ - "source", - "search_type", - "query", - "limit" -]New value: +[ + "source", + "query", + "limit", + "semanticWeight" +] - changed
Output schema / properties / results / items / anyOfPrevious value: -[ - { - "additionalProperties": false, - "properties": { - "content": { - "description": "The content of the documentation entry.", - "type": "string" - }, - "distance": { - "description": "The distance score indicating the relevance of the entry to the query. Lower values indicate higher relevance.", - "type": "number" - }, - "id": { - "description": "The unique identifier of the documentation entry.", - "maximum": 9007199254740991, - "minimum": -9007199254740991, - "type": "integer" - }, - "metadata": { - "description": "Additional metadata about the documentation entry, as a JSON encoded string.", - "type": "string" - } - }, - "required": [ - "id", - "content", - "metadata", - "distance" - ], - "type": "object" - }, - { - "additionalProperties": false, - "properties": { - "content": { - "description": "The content of the documentation entry.", - "type": "string" - }, - "id": { - "description": "The unique identifier of the documentation entry.", - "maximum": 9007199254740991, - "minimum": -9007199254740991, - "type": "integer" - }, - "metadata": { - "description": "Additional metadata about the documentation entry, as a JSON encoded string.", - "type": "string" - }, - "score": { - "description": "The score indicating the relevance of the entry to the keywords. Higher values indicate higher relevance.", - "type": "number" - } - }, - "required": [ - "id", - "content", - "metadata", - "score" - ], - "type": "object" - } -]New value: +[ + { + "additionalProperties": false, + "properties": { + "content": { + "description": "The content of the documentation entry.", + "type": "string" + }, + "distance": { + "description": "The distance score indicating the relevance of the entry to the query. Lower values indicate higher relevance.", + "type": "number" + }, + "id": { + "description": "The unique identifier of the documentation entry.", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer" + }, + "metadata": { + "description": "Additional metadata about the documentation entry, as a JSON encoded string.", + "type": "string" + } + }, + "required": [ + "id", + "content", + "metadata", + "distance" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "content": { + "description": "The content of the documentation entry.", + "type": "string" + }, + "id": { + "description": "The unique identifier of the documentation entry.", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer" + }, + "metadata": { + "description": "Additional metadata about the documentation entry, as a JSON encoded string.", + "type": "string" + }, + "score": { + "description": "The score indicating the relevance of the entry to the keywords. Higher values indicate higher relevance.", + "type": "number" + } + }, + "required": [ + "id", + "content", + "metadata", + "score" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "content": { + "description": "The content of the documentation entry.", + "type": "string" + }, + "id": { + "description": "The unique identifier of the documentation entry.", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer" + }, + "metadata": { + "description": "Additional metadata about the documentation entry, as a JSON encoded string.", + "type": "string" + }, + "rrf_score": { + "description": "Hybrid search: fused RRF score from combining semantic and keyword result rankings.", + "type": "number" + } + }, + "required": [ + "id", + "content", + "metadata", + "rrf_score" + ], + "type": "object" + } +]
1 tool update
- Changed
search_docs9 fields changed- added
Input schema / properties / limit / anyOfAdded value: +[ + { + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer" + }, + { + "type": "null" + } +] - changed
Input schema / properties / limit / descriptionPrevious value: -"The maximum number of matches to return. Default is 10."New value: +"The maximum number of matches to return. If not provided, default is 10." - removed
Input schema / properties / limit / maximumRemoved value: -9007199254740991 - removed
Input schema / properties / limit / minimumRemoved value: --9007199254740991 - removed
Input schema / properties / limit / typeRemoved value: -"integer" - changed
Input schema / properties / source / descriptionPrevious value: -"The documentation source to search. \"tiger\" for Tiger Cloud and TimescaleDB, \"postgres\" for PostgreSQL, \"postgis\" for PostGIS spatial extension."New value: +"The documentation source to search. \"tiger\" for Tiger Cloud and TimescaleDB, \"postgres\" for PostgreSQL, \"postgis\" for PostGIS spatial extension. Specific versions provided with _X.X suffixes." - changed
Input schema / properties / source / enumPrevious value: -[ - "tiger", - "postgres", - "postgis" -]New value: +[ + "tiger", + "postgres_14", + "postgres_15", + "postgres_16", + "postgres_17", + "postgres_18", + "postgis_3.3", + "postgis_3.4", + "postgis_3.5", + "postgis_3.6" +] - removed
Input schema / properties / versionRemoved value: -{ - "anyOf": [ - { - "enum": [ - "14", - "15", - "16", - "17", - "18", - "latest" - ], - "type": "string" - }, - { - "type": "null" - } - ], - "description": "The PostgreSQL major version (ignored when searching \"tiger\"). Recommended to assume the latest version if unknown. Only applicable when source is Postgres. Defaults to latest version." -} - changed
Input schema / requiredPrevious value: -[ - "source", - "search_type", - "query", - "version", - "limit" -]New value: +[ + "source", + "search_type", + "query", + "limit" +]
2 tool updates
- Changed
search_docs4 fields changed- removed
Input schema / additionalPropertiesRemoved value: -false - added
Input schema / properties / limit / maximumAdded value: +9007199254740991 - added
Input schema / properties / limit / minimumAdded value: +-9007199254740991 - changed
Output schema / properties / results / items / anyOfPrevious value: -[ - { - "additionalProperties": false, - "properties": { - "content": { - "description": "The content of the documentation entry.", - "type": "string" - }, - "distance": { - "description": "The distance score indicating the relevance of the entry to the query. Lower values indicate higher relevance.", - "type": "number" - }, - "id": { - "description": "The unique identifier of the documentation entry.", - "type": "integer" - }, - "metadata": { - "description": "Additional metadata about the documentation entry, as a JSON encoded string.", - "type": "string" - } - }, - "required": [ - "id", - "content", - "metadata", - "distance" - ], - "type": "object" - }, - { - "additionalProperties": false, - "properties": { - "content": { - "$ref": "#/properties/results/items/anyOf/0/properties/content" - }, - "id": { - "$ref": "#/properties/results/items/anyOf/0/properties/id" - }, - "metadata": { - "$ref": "#/properties/results/items/anyOf/0/properties/metadata" - }, - "score": { - "description": "The score indicating the relevance of the entry to the keywords. Higher values indicate higher relevance.", - "type": "number" - } - }, - "required": [ - "id", - "content", - "metadata", - "score" - ], - "type": "object" - } -]New value: +[ + { + "additionalProperties": false, + "properties": { + "content": { + "description": "The content of the documentation entry.", + "type": "string" + }, + "distance": { + "description": "The distance score indicating the relevance of the entry to the query. Lower values indicate higher relevance.", + "type": "number" + }, + "id": { + "description": "The unique identifier of the documentation entry.", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer" + }, + "metadata": { + "description": "Additional metadata about the documentation entry, as a JSON encoded string.", + "type": "string" + } + }, + "required": [ + "id", + "content", + "metadata", + "distance" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "content": { + "description": "The content of the documentation entry.", + "type": "string" + }, + "id": { + "description": "The unique identifier of the documentation entry.", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer" + }, + "metadata": { + "description": "Additional metadata about the documentation entry, as a JSON encoded string.", + "type": "string" + }, + "score": { + "description": "The score indicating the relevance of the entry to the keywords. Higher values indicate higher relevance.", + "type": "number" + } + }, + "required": [ + "id", + "content", + "metadata", + "score" + ], + "type": "object" + } +]
- Changed
view_skill1 field changed- removed
Input schema / additionalPropertiesRemoved value: -false
1 tool update
- Changed
search_docs4 fields changed- added
Input schema / properties / version / anyOfAdded value: +[ + { + "enum": [ + "14", + "15", + "16", + "17", + "18", + "latest" + ], + "type": "string" + }, + { + "type": "null" + } +] - changed
Input schema / properties / version / descriptionPrevious value: -"The PostgreSQL major version (ignored when searching \"tiger\"). Recommended to assume the latest version if unknown."New value: +"The PostgreSQL major version (ignored when searching \"tiger\"). Recommended to assume the latest version if unknown. Only applicable when source is Postgres. Defaults to latest version." - removed
Input schema / properties / version / enumRemoved value: -[ - "14", - "15", - "16", - "17", - "18", - "latest" -] - removed
Input schema / properties / version / typeRemoved value: -"string"
1 tool update
- Changed
search_docs2 fields changed- changed
Input schema / properties / source / descriptionPrevious value: -"The documentation source to search. \"tiger\" for Tiger Cloud and TimescaleDB, \"postgres\" for PostgreSQL."New value: +"The documentation source to search. \"tiger\" for Tiger Cloud and TimescaleDB, \"postgres\" for PostgreSQL, \"postgis\" for PostGIS spatial extension." - changed
Input schema / properties / source / enumPrevious value: -[ - "tiger", - "postgres" -]New value: +[ + "tiger", + "postgres", + "postgis" +]
2 tool updates
- First observed
search_docs - First observed
view_skill
Related MCP Connectors
Hosted MCP server for PostgreSQL diagnostics: slow queries, missing indexes, connection pressure.
Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.
Deterministic safety, correctness & cost gate that vets Postgres SQL before your AI agent runs it.
Generate, fix, explain and run read-only SQL on PostgreSQL, MySQL and SQL Server
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables AI assistants to manage, monitor, and optimize PostgreSQL databases with over 200 specialized tools for operations, security, performance tuning, and diagnostics.23 npm9MIT
- AlicenseBqualityDmaintenanceEnables comprehensive PostgreSQL database management including index tuning, query plan analysis, health monitoring, schema-aware SQL generation, and safe SQL execution with configurable access control for both development and production environments.9MIT
- AlicenseAqualityBmaintenanceEnables comprehensive PostgreSQL database monitoring, analysis, and management through natural language queries. Provides performance insights, bloat analysis, vacuum monitoring, and intelligent maintenance recommendations across PostgreSQL versions 12-17.34160MIT
- AlicenseBqualityFmaintenanceFacilitates management and optimization of PostgreSQL databases, offering analysis, setup guidance, and debugging, while ensuring secure and efficient database operations.38 npm23AGPL 3.0
Glama MCP Gateway
Add one secure layer between your agents and this server.