write_test_dataset
Writes manual entry samples into approved Test datasets via Canary SAF, validating records and capturing audit metadata with optional dry-run support.
Instructions
Write manual entry samples into approved Test/* datasets via Canary SAF.
Args:
dataset: The Test dataset to target (e.g., "Test/Maceira").
records: List of objects with keys tag, value, and optional timestamp/quality.
original_prompt: Natural-language instruction captured for auditing.
role: Caller role; must match one of CANARY_TESTER_ROLES (default: "tester").
dry_run: When True, validate payload but skip the actual Canary API call.
Returns: Dict summarising the write attempt, including recorded prompt and role metadata.
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": {
"dataset": "<dataset>",
"records": "<records>",
"original_prompt": "<original_prompt>",
"role": "<role>"
},
"name": "write_test_dataset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | ||
| dataset | Yes | ||
| dry_run | No | ||
| records | Yes | ||
| original_prompt | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||