Create Python metric draft
create_python_metric_draftCreates an immutable Python metric draft and an asynchronous preview from a historical conversation, so you can validate results before publishing; source or I/O changes require a new draft.
Instructions
Create an immutable Python metric draft. Source or input/output changes require a new draft and new previews. Create an asynchronous preview for a historical conversation before publishing.
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": {
"display_name": "<display_name>",
"source": "<source>",
"output_type": "<output_type>"
},
"name": "create_python_metric_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | ||
| source | Yes | ||
| description | No | ||
| output_type | Yes | ||
| display_name | Yes | ||
| requirements | No | ||
| target_metric_id | No | ||
| target_version_id | No |