> Call `talotrace_start_session` to test an app. Full index: /llms.txt. Errors: /reference/problems.

# Environments, test data and knowledge

## `talotrace_list_projects`

List the projects you can use, each with the id the other tools take.

Annotations: reads only.

| Argument | Type             | Required | What it is |
| -------- | ---------------- | -------- | ---------- |
| `name`   | `string \| null` | no       |            |

```json
{
  "additionalProperties": false,
  "properties": {
    "name": {
      "anyOf": [
        {
          "description": "Only names holding this text, any case.",
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object"
}
```

## `talotrace_create_project`

Create a project for an app, so sessions and runs have a home.

Annotations: changes data, never deletes.

| Argument          | Type     | Required | What it is                |
| ----------------- | -------- | -------- | ------------------------- |
| `name`            | `string` | yes      |                           |
| `idempotency_key` | `string` | yes      | Reuse it to retry safely. |

```json
{
  "additionalProperties": false,
  "properties": {
    "idempotency_key": {
      "description": "Reuse it to retry safely.",
      "maxLength": 128,
      "minLength": 8,
      "type": "string"
    },
    "name": {
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "name",
    "idempotency_key"
  ],
  "type": "object"
}
```

## `talotrace_list_environments`

List an app's environments: name, address and which is the default.

Annotations: reads only.

| Argument     | Type             | Required | What it is |
| ------------ | ---------------- | -------- | ---------- |
| `project_id` | `string \| null` | no       |            |
| `app_id`     | `string`         | yes      |            |

```json
{
  "additionalProperties": false,
  "properties": {
    "app_id": {
      "minLength": 1,
      "type": "string"
    },
    "project_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "app_id"
  ],
  "type": "object"
}
```

## `talotrace_save_environment`

Add an environment to an app, or change one: its name, address and hosts. Ask the user first.

Annotations: changes data, never deletes.

| Argument          | Type              | Required | What it is                |
| ----------------- | ----------------- | -------- | ------------------------- |
| `project_id`      | `string \| null`  | no       |                           |
| `app`             | `string`          | yes      |                           |
| `environment`     | `string`          | no       |                           |
| `name`            | `string`          | no       |                           |
| `base_url`        | `string`          | no       |                           |
| `hosts`           | `array of string` | no       |                           |
| `idempotency_key` | `string`          | yes      | Reuse it to retry safely. |

```json
{
  "additionalProperties": false,
  "properties": {
    "app": {
      "minLength": 1,
      "type": "string"
    },
    "base_url": {
      "format": "uri",
      "maxLength": 2083,
      "minLength": 1,
      "type": "string"
    },
    "environment": {
      "minLength": 1,
      "type": "string"
    },
    "hosts": {
      "items": {
        "minLength": 1,
        "type": "string"
      },
      "maxLength": 20,
      "type": "array"
    },
    "idempotency_key": {
      "description": "Reuse it to retry safely.",
      "maxLength": 128,
      "minLength": 8,
      "type": "string"
    },
    "name": {
      "pattern": "^[a-z0-9][a-z0-9-]{0,39}$",
      "type": "string"
    },
    "project_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "app",
    "idempotency_key"
  ],
  "type": "object"
}
```

## `talotrace_list_test_data`

List the test data of an environment. Values are never returned.

Annotations: reads only.

| Argument      | Type                   | Required | What it is |
| ------------- | ---------------------- | -------- | ---------- |
| `project_id`  | `string \| null`       | no       |            |
| `app_id`      | `string \| null`       | no       |            |
| `url`         | `string \| null`       | no       |            |
| `environment` | `string \| null`       | no       |            |
| `kind`        | `ItemCategory \| null` | no       |            |
| `limit`       | `integer`              | no       |            |
| `cursor`      | `string \| null`       | no       |            |

