Set which schema is exposed
set_schema_exposureSet the exact datasource schema exposed to governed tools. Choose entities by UUID or name and optional fields by UUID or name, or use expose_all. PII cannot be confirmed through MCP: flagged fields return a Setup-pane handoff for a human Administrator. The datasource's schema must first be imported or declared: database schemas are imported, while service connectors declare their entities when published. A missing import or declaration is refused with the datasource's next step.
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": {
"datasource": "<datasource>"
},
"name": "set_schema_exposure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entities | No | Exact entities to expose; omitted fields means every field in that entity | |
| datasource | Yes | Required datasource UUID whose exact schema exposure will be replaced. Use get_schema to find datasource IDs. A datasource that has not finished setup is refused with datasource_not_ready. | |
| expose_all | No | Expose every entity and field when true, or approve an empty schema when false; mutually exclusive with entities | |
| setup_step_id | No | Optional setup step UUID this call fulfils: this datasource's own "Select your schema" step from get_setup_journal. | |
| application_id | No | Optional Application UUID whose build this call serves (Administrator only). Setup steps this call opens record it, so they show on that Application's build screen; the resources themselves stay shared by the Project. A shared step it reuses keeps the Application it was opened for, so a step it returns may be watchable with get_setup_journal only without application_id. Use the build's application_id, the one you call describe_application with. |