Skip to main content
Glama
parseen254

daraja-mcp

by parseen254

b2b_payment

Pay another business via M-Pesa: settle PayBills, Buy Goods tills, or top up B2C working accounts.

Instructions

Pay another business: a PayBill, a Buy Goods till, or a B2C working account top-up.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYesAmount in KES, whole numbers only.
targetYespaybill pays a PayBill, buygoods pays a till, topup funds a B2C working account.
remarksNoPayment
requesterNoOptional phone number of the person on whose behalf you are paying.
resultUrlNo
shortCodeNo
accountReferenceNoRequired for paybill. Ignored for buy goods.
receiverShortCodeYesShortcode being paid.
Behavior2/5

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

No annotations are present, so the description must carry full behavioral burden. It only states the action and target types; it does not disclose that this is a mutating financial operation, any authorization or prerequisite requirements, callback behavior, or error semantics. This is a significant gap for a payment tool.

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, front-loaded sentence with no filler. It is concise and well-structured, though it omits necessary details for a complex tool. The brevity is appropriate for a summary, but not for a complete specification.

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?

With 8 parameters, no output schema, and no annotations, the description is severely under-specified. It provides only a high-level purpose without addressing parameter interactions, callback results, or operational caveats. This is insufficient for an agent to safely and correctly execute the tool.

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?

Schema coverage is 63%, and the description adds minimal value beyond the schema. It restates the target enum values but does not clarify ambiguous parameters like shortCode, resultUrl, or remarks, nor does it explain relationships such as accountReference being required only for paybill. The description fails to compensate for the undocumented parameters.

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 clearly states 'Pay another business' followed by three specific target types (PayBill, Buy Goods till, B2C working account top-up). This distinguishes the tool from sibling payment tools like b2c_payment (pay a customer) and c2b_simulate (customer-to-business), making the purpose unmistakable.

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

Usage Guidelines3/5

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

The description defines the tool's scope but does not explicitly state when to use it versus alternatives like b2c_payment or business_to_pochi. The three target types give some context, but no exclusions or comparative guidance are provided.

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