# Update inference policy models

Tool: `veryfront__update_inference_policy_models`

Update the models a project allows and denies and its default model, replacing each key sent; returns the policy. Requires project.settings.manage.

## Arguments

| Name                               | Type                                           | Required | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ---------------------------------- | ---------------------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `models`                           | object                                         |          | Models the project allows and denies. They only narrow what its account allows.                                                                                                                                                                                                                                                                                                                                                                                            |
| `default_model`                    | string · min length 1 · max length 200 \| null |          | Default model of the project. It must be allowed by the project's and its account's policy. Null uses the account default. Omit to keep the stored value.                                                                                                                                                                                                                                                                                                                  |
| `allow_provider_key_direct_routes` | boolean                                        |          | Whether the account's saved provider keys (for example an Anthropic key) may call their provider directly although the project states no tier. On, the default EU-resident floor does not apply to those routes, which may be served outside the EU; Veryfront's own routes keep it, and every requirement the project states (a tier, jurisdictions, hosts, models, precision) still applies. Saving a key alone never relaxes the policy. Omit to keep the stored value. |
| `project_reference`                | string · min length 1                          |          | Project ID or slug                                                                                                                                                                                                                                                                                                                                                                                                                                                         |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__update_inference_policy_models",
    "arguments": {}
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"project_id\":\"00000000-0000-0000-0000-000000000000\",\"configured\":false,\"enforced\":false,\"created_at\":\"string\",\"updated_at\":\"string\",\"updated_by\":\"00000000-0000-0000-0000-000000000000\",\"models\":{\"allowed\":[\"string\"],\"denied\":[\"string\"]},\"default_model\":\"string\",\"allow_provider_key_direct_routes\":false,\"account\":{\"models\":{\"allowed\":[\"string\"],\"denied\":[\"string\"]},\"default_model\":\"string\"},\"effective\":{\"models\":{\"allowed\":[\"string\"],\"denied\":[\"string\"]},\"default_model\":\"string\"}}"
      }
    ],
    "structuredContent": {
      "project_id": "00000000-0000-0000-0000-000000000000",
      "configured": false,
      "enforced": false,
      "created_at": "string",
      "updated_at": "string",
      "updated_by": "00000000-0000-0000-0000-000000000000",
      "models": {
        "allowed": [
          "string"
        ],
        "denied": [
          "string"
        ]
      },
      "default_model": "string",
      "allow_provider_key_direct_routes": false,
      "account": {
        "models": {
          "allowed": [
            "string"
          ],
          "denied": [
            "string"
          ]
        },
        "default_model": "string"
      },
      "effective": {
        "models": {
          "allowed": [
            "string"
          ],
          "denied": [
            "string"
          ]
        },
        "default_model": "string"
      }
    }
  }
}
```
