Skip to main content
Glama

Get receipts

get_receipts
Read-onlyIdempotent

Read what the user spent on emero, the same numbers as the Receipts page in the app: the total, how many generations failed and were refunded (they cost $0), a breakdown by model, project, day or tool, and the newest transactions with their artifact ids. Use it for any spend question: what did I spend this week, which model costs me most, what did this project cost, how many of my runs failed. It only reads, it never changes a balance. Answer with the numbers it returns. Spend can inform a suggestion, but the model stays the user's choice: never switch or downgrade a model because of cost.

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_receipts"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd date, YYYY-MM-DD (UTC), inclusive. Default today
fromNoStart date, YYYY-MM-DD (UTC)
toolNoOnly this kind of generation, e.g. image, video, music, speech
limitNoTransactions to list, 1-50. Default 15
modelNoOnly this model, matched on its name or id, e.g. "kling"
scopeNobrand (default) = every project in this brand. this_project = only this chat's project (needs project_id)
cursorNoFrom a previous call's "More" line, for the next page of transactions
periodNoWindow ending now. Default 30d. Ignored when from is given
statusNoTransactions to list: all (default), charged, or refunded failures only
group_byNoBreakdown to show. Default model
project_idNoOpaque per-chat project id: "p-" plus 6 random letters and digits. Every chat is a new project. Mint one on your first emero call and pass that SAME id on every call in this chat. Never mint a second one in the same chat, even for a new topic, campaign or subject. Only when the user asks to continue an earlier project, reuse its id from get_emero_brain's project list. An agent working in a folder (Claude Code, Codex) uses the folder's .emero.json project_id instead: load_skill("projects").

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project_id / description
      Previous value: -"Opaque per-chat project id: \"p-\" plus 6 random letters and digits. Every chat is a new project. Mint one on your first emero call and pass that SAME id on every call in this chat. Never mint a second one in the same chat, even for a new topic, campaign or subject. Only when the user asks to continue an earlier project, reuse its id from get_emero_brain's project list."New value: +"Opaque per-chat project id: \"p-\" plus 6 random letters and digits. Every chat is a new project. Mint one on your first emero call and pass that SAME id on every call in this chat. Never mint a second one in the same chat, even for a new topic, campaign or subject. Only when the user asks to continue an earlier project, reuse its id from get_emero_brain's project list. An agent working in a folder (Claude Code, Codex) uses the folder's .emero.json project_id instead: load_skill(\"projects\")."
  2. Changed1 schema field changed
    • changedInput schema / properties / project_id / pattern
      Previous value: -"^p-[a-z0-9]{6}$"New value: +"^[A-Za-z0-9_-]{1,64}$"
  3. Changed1 schema field changed
    • changedInput schema / properties / project_id / pattern
      Previous value: -"^[A-Za-z0-9_-]{1,64}$"New value: +"^p-[a-z0-9]{6}$"
  4. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, yet the description still adds real context: refunded failures are counted but cost $0, the figures match the in-app Receipts page, and it never touches a balance. It also adds an important downstream behavioral constraint (never switch or downgrade a model because of cost), which annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads what the tool returns before listing use cases, and every clause is fairly dense with information. The closing sentences about model choice are policy guidance rather than tool description, slightly diluting focus, though they still earn their place as usage constraints.

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 11 optional parameters and no output schema, the description carries the return-shape burden and does so by listing total, refunded-failure count, group-by breakdown, and recent transactions with artifact ids. It does not describe pagination behavior or how limit interacts with the cursor, which is the main remaining gap.

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%, so baseline is 3, but the description adds meaning beyond the schema by mapping 'a breakdown by model, project, day or tool' to the group_by dimension and clarifying that refunded failures are surfaced at $0. It does not explain the from/to vs period precedence or cursor paging in prose, so it stops short of a 5.

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?

States a specific verb and resource ('read what the user spent'), names the canonical source of truth ('the same numbers as the Receipts page in the app'), and enumerates the returned aggregates (total, refunded failures, breakdown, newest transactions). This clearly separates it from get_pricelist (list prices) and list_project_creations (assets).

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?

Gives concrete when-to-use triggers with sample questions ('what did I spend this week, which model costs me most, what did this project cost, how many of my runs failed'), signaling it should answer any spend question. It lacks explicit when-not guidance or a named alternative (e.g. get_pricelist for future/unit pricing), so it falls short of a 5.

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.