Skip to main content
Glama
LamPyrid
by RadCod3

Get Category

get_category
Read-onlyIdempotent

Retrieve a category by ID and optionally calculate total spent and earned within a start/end date range.

Instructions

Retrieve a single category, optionally with spending for a period.

Provide start_date and end_date together to include the total spent and earned in this category over that period.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "req": "<req>"
    },
    "name": "get_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
reqYesRequest for getting a single category by ID, with optional spending period.

Output Schema

NameRequiredDescriptionDefault
idYesUnique identifier for the category
nameYesDisplay name of the category
notesNoOptional notes or description about this category
spentNoTotal spent in this category for the requested period (positive number). Only present when a date range is requested.
earnedNoTotal earned in this category for the requested period (positive number). Only present when a date range is requested.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is covered. The description adds the non-obvious behavioral switch: supplying a date pair changes the response from a plain category record to one including total spent and earned for that period.

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 short sentences with the core action front-loaded and the optional date behavior immediately after. No filler or 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?

An output schema exists, so return values need not be spelled out, and the nested request object is fully described in the schema. The description covers the main mode distinction; only the error behavior for a partial date range and routing against sibling tools are absent.

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?

Schema coverage is 100%, so the id and date parameters are already documented in the schema, including the pairing constraint. The description restates the pairing rule and clarifies that the dates scope the spending/earning totals, adding modest meaning beyond the schema rather than new syntax or format detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ("Retrieve a single category") and signals the optional aggregation mode. The word "single" implicitly contrasts with a list operation, but no sibling such as list_categories is named, so differentiation is left to inference.

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?

It states a usage rule for the date parameters (provide both to get spending totals), which is a genuine when-to-do-X condition. It gives no guidance on when to call this versus list_categories or the budget/spending tools, and does not say what happens if only one date is supplied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.