up_ping
Test the Up Banking API connection and verify authentication is working properly.
Instructions
Test the Up API connection and verify authentication is working
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "up_ping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:385-395 (handler)MCP tool handler for 'up_ping': invokes UpApiClient.ping() and formats the result as text content.
case "up_ping": { const result = await client.ping(); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; } - src/index.ts:218-226 (registration)Tool registration in TOOLS array, including name, description, and empty input schema.
{ name: "up_ping", description: "Test the Up API connection and verify authentication is working", inputSchema: { type: "object", properties: {}, }, }, - src/index.ts:119-121 (helper)UpApiClient.ping() helper method: performs authenticated GET to Up API /util/ping endpoint via makeRequest.
async ping(): Promise<{ meta: { id: string; statusEmoji: string } }> { return this.makeRequest("/util/ping"); }