validate_completion_metadata
Validate billing metadata fields prior to prompt completion to catch attribution errors and avoid unnecessary costs.
Instructions
Preflight billing metadata before run_prompt_completion. Validates required fields and values without making changes, so you can catch attribution errors before paying for the call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client_id | No | Client ID for billing attribution | |
| app | No | App identifier (REQUIRED). Use your deployed app name, for example 'hourlink' or 'support-console'. | |
| env | No | Environment identifier (REQUIRED). Use your environment name, for example 'dev', 'staging', 'prod', or 'qa'. | |
| project_id | No | Project ID for granular billing | |
| feature | No | Feature name for tracking |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded and returned structured data | |
| data | No | Structured success payload when ok is true | |
| error | No | Structured error payload when ok is false |