More screenshots
Works with the AI Agents you already use
Meridian: Ask Postgres Anything in Plain English
Safe, read-only PostgreSQL data analysis and business intelligence via Meridian MCP.
Free
Meridian: Ask Postgres Anything in Plain English
Example session with this skill installed
Check the last 3 months of revenue. Group it by month and round to two decimals. Make sure to use the business definition for 'revenue' found in the table comments.
- Read your context and instructions
- Compiled the meridian
I have analyzed the database schema and executed a query to retrieve the monthly revenue for the last three months, following the business definition provided in the orders table comments (which excludes cancelled orders and tax).
Monthly Revenue Report (Last 3 Months)
| billing_month | revenue_usd | order_count |
|---|---|---|
| 2024-10-01 | 14250.50 | 312 |
| 2024-11-01 | 16890.75 | 345 |
| 2024-12-01 | 12100.20 | 280 |
-- Query anchored to current date for the last 3 full months
WITH monthly_stats AS (
SELECT
date_trunc('month', created_at) AS billing_month,
SUM(total_amount - tax_amount) AS raw_revenue,
COUNT(id) AS order_count
FROM orders
WHERE status = 'completed'
AND created_at >= date_trunc('month', CURRENT_DATE) - INTERVAL '3 months'
GROUP BY 1
)
SELECT
billing_month,
ROUND(CAST(raw_revenue AS numeric), 2) AS revenue_usd,
order_count
FROM monthly_stats
ORDER BY billing_month DESC;
Next steps
- Breakdown this revenue by product category to identify the cause of the December dip.
- Compare these figures against the same period last year for YoY growth analysis.
- Check for any restricted columns in the
customerstable to correlate revenue with user demographics.
Connects securely to your tools. The creator never sees your data.
About this skill
Writing SQL queries for business intelligence often carries the risk of accidental data modification or exposure of sensitive PII. This skill provides a safe, read-only interface to PostgreSQL databases via the Meridian MCP server, ensuring analysts can explore data without compromising security.
What it does
- Schema exploration identifies available tables and specific business definitions for metrics like revenue or churn.
- Safe query execution enforces read-only access with strict guards against
INSERT,UPDATE, orDELETEcommands. - Automated validation checks queries against an allow-list of tables and restricts access to sensitive columns like emails or phone numbers.
- Data sampling retrieves up to 20 rows to verify status codes and categories before writing complex joins.
- Business analysis produces aggregated reports with readable aliases, rounded values, and window functions.
How it works
- Map the data by calling
list_tablesanddescribe_tableto understand columns and business logic. - Verify values using
sample_rowsto ensure filters match the actual data formats in the database. - Generate SQL using PostgreSQL dialect, incorporating CTEs and aggregations to answer the specific business prompt.
- Execute and refine via
run_query, handling any rejection messages (e.g., timeouts or restricted columns) by optimizing the statement.
Frameworks & tools
This skill requires a configured Meridian MCP server connecting to a PostgreSQL database. It utilizes standard SQL features including CTEs, window functions, and date_trunc.
Why this beats prompting it yourself
Standard LLM prompts often hallucinate schema details or write dangerous destructive queries. This skill follows a strict multi-step verification process that anchors queries in real schema metadata and enforces security constraints at the protocol level.
Use cases
- Revenue tracking to calculate monthly recurring revenue or growth trends.
- Customer behavior analysis for cohort retention and churn patterns.
- Operational auditing to identify failed transactions or bottlenecked processes.
- Ad-hoc reporting for quick table generation ready for charting tools.
Known limitations
Restricted to a single SELECT statement per execution and capped at 200 rows. Queries must complete within an 8-second timeout.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 8 days ago
- Free with an Agensi account
- Software
Git
uv (Python tool runner)
Permissions
What's inside
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.