Skip to main content
Glama

Criar lançamento

astrea_create_entry

Creates financial entries for income or expenses in Astrea, requiring a client contact for income and supporting amounts, due dates, categories, accounts, and payment status.

Instructions

Cria um lançamento financeiro (ENTRY_IN = receita, exige contactId do cliente; ENTRY_OUT = despesa).

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": {
      "type": "<type>",
      "description": "<description>",
      "amount": "<amount>",
      "dueDate": "<dueDate>"
    },
    "name": "astrea_create_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
doneNoJá pago/recebido
typeYes
amountYes
caseIdNo
dueDateYesData no formato AAAA-MM-DD
accountIdNoDe astrea_list_accounts
contactIdNo
categoryIdNoobjectId de astrea_list_categories
descriptionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds the conditional contactId requirement for ENTRY_IN, which the schema does not express, but says nothing about side effects on balances, whether 'done' posts the entry immediately, or what is returned.

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?

A single compact sentence with the core verb and the enum decoding front-loaded; nothing is wasted. It is arguably too terse for a 9-parameter mutation tool, but there is no filler or redundancy.

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 9-parameter, 44%-covered mutation tool with no output schema, the description covers the most error-prone field (type/contactId pairing) but omits how the remaining optional fields interact and what happens on success. Adequate to call correctly in the common case, incomplete for the full parameter surface.

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 only 44% across 9 parameters, so the description should compensate more than it does. It clarifies the 'type' enum values and the conditional contactId dependency, but leaves accountId, categoryId, caseId, amount and done without any semantic explanation beyond their names.

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 and resource ('Cria um lançamento financeiro') and decodes the type enum into business meaning (ENTRY_IN = receita, ENTRY_OUT = despesa). It does not, however, distinguish this from close siblings like astrea_create_expense or astrea_create_honorary, which an agent could easily confuse with a generic financial entry.

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?

Provides one conditional rule (ENTRY_IN exige contactId do cliente), which is genuinely useful selection logic. It gives no guidance on when to prefer this tool over astrea_create_expense or astrea_create_honorary, and no prerequisites or exclusions are stated.

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