Skip to main content
Glama
lakshitha0526

PayHere MCP Server

Create PayHere checkout payload

create_checkout_payload

Generates the form data and MD5 hash for a PayHere checkout POST request. Returns action URL, form fields, and an HTML snippet.

Instructions

Generates the form data needed to POST a checkout request to PayHere, including the MD5 hash. Returns action URL, form fields, and an HTML snippet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderIdYesUnique order identifier for this payment
amountYesPayment amount (will be formatted to 2dp)
currencyYesISO 4217 currency code, e.g. LKR, USD
itemsYesItem description shown on the checkout page
customerYes
returnUrlYesURL to redirect to after successful payment
cancelUrlYesURL to redirect to if payment is cancelled
notifyUrlYesPublic URL PayHere will POST the payment result to
Behavior3/5

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

With no annotations, description carries full burden. It discloses the tool generates form data and hash, and returns specific outputs. However, it does not clarify if this is a pure computation or involves external calls, nor does it specify required authorizations or side effects.

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?

Single, well-structured sentence that front-loads the verb 'Generates' and lists outputs. No redundant information, but could be more concise by splitting into two sentences.

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 no output schema, the description outlines return types (action URL, form fields, HTML snippet), which is helpful. It implies usage (POST the form data) but does not address prerequisites like merchant credentials. Overall adequate for a moderately complex tool.

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

Parameters3/5

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

Schema coverage is high (88%), so the description adds little beyond schema. It mentions MD5 hash but doesn't tie it to a specific parameter. Baseline 3 is appropriate as the schema already documents parameters well.

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?

Description clearly states the tool generates form data for posting a checkout request, including MD5 hash, and specifies outputs (action URL, form fields, HTML snippet). This distinguishes it from siblings like generate_signature or issue_refund.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives. No mention of prerequisites (e.g., requiring API credentials) or exclusions. The description only states what it does, not when it's appropriate.

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/lakshitha0526/payhere-mcp'

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