Skip to main content
Glama
parseen254

daraja-mcp

by parseen254

stk_push

Initiate an M-Pesa STK push payment request to a customer. Returns an acknowledgement immediately; does not confirm payment completion.

Instructions

Send an M-Pesa payment prompt (STK push) to a customer. Returns immediately with an acknowledgement; it does NOT confirm payment. Use stk_push_and_wait if you need the outcome.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYesAmount in KES. Whole numbers only.
shortCodeNoOverrides DARAJA_SHORTCODE.
callbackUrlNoOverrides the built-in receiver URL.
phoneNumberYesCustomer phone number. Accepts 07..., +2547..., or 2547... and is normalised.
transactionDescNoShort description. Max 13 characters.
transactionTypeNoPayBill or Buy Goods. Must match the shortcode type.CustomerPayBillOnline
accountReferenceNoAccount identifier shown on the customer statement. Max 12 characters.
Behavior4/5

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

No annotations are provided, so the description bears full responsibility for disclosing behavior. It clearly warns that the tool does NOT confirm payment and returns an acknowledgement immediately, covering the most critical behavioral nuance for an async payment prompt.

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?

Two sentences with high information density: first states the action, second clarifies the asynchronous behavior and directs alternatives. Every clause earns its place with zero redundancy.

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 7 parameters, no output schema, and no annotations, the description covers the core selection criteria—what it does, what it returns, and when to choose a sibling. It doesn't detail error states or callback mechanics, but the acknowledgement/confirmation distinction is the most important missing context for an agent.

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?

The schema already describes all 7 parameters with full coverage, and the description does not add additional field-level meaning beyond referring to the 'customer' and 'payment prompt'. This meets the baseline for schema-covered tools but adds no extra parameter context.

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 explicitly names the action ('Send'), the resource ('M-Pesa payment prompt (STK push)'), and the target ('to a customer'), making the primary function unmistakable. It also distinguishes itself from the sibling tool stk_push_and_wait by clarifying it does not confirm payment.

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

Usage Guidelines5/5

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

Provides clear context that this tool returns immediately without payment confirmation, and explicitly directs users to stk_push_and_wait when the outcome is needed. This effectively tells when to use this tool versus the key alternative.

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