Skip to main content
Glama
hectortemich

@deonpay/mcp-server

by hectortemich

Create a payment link

deonpay_create_link

Create a payment link with a fixed or itemized amount in centavos, configure recurring or limited-use options, and generate a public URL to share with customers.

Instructions

Create a new payment link. Use this when the user says 'create a link for $X for product Y' or 'genera un link de pago para...'. Amounts are in centavos: $500 MXN = 50000. You can pass either a fixed amount OR line_items (the API sums quantity * unit_amount automatically). Type defaults to 'single' (one-shot). Optional fields cover MSI (months without interest), max_uses, expires_at, custom_fields and visual customization. The response includes the public payment URL the user can share.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesLink name (visible to the customer, max 255 chars).
amountNoFixed amount in CENTAVOS (1 MXN = 100). Required UNLESS line_items are provided or the link uses min_amount/max_amount (open amount).
typeNo'single' (default), 'recurring' or 'unlimited'.
descriptionNo
max_usesNoMaximum number of successful payments.
expires_atNoISO date when the link stops accepting payments.
allow_msiNoEnable MSI (meses sin intereses).
msi_optionsNoAllowed MSI plans, e.g. [3, 6, 12].
min_amountNoMinimum amount for open-amount links (centavos).
max_amountNoMaximum amount for open-amount links (centavos).
merchant_referenceNoInternal reference for the merchant.
metadataNoFree-form key/value metadata (max 50 keys).
customizationNoVisual overrides for the hosted page. Only the keys you set are merged into the merchant defaults.
custom_fieldsNo
line_itemsNoCatalog or inline items. When provided, the total amount is computed server-side.
display_currencyNoForeign-currency display. Requires exchange_rate.
exchange_rateNoMXN per unit of display_currency.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description covers key behaviors: amounts in centavos, type defaulting to 'single', optional MSI, expiry, customization, and the response containing the shareable URL. It does not mention side effects, auth requirements, or error scenarios, but the provided information is sufficient for safe invocation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single paragraph that efficiently packs essential information: purpose, usage hints, centavos note, amount modes, type default, optional fields, and response content. It is front-loaded with the purpose and maintains clarity without unnecessary words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (17 parameters, nested objects), the description covers key operational context: centavos, amount modes, type default, and the response URL. While it could include examples or warn about missing required fields, it provides enough completeness for an agent to use the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds value beyond the schema by explaining the dual amount modes (fixed vs line_items) and the centavos requirement. It also highlights the type default and optional features. The schema already describes most parameters (88% coverage), so the description provides useful high-level context without redundancy.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description begins with a clear statement 'Create a new payment link' and provides specific example intents (e.g., 'create a link for $X for product Y'). It distinguishes itself from sibling tools like deonpay_create_checkout_session and deonpay_create_subscription by focusing on payment links rather than checkout sessions or subscriptions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description includes explicit user intents and explains the critical centavos requirement. It also clarifies the two ways to specify the amount (fixed amount or line_items). However, it does not explicitly state when to prefer this tool over alternatives like create_checkout_session or update_link.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hectortemich/deonpay-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server