update_schema
Write field definitions to the Glean schema file. Use after infer_schema to save the schema or to manually update fields, with optional merge to combine with existing schema.
Instructions
Write field definitions to .glean/schema.json. Call this after infer_schema to save the agreed schema, or to make manual edits. Set merge: true to merge incoming fields with the existing schema (fields with the same name are replaced; new names are appended) instead of replacing the entire field list.
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": {
"fields": "<fields>"
},
"name": "update_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| merge | No | If true, merge incoming fields with the existing schema (fields with the same name are replaced; new names are appended). If false (default), the entire field list is replaced. | |
| fields | Yes | Field definitions to write to .glean/schema.json |