Skip to main content
Glama

log_expense

Record business expenses with category, amount, date, payment method, and attendees so sales reps can track reimbursable costs and flag incomplete meal details for follow-up.

Instructions

Log any business expense. Categories: meals, client entertainment, parking, tolls, fuel, lodging, airfare, baggage fees, rideshare, taxi, public transit, train, rental car, car wash, conference, training, software, phone, internet, shipping, printing, supplies, client gift, tips, other. Everyday words work too ("uber", "hotel", "flight", "lunch", "wifi"). amount: "18.50", "$1,234.00"; negative for a refund. date: 2026-11-06, 11/06/2026, "yesterday". payment_method: personal card, corporate card, cash, company account, other (never the card number). A meal without purpose/attendees is still logged and flagged; ask the rep for them, then call update_expense. Confirm the amount first if it came from a photo.

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": {
      "category": "<category>",
      "amount": "<amount>"
    },
    "name": "log_expense"
  }
}

Input Schema

NameRequiredDescriptionDefault
taxNo
tipNo
dateNo
notesNo
amountYes
companyNo
purposeNo
categoryYes
currencyNoUSD
merchantNo
attendeesNo
reimbursableNo
payment_methodNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that incomplete meal records are still accepted but flagged, that negative amounts represent refunds, and that card numbers must never be passed. It stops short of describing the response payload, duplicate handling, or whether re-logging is safe.

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-loaded with the purpose, then grouped by parameter, with the category list front and the operational caveats last. The long category/alias enumeration is bulky but functional; little of the text is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter mutation with no annotations and no output schema, the description covers the two required fields and the tricky edge cases well, but leaves most optional parameters unexplained and never indicates what a successful log returns.

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 0% across 13 parameters, so the description must compensate. It adds real meaning for four of them (category synonyms, amount formats and refund sign, date formats, payment_method options), but tax, tip, notes, currency, merchant, company, reimbursable and the attendance fields are left entirely to bare property titles.

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?

Opens with a specific verb+resource ('Log any business expense') and immediately enumerates the category vocabulary, so an agent knows exactly what this tool creates. It also distinguishes itself from the sibling update_expense by naming it as the follow-up path.

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

Usage Guidelines5/5

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

Gives explicit conditional routing: if a meal lacks purpose/attendees, still log it and then call update_expense. It also imposes a precondition ('Confirm the amount first if it came from a photo'), which is genuine when-to-use guidance rather than restated purpose.

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