```json
{
  "$defs": {
    "ItemCategory": {
      "enum": [
        "payment_card",
        "account",
        "file",
        "record"
      ],
      "type": "string"
    }
  },
  "additionalProperties": false,
  "properties": {
    "app_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "cursor": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "environment": {
      "anyOf": [
        {
          "pattern": "^[a-z0-9][a-z0-9-]{0,39}$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "kind": {
      "anyOf": [
        {
          "$ref": "#/$defs/ItemCategory"
        },
        {
          "type": "null"
        }
      ]
    },
    "limit": {
      "default": 50,
      "maximum": 100,
      "minimum": 1,
      "type": "integer"
    },
    "project_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "url": {
      "anyOf": [
        {
          "format": "uri",
          "maxLength": 2083,
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object"
}
```

## `talotrace_save_test_data`

Save a login, a value or a set of logins for an environment. Secrets are sealed.

Annotations: changes data, never deletes.

| Argument          | Type                   | Required | What it is                |
| ----------------- | ---------------------- | -------- | ------------------------- |
| `project_id`      | `string \| null`       | no       |                           |
| `app_id`          | `string \| null`       | no       |                           |
| `url`             | `string \| null`       | no       |                           |
| `environment`     | `string \| null`       | no       |                           |
| `kind`            | `TestDataSaveKind`     | yes      |                           |
| `account`         | `AccountInput \| null` | no       |                           |
| `data`            | `DataInput \| null`    | no       |                           |
| `csv`             | `string \| null`       | no       |                           |
| `idempotency_key` | `string`               | yes      | Reuse it to retry safely. |

```json
{
  "$defs": {
    "AccountInput": {
      "additionalProperties": false,
      "properties": {
        "extra": {
          "additionalProperties": {
            "type": "string"
          },
          "maxProperties": 50,
          "propertyNames": {
            "minLength": 1
          },
          "type": "object"
        },
        "label": {
          "anyOf": [
            {
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "login_id": {
          "maxLength": 320,
          "minLength": 1,
          "type": "string"
        },
        "password": {
          "maxLength": 1024,
          "minLength": 1,
          "type": "string",
          "writeOnly": true
        }
      },
      "required": [
        "login_id",
        "password"
      ],
      "type": "object"
    },
    "DataInput": {
      "additionalProperties": false,
      "properties": {
        "key": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "label": {
          "maxLength": 200,
          "minLength": 1,
          "type": "string"
        },
        "values": {
          "additionalProperties": {
            "$ref": "#/$defs/PlainValue"
          },
          "maxProperties": 50,
          "minProperties": 1,
          "propertyNames": {
            "minLength": 1
          },
          "type": "object"
        }
      },
      "required": [
        "label",
        "values"
      ],
      "type": "object"
    },
    "PlainValue": {
      "additionalProperties": false,
      "properties": {
        "secret": {
          "default": false,
          "type": "boolean"
        },
        "value": {
          "maxLength": 4096,
          "type": "string"
        }
      },
      "required": [
        "value"
      ],
      "type": "object"
    },
    "TestDataSaveKind": {
      "enum": [
        "account",
        "data",
        "accounts_csv"
      ],
      "type": "string"
    }
  },
  "additionalProperties": false,
  "properties": {
    "account": {
      "anyOf": [
        {
          "$ref": "#/$defs/AccountInput"
        },
        {
          "type": "null"
        }
      ]
    },
    "app_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "csv": {
      "anyOf": [
        {
          "maxLength": 262144,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "data": {
      "anyOf": [
        {
          "$ref": "#/$defs/DataInput"
        },
        {
          "type": "null"
        }
      ]
    },
    "environment": {
      "anyOf": [
        {
          "pattern": "^[a-z0-9][a-z0-9-]{0,39}$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "idempotency_key": {
      "description": "Reuse it to retry safely.",
      "maxLength": 128,
      "minLength": 8,
      "type": "string"
    },
    "kind": {
      "$ref": "#/$defs/TestDataSaveKind"
    },
    "project_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "url": {
      "anyOf": [
        {
          "format": "uri",
          "maxLength": 2083,
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "kind",
    "idempotency_key"
  ],
  "type": "object"
}
```

## `talotrace_upload_build`

Upload an app build from this computer. Only the local MCP server offers it.

Annotations: changes data, never deletes.

