get_model_contract
Get a model's machine-readable contract: required inputs with types and valid domains, cross-field constraints, sentinel-value meanings, and the government constants (with sources) the model uses. Set include_spec to also receive the full specification markdown (exact formulas, assumptions, exclusions, known issues).
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": {
"model": "<model>"
},
"name": "get_model_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model name from list_models, e.g. 'relocation' | |
| api_key | No | Worthune API key (wk_…) — required for include_spec on non-sample models; or send it once as an Authorization: Bearer header. | |
| include_spec | No | Also return the full spec markdown (default false). Public for the free-sample models; other models need api_key. |