Skip to main content
Glama

up_get_category

Retrieve category details including name and hierarchical relationships from Up Banking to organize and analyze transaction data.

Instructions

Get details about a specific category by ID, including its name and parent/child relationships.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryIdYesThe unique identifier for the category (e.g., 'restaurants-and-cafes')

Implementation Reference

  • MCP tool handler for 'up_get_category': extracts categoryId from arguments, calls UpApiClient.getCategory(), and returns the JSON-formatted result as text content.
    case "up_get_category": { const args = request.params.arguments as { categoryId: string }; const result = await client.getCategory(args.categoryId); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; }
  • src/index.ts:334-349 (registration)
    Registration of the 'up_get_category' tool in the TOOLS array, including name, description, and input schema.
    { name: "up_get_category", description: "Get details about a specific category by ID, including its name and parent/child relationships.", inputSchema: { type: "object", properties: { categoryId: { type: "string", description: "The unique identifier for the category (e.g., 'restaurants-and-cafes')", }, }, required: ["categoryId"], }, },
  • UpApiClient helper method implementing the core logic: makes an authenticated GET request to the Up API /categories/{categoryId} endpoint.
    async getCategory(categoryId: string): Promise<{ data: CategoryResource }> { return this.makeRequest(`/categories/${categoryId}`); }
  • TypeScript interface defining the structure of a CategoryResource object returned by the Up API.
    interface CategoryResource { type: "categories"; id: string; attributes: { name: string; }; relationships: { parent: { data: { type: "categories"; id: string; } | null; }; children: { data: Array<{ type: "categories"; id: string; }>; }; }; }

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/alex1092/up-bank-mcp-server'

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