| Argument          | Type             | Required | What it is |
| ----------------- | ---------------- | -------- | ---------- |
| `project_id`      | `string \| null` | no       |            |
| `app_id`          | `string`         | yes      |            |
| `file_path`       | `string`         | yes      |            |
| `app_package`     | `string \| null` | no       |            |
| `channel`         | `string`         | no       |            |
| `tag`             | `string \| null` | no       |            |
| `idempotency_key` | `string`         | yes      |            |

```json
{
  "additionalProperties": false,
  "properties": {
    "app_id": {
      "minLength": 1,
      "type": "string"
    },
    "app_package": {
      "anyOf": [
        {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "channel": {
      "default": "dev",
      "pattern": "^[a-z0-9][a-z0-9-]{0,62}$",
      "type": "string"
    },
    "file_path": {
      "maxLength": 4096,
      "minLength": 1,
      "type": "string"
    },
    "idempotency_key": {
      "maxLength": 128,
      "minLength": 8,
      "type": "string"
    },
    "project_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "tag": {
      "anyOf": [
        {
          "pattern": "^\\S{1,128}$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "app_id",
    "file_path",
    "idempotency_key"
  ],
  "type": "object"
}
```

## `talotrace_search_knowledge`

Search the product knowledge of a project: its terms and rules.

Annotations: reads only.

| Argument     | Type              | Required | What it is |
| ------------ | ----------------- | -------- | ---------- |
| `project_id` | `string \| null`  | no       |            |
| `queries`    | `array of string` | yes      |            |
| `app_id`     | `string \| null`  | no       |            |

```json
{
  "additionalProperties": false,
  "properties": {
    "app_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "project_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "queries": {
      "items": {
        "minLength": 1,
        "type": "string"
      },
      "maxItems": 5,
      "minItems": 1,
      "type": "array"
    }
  },
  "required": [
    "queries"
  ],
  "type": "object"
}
```

## `talotrace_suggest_knowledge`

Suggest a term for the product knowledge. A person approves it before anyone uses it.

Annotations: changes data, never deletes.

| Argument          | Type              | Required | What it is                |
| ----------------- | ----------------- | -------- | ------------------------- |
| `project_id`      | `string \| null`  | no       |                           |
| `type`            | `"terminology"`   | yes      |                           |
| `title`           | `string`          | yes      |                           |
| `data`            | `TerminologyData` | yes      |                           |
| `rationale`       | `string`          | no       |                           |
| `idempotency_key` | `string`          | yes      | Reuse it to retry safely. |

```json
{
  "$defs": {
    "TerminologyData": {
      "additionalProperties": false,
      "properties": {
        "canonical_term": {
          "maxLength": 200,
          "minLength": 1,
          "type": "string"
        },
        "definition": {
          "maxLength": 4000,
          "minLength": 1,
          "type": "string"
        },
        "examples": {
          "items": {
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 10,
          "type": "array"
        },
        "type": {
          "const": "terminology",
          "default": "terminology",
          "type": "string"
        }
      },
      "required": [
        "canonical_term",
        "definition"
      ],
      "type": "object"
    }
  },
  "additionalProperties": false,
  "properties": {
    "data": {
      "$ref": "#/$defs/TerminologyData"
    },
    "idempotency_key": {
      "description": "Reuse it to retry safely.",
      "maxLength": 128,
      "minLength": 8,
      "type": "string"
    },
    "project_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "rationale": {
      "default": "",
      "maxLength": 2000,
      "type": "string"
    },
    "title": {
      "maxLength": 200,
      "minLength": 1,
      "type": "string"
    },
    "type": {
      "const": "terminology",
      "type": "string"
    }
  },
  "required": [
    "type",
    "title",
    "data",
    "idempotency_key"
  ],
  "type": "object"
}
```

## `talotrace_get_guide`

Read a TaloTrace guide topic, or list the available topics when no topic is given.

Annotations: reads only.

| Argument | Type             | Required | What it is |
| -------- | ---------------- | -------- | ---------- |
| `topic`  | `string \| null` | no       |            |

```json
{
  "additionalProperties": false,
  "properties": {
    "topic": {
      "anyOf": [
        {
          "pattern": "^[a-z0-9][a-z0-9-]{0,62}$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object"
}
```