Skip to main content
Glama
Omise MCP Server

Omise MCP Server

by nitishomise

create_source

Creates a payment source to initiate Omise payments via internet banking, Alipay, convenience stores, installments, PromptPay, or TrueMoney, defining amount, currency, and method details.

Instructions

Create a payment source for various payment methods

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "type": "<type>",
      "amount": "<amount>",
      "currency": "<currency>"
    },
    "name": "create_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
bankNoBank code for internet banking
typeYesPayment method type
storeNoConvenience store chain
amountYesAmount in the smallest currency unit
currencyYesCurrency code (THB, USD, etc.)
metadataNoAdditional metadata for the source
return_uriNoReturn URI for payment completion
national_idNoNational ID for PromptPay
phone_numberNoPhone number for TrueMoney
mobile_numberNoMobile number for PromptPay
platform_typeNoPlatform type for Alipay
installment_termNoInstallment term (3, 6, 9, 10, 12, 18, 24, 36 months)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It implies a mutation but does not mention idempotency, authentication requirements, reusability of the source, or failure/error behavior.

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 clear sentence with no wasted wording. However, its brevity reflects under-specification rather than deliberate front-loading of useful context.

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

Completeness2/5

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

This is a complex mutation tool with 12 parameters, method-specific requirements, and no annotations or output schema. The description does not explain how parameters combine by payment method, what is returned, or what an agent must know before invoking it.

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 description coverage is 100%, so the schema already explains each parameter, including method-specific fields like bank codes and installment terms. The description adds no additional meaning beyond the schema, which is acceptable at baseline 3.

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

Purpose4/5

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

The description states a specific verb and resource: creating a payment source. The phrase 'for various payment methods' adds scope, but it does not differentiate this tool from siblings like retrieve_source or create_charge.

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?

There is no guidance on when to use this tool versus alternatives such as create_charge or create_token. It also omits prerequisites or conditions that determine when source creation is appropriate.

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