Skip to main content
Glama

Earnings

get_earnings
Read-only

Money earned by work shifts in a date range, in total and per job (overtime included), before tax; net after tax and fixed salary when the person set them. Default: this month so far.

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": "get_earnings"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day, YYYY-MM-DD, at most 92 days after from. Default: a week from "from"
fromNoFirst day, YYYY-MM-DD. Default: today

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, closed-world, non-destructive), so the description's job is to add domain behavior — and it does: gross figures before tax, overtime included, and net amounts only when the person has configured tax and fixed salary. That tells the agent when values may be absent or gross-only, which annotations alone could never convey.

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?

One dense sentence plus a short default clause — no filler, and the primary content (what is returned) leads before the default-range note. The semicolon-separated tax/salary qualifier is compact rather than padded.

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?

With no output schema, the description usefully explains the composition of the return value (total plus per-job, gross and net), which is the critical missing piece. Minor gaps remain: no mention of currency, and the default-range statement is not reconciled with the schema's per-field defaults.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema already documents both date fields, the YYYY-MM-DD format, the 92-day cap and per-field defaults, so heavy lifting is done upstream. The description still adds the effective overall default window ('this month so far'), though this sits slightly at odds with the schema's stated per-field defaults (to = a week from from), which could confuse an agent reasoning about an implicit range.

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 names a concrete resource (money earned by work shifts) and a scope (date range), and specifies the shape of the result: totals and per-job breakdown, overtime included. This clearly differentiates it from raw shift-listing siblings like get_shifts, since an agent can tell this is an aggregation/earnings view rather than a record list.

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

Usage Guidelines4/5

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

It supplies a concrete usage context by defining the default window ('this month so far'), which tells an agent it can call the tool with no arguments for a standard period. It stops short of explicitly naming an alternative (e.g. get_shifts for raw shift detail) or stating exclusions, so it is clear but not fully routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources