Generate PHP Repository (interface + implementation)
scaffold_repositoryGenerate a Repository interface and PDO implementation with prepared statements. Preserve existing files unless overwrite is enabled.
Instructions
Generates the Repository of a resource: ALWAYS the interface (contract) and the implementation (PDO adapter with prepared statements) together. Does not overwrite existing files unless overwrite=true.
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": {
"resourceName": "<resourceName>",
"fields": "<fields>"
},
"name": "scaffold_repository"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | ||
| overwrite | No | ||
| resourceName | Yes |