Skip to main content
Glama
Omise MCP Server

Omise MCP Server

by nitishomise

create_charge

Initiate a payment charge by specifying amount and currency, with optional card or source details, to process customer payments and optionally capture funds immediately.

Instructions

Create a new charge for payment processing

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": {
      "amount": "<amount>",
      "currency": "<currency>"
    },
    "name": "create_charge"
  }
}

Input Schema

NameRequiredDescriptionDefault
cardNoCard token for payment
amountYesAmount in the smallest currency unit (satang for THB, cents for USD)
sourceNoSource ID for payment
captureNoWhether to capture the charge immediately (default: true)
currencyYesCurrency code (THB, USD, JPY, etc.)
customerNoCustomer ID for the charge
metadataNoAdditional metadata for the charge
return_uriNoReturn URI for 3D Secure authentication
descriptionNoDescription of the charge

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 for a financial mutation. It says nothing about authentication/API-key requirements, idempotency behavior on retries, what happens when capture defaults to true, how the 3D Secure return_uri flow affects the result, or what errors look like. Only the bare fact of creation is disclosed.

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?

One short, front-loaded sentence with zero filler, so the core purpose is immediately visible. The concision comes at the cost of completeness rather than from tight editing of necessary detail, which keeps it from a 5.

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?

For a nine-parameter, nested-object, high-stakes payment mutation with no annotations and no output schema, a single sentence is far too thin. An agent receives no information about capture timing, 3DS handling, metadata usage, or failure modes, all of which matter to calling this correctly.

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 every parameter, including amount units (satang/cents), currency pattern, capture default, and return_uri purpose. The description adds no meaning beyond that, which sets the baseline at 3 under the high-coverage rule.

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 ('Create a new charge') plus a domain qualifier ('for payment processing'), so an agent knows exactly what object is produced. It does not distinguish this from siblings such as capture_charge, create_refund, or create_source, which a reader must infer from the names alone.

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 when-to-use or when-not-to-use guidance. Nothing tells the agent that card tokenization should go through create_token/create_source first, that capture_charge handles deferred capture, or that create_chain/create_schedule exist for other flows. The agent gets no routing signal among a large sibling set of payment-creation tools.

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