Skip to main content
Glama
parseen254

daraja-mcp

by parseen254

b2c_payment

Disburse funds to customers for refunds, withdrawals, salaries, or promotional winnings. Asynchronous callback returns the payment result.

Instructions

Pay money out to a customer: refunds, withdrawals, salaries, promotional winnings. Asynchronous; the result arrives on a callback.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYesAmount in KES, whole numbers only.
remarksNoPayment
occasionNo
commandIdNoBusinessPayment for general payouts, SalaryPayment for salaries (allows unregistered recipients), PromotionPayment for winnings.BusinessPayment
resultUrlNo
shortCodeNo
phoneNumberYesRecipient phone number.
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It discloses the key asynchronous nature and callback result delivery, which is important. However, it omits other behavioral traits such as authentication requirements, idempotency, or the fact that it initiates a real financial transaction (though 'pay money out' implies this). It adds value but is not comprehensive.

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

Conciseness5/5

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

The description is two sentences, front-loaded with the primary action, and each sentence adds value: the first defines the scope, the second explains behavior. No wasted words.

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?

Given 7 parameters, no output schema, and no annotations, the description is too sparse. It does not mention the callback URL parameter (resultUrl), the shortCode, or what the initial response looks like. For an asynchronous payment tool, this leaves the agent without critical operational details, making it incomplete for correct invocation.

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

Parameters2/5

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

The input schema has only 43% description coverage (3 of 7 parameters described). The description does not explicitly mention any parameter names or how to use them. It lists use cases (salaries, winnings) that map to commandId enum values, but this connection is implicit. The description fails to compensate for the low schema coverage, leaving several parameters (remarks, occasion, resultUrl, shortCode) unexplained in both schema and description.

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 uses a specific verb ('Pay money out') and identifies the resource ('a customer'), and explicitly lists use cases (refunds, withdrawals, salaries, promotional winnings). It clearly distinguishes from sibling tools like b2b_payment (business-to-business) and b2c_payment_and_wait (synchronous variant) by mentioning asynchronous behavior.

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 provides clear context: it is for paying money out to customers, and it is asynchronous via callback. This implies when to use it over b2c_payment_and_wait, but it does not explicitly name alternatives or exclusions. The guidance is sufficient for typical use cases but lacks an explicit contrast with the synchronous counterpart.

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/parseen254/daraja-mcp'

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