validate_document_input
Validates document input by checking the target row exists and that category, approvalBy, and stage values are in their respective picklists. Returns validation errors or success.
Instructions
Validate Document input before creation (proactive check).
Checks:
- Target entity (SheetName + RowName) exists
- Category exists in PickList.DocumentType
- ApprovalBy exists in PickList.ApprovalBy
- Stage exists in PickList.StageType
Returns validation result with errors or success message.
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": {
"excel_path": "<excel_path>",
"sheet_name": "<sheet_name>",
"row_name": "<row_name>"
},
"name": "validate_document_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stage | No | ||
| category | No | ||
| row_name | Yes | ||
| excel_path | Yes | ||
| sheet_name | Yes | ||
| approval_by | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||