Skip to main content

Execution Logs

Execution logs allow you to debug business rules and understand what happened in each execution.

MCP Tool: get_rule_logs

Profile: advanced

Gets the execution logs of rules for an entity.

Parameters

ParameterTypeRequiredDescription
entityNamestringYesEntity name
ruleIdstringNoFilter by specific rule
limitnumberNoMaximum logs to return

Example

get_rule_logs({
entityName: "facturas",
limit: 20
})

Information in the Logs

Each log includes:

  • Rule that was executed (name and ID)
  • Affected record (ID)
  • Trigger that fired the execution
  • Result: success, failure, or error
  • Input and output values
  • Timestamp

MCP Tool: test_business_rule

Profile: advanced

Tests a rule with test data without affecting real records.

Parameters

ParameterTypeRequiredDescription
entityNamestringYesEntity name
ruleIdstringYesID of the rule to test
testDataobjectYesTest data

Example

test_business_rule({
entityName: "facturas",
ruleId: "uuid-de-la-regla",
testData: {
cantidad: 10,
precio_unitario: 100,
iva_pct: 21
}
})

The result shows the calculated values without saving anything to the database.

Creado con Fyso