MCP serverAvailable tools
Save configuration
Create or update an organization location or receipt field. Creating a field with an existing normalized name returns conflict; retrieve it with get_configuration and use operation update with its entryId. For field updates, omit values to preserve options; a supplied array replaces all options and an empty array clears them. Never use an incomplete preview as the replacement.
MCP tool
save_configurationPurpose
- Use when
- Organization configuration needs to be added or changed.
- Do not use when
- You need to remove configuration or edit a product record.
- Required permissions
- Side effects
- Writes data
- Idempotency
- Idempotent
Input schema
JSON Schema{ "type": "object", "properties": { "idempotencyKey": { "type": "string", "minLength": 1, "maxLength": 200, "description": "Unique retry key for this exact operation. Reuse it only when retrying the same request." }, "input": { "anyOf": [ { "type": "object", "properties": { "operation": { "const": "create" }, "kind": { "const": "location" }, "name": { "$ref": "#/definitions/__schema0" }, "folioPrefix": { "$ref": "#/definitions/__schema1" }, "timeZone": { "$ref": "#/definitions/__schema3" } }, "required": [ "operation", "kind", "name" ], "additionalProperties": false }, { "type": "object", "properties": { "operation": { "const": "update" }, "kind": { "const": "location" }, "entryId": { "type": "string" }, "name": { "$ref": "#/definitions/__schema0" }, "folioPrefix": { "$ref": "#/definitions/__schema1" }, "timeZone": { "$ref": "#/definitions/__schema3" } }, "required": [ "operation", "kind", "entryId", "name" ], "additionalProperties": false }, { "type": "object", "properties": { "operation": { "const": "create" }, "kind": { "const": "sales_receipt_field" }, "name": { "$ref": "#/definitions/__schema7" }, "fieldType": { "$ref": "#/definitions/__schema8" }, "required": { "$ref": "#/definitions/__schema9" }, "values": { "$ref": "#/definitions/__schema10" } }, "required": [ "operation", "kind", "name", "fieldType", "required" ], "additionalProperties": false }, { "type": "object", "properties": { "operation": { "const": "update" }, "kind": { "const": "sales_receipt_field" }, "entryId": { "type": "string" }, "name": { "$ref": "#/definitions/__schema7" }, "fieldType": { "$ref": "#/definitions/__schema8" }, "required": { "$ref": "#/definitions/__schema9" }, "values": { "$ref": "#/definitions/__schema10" } }, "required": [ "operation", "kind", "entryId", "name", "fieldType", "required" ], "additionalProperties": false } ] } }, "required": [ "idempotencyKey", "input" ], "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "definitions": { "__schema0": { "type": "string", "minLength": 1 }, "__schema1": { "description": "Location-only receipt folio prefix", "allOf": [ { "type": "string" } ] }, "__schema3": { "description": "Location-only IANA time zone; null clears it", "allOf": [ { "anyOf": [ { "type": "string" }, { "type": "null" } ] } ] }, "__schema7": { "type": "string", "minLength": 1 }, "__schema8": { "enum": [ "select", "checkbox" ] }, "__schema9": { "type": "boolean" }, "__schema10": { "type": "array", "items": { "type": "string", "minLength": 1 } } }}Output schema
JSON Schema{ "type": "object", "properties": { "data": { "anyOf": [ { "type": "object", "properties": { "locationId": { "type": "string", "minLength": 1 }, "name": { "type": "string" }, "folioPrefix": { "type": "string" }, "timeZone": { "type": "string" }, "address": { "type": "object", "properties": { "formattedAddress": { "type": "string" }, "street": { "type": "string" }, "exterior": { "type": "string" }, "interior": { "type": "string" }, "neighborhood": { "type": "string" }, "city": { "type": "string" }, "municipality": { "type": "string" }, "state": { "type": "string" }, "zip": { "type": "string" }, "country": { "type": "string" }, "placeId": { "type": "string" } }, "additionalProperties": false }, "pin": { "type": "object", "properties": { "latitude": { "type": "number", "minimum": -90, "maximum": 90 }, "longitude": { "type": "number", "minimum": -180, "maximum": 180 } }, "required": [ "latitude", "longitude" ], "additionalProperties": false }, "radiusMeters": { "type": "number", "minimum": 0 }, "updatedAt": { "type": "string", "format": "date-time" } }, "required": [ "locationId", "name", "updatedAt" ], "additionalProperties": false }, { "type": "object", "properties": { "fieldId": { "type": "string", "minLength": 1 }, "name": { "type": "string" }, "type": { "enum": [ "select", "checkbox" ] }, "required": { "type": "boolean" }, "order": { "type": "number" }, "values": { "type": "array", "items": { "type": "string" } }, "valuesComplete": { "type": "boolean" } }, "required": [ "fieldId", "name", "type", "required", "order", "values", "valuesComplete" ], "additionalProperties": false } ] }, "error": { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "code": { "enum": [ "validation_error", "unauthenticated", "forbidden", "payment_required", "not_found", "method_not_allowed", "conflict", "idempotency_conflict", "operation_in_progress", "recovery_required", "migration_required", "rate_limited", "provider_unavailable", "internal" ] }, "message": { "type": "string" }, "details": { "type": "object", "properties": { "document": { "type": "object", "properties": { "documentRef": { "type": "string", "pattern": "^(invoice|withholding|sales_receipt|declaration|tax_compliance_opinion|sales_receipt_refund):.+$" }, "editable": { "type": "boolean" } }, "required": [ "documentRef", "editable" ], "additionalProperties": false }, "issues": { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "message": { "type": "string" }, "code": { "type": "string" } }, "required": [ "path", "message" ], "additionalProperties": false } }, "retryable": { "type": "boolean" }, "retryAfterSeconds": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "reason": { "type": "string" }, "balanceMinor": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "topUpUrl": { "type": "string" } }, "additionalProperties": false } }, "required": [ "code", "message" ], "additionalProperties": false } }, "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "oneOf": [ { "required": [ "data" ] }, { "required": [ "error" ] } ]}