promptshift_validate_ast
Evaluate semantic AST fidelity and measure prompt drift between original and transpiled agent instructions to verify cross-IDE parity and detect omitted constraints.
Instructions
Evaluate semantic AST fidelity and measure prompt drift percentage between an original agent instruction document and its transpiled counterpart. Use this tool to verify cross-IDE parity and detect omitted constraints after rule conversion. Do not use for code compilation or syntax execution. Returns a normalized fidelity score (0-100%).
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_text": "<source_text>",
"target_text": "<target_text>"
},
"name": "promptshift_validate_ast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_text | Yes | The original agent instruction or rule document before transpilation. | |
| target_text | Yes | The converted target rule document to benchmark for semantic equivalence. |