Paystack Python Model Context Protocol SDK - MCP server for interacting with Paystack payment API
This MCP server exposes 27 Paystack API tools via fastmcp. While tool naming follows verb_resource conventions (e.g., balance.read, customer.create) and all tools have descriptions, the implementation has significant structural gaps. Input schemas are properly typed for most tools, but parameter descriptions are minimal and generic. Many tools lack context around when to use them versus alternatives, and error handling is not visible in the source. The server's main weakness is that descriptions are terse (often just 1-2 sentences) and do not guide LLM tool selection or explain dependencies. For example, 'Creates a new customer' lacks context: What happens if the email already exists? Is a phone required? What does the tool return? Output schemas are not documented anywhere in the visible code. Read-only vs write semantics are correctly labeled in the risk taxonomy, but not in tool descriptions themselves. Tool composition is reasonable, list/read/create/update/delete follow CRUD patterns, but chaining is not guided (e.g., customer.create returns what? Does it include customer_code, which customer.read needs?). No evidence of pagination handling, result limits, or error recovery guidance.
Retrieves the balance ledger from a Paystack account.
Retrieves the balance from a Paystack account.
Creates a new customer.
Retrieves a list of all customers.
Fetches the details of a specific customer.
Updates the details of a specific customer.
Adds evidence to a dispute.
List tools have no input schema (customer.list, product.list, invoice.list, transaction.list, subscription.list, dispute.list).
Descriptions are uniformly terse (8-60 characters). For example, 'Retrieves the balance from a Paystack account.' (48 chars) does not explain WHEN to call balance.read vs balance.ledger, what constitutes a 'balance', or what the response structure is. Rubric baseline is 194 chars for A-quality tools; descriptions under 20 chars must score 0-20.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 56 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 0 | - | v1 |
Downloads a list of dispute with optional filters.
Retrieves a list of all disputes.
Fetches the details of a specific dispute.
Resolves a dispute.
Creates a new invoice.
Retrieves a list of all invoices.
Creates a new product.
Deletes a specific product.
Retrieves a list of all products.
Fetches the details of a specific product.
Updates the details of a specific product.
Creates a new refund.
Disables a subscription.
Retrieves a list of all subscriptions.
Downloads a list of transactions with optional filters.
Initializes a new transaction.
Retrieves a list of all transactions.
Fetches the details of a specific transaction.
Retrieves the timeline of a specific transaction.
Verifies the status of a transaction.
No output schema documentation anywhere in the source code. LLMs cannot plan downstream tool calls without knowing what fields create_customer returns. Does it include customer_code (needed for customer.read)? Does it include created_at? The tool signature only documents inputs.
List tools (customer.list, product.list, transaction.list, etc.) have no pagination parameters (limit, offset, page, per_page). This violates paginated-result pattern. Transaction.download and dispute.download correctly include per_page/page/from_date/to_date, but the basic list tools do not. Without pagination, large result sets will overflow context.
Parameter descriptions are generic and do not include constraints, formats, or dependencies. For example, transaction.initialize documents currency as 'The currency of the transaction (e.g., NGN)' but does not state: Is this a required field? Are only certain currencies accepted (NGN, GHS, ZAR)? Should it be an enum? Rubric requires constraints to be explicit in descriptions to enable LLM self-correction.
No error handling or recovery guidance visible in code. Rubric requires error responses to tell LLMs what to do next (e.g., 'Customer email already exists. Try update_customer() instead.'). Currently, there is no indication of what happens on failure, what errors are retryable, or how LLMs should respond to duplicate records, missing resources, or invalid input.
Destructive tool (product.delete) lacks confirmation or dry-run option. Rubric pattern:confirmation-request states irreversible operations should support a confirmation step to prevent agent mistakes. Currently, delete_product can be called directly without any safeguard.
Tool descriptions do not distinguish between state-changing and read-only operations. While the risk taxonomy (READ_ONLY, WRITE, DESTRUCTIVE, REVERSIBLE) is correctly assigned, tool descriptions themselves do not say 'This creates a record and cannot be undone' or 'This is a read-only query.' LLMs need explicit language in the docstring.
Parameters like 'phone' and 'description' are marked nullable but no guidance on consequences. If phone is omitted from customer.create, does the API reject it, or is it optional? Rubric requires dependency hints and consequences to be explicit. E.g., 'phone (optional; if omitted, customer must update later).'
dispute.resolve has unusual parameter descriptions that read like API specs ('resolution_example' # str | Dispute resolution). These are not LLM-friendly and should be rewritten as: 'The resolution outcome (must be one of: merchant-accepted, declined).' The current style is a copy-paste from underlying SDK docs, not adapted for agent use.