generate_advpl_example
Generate production-ready ADVPL/TL++ code examples for Protheus development, covering SQL, REST, SOAP, and MVC patterns with modern standards.
Instructions
Generate production-ready, modern ADVPL/TL++ code examples based on researched material. Supports ADVPL, TL++, SQL, REST, SOAP, and MVC patterns. Code follows modern standards: LOCAL variables, Framework APIs, SQL Server syntax, no obsolete patterns.
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": {
"language": "<language>",
"description": "<description>"
},
"name": "generate_advpl_example"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Additional context (e.g., table name, module, business rule) | |
| language | Yes | Target language or pattern | |
| description | Yes | What the code should do |