Skip to main content
Glama

Lançar despesa

astrea_create_expense

Records an expense for a legal case or customer by entering the amount, description, and date to track case-related costs.

Instructions

Lança uma despesa em um processo/caso.

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": {
      "amount": "<amount>",
      "description": "<description>",
      "date": "<date>"
    },
    "name": "astrea_create_expense"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesData no formato AAAA-MM-DD
amountYes
caseIdNo
customerIdNo
descriptionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the write/non-destructive profile is known. The description adds only that the expense attaches to a case/process, but says nothing about side effects, whether caseId or customerId is mandatory, or what happens on failure — little beyond the structured metadata.

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

Conciseness3/5

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

A single short sentence with no wasted words and the core action front-loaded. However, the brevity reflects under-specification rather than disciplined concision given the 5-parameter, low-coverage schema.

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?

It is a concise sentence that names the resource and its container. However it omits the 5 parameters' semantics (particularly the relationship between caseId and customerId), side effects, and error behavior needed for confident invocation.

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

Parameters2/5

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

Schema description coverage is only 20% (only the date format is documented), so the description should compensate but does not: amount, description, caseId and customerId are never explained. The phrase "em um processo/caso" hints at the case/customer linkage but leaves the required vs. optional relationship ambiguous.

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?

States a specific verb ("Lança") plus resource ("despesa") and ties it to a case/process context, which distinguishes it from astrea_get_expense and astrea_delete_expense. It does not explicitly name or contrast with any sibling, so it falls short of a 5.

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

Usage Guidelines2/5

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

The description gives no when-to-use guidance, no prerequisites (e.g., an existing case or customer), and does not mention alternatives such as astrea_create_timesheet or astrea_create_honorary when a different financial record is appropriate. Usage must be inferred entirely from the name.

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

Deploy Server

Other Tools