poem_translate
Parses POEM pseudo-code specs, validates them, and creates a structured translation brief for accurate code generation in any target language.
Instructions
Prepare a .poem spec for translation to a target language. Parses the POEM, validates it, and returns a structured translation brief.
YOU (the LLM) then use this brief to generate idiomatic code in the target language. The tool handles parsing and validation. You handle the translation.
Supported targets: any programming language (python, typescript, go, rust, java, sql, swift, kotlin, etc).
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": {
"source": "<source>",
"target": "<target>"
},
"name": "poem_translate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | Optional style hints: "idiomatic" (default), "minimal", "verbose", "production" | |
| source | Yes | The .poem file content | |
| target | Yes | Target language (e.g. "python", "go", "typescript") | |
| filename | No | Optional source filename |