Skip to main content
Glama

Set which schema is exposed

set_schema_exposure
DestructiveIdempotent

Set 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

NameRequiredDescriptionDefault
entitiesNoExact entities to expose; omitted fields means every field in that entity
datasourceYesRequired 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_allNoExpose every entity and field when true, or approve an empty schema when false; mutually exclusive with entities
setup_step_idNoOptional setup step UUID this call fulfils: this datasource's own "Select your schema" step from get_setup_journal.
application_idNoOptional 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Despite annotations already flagging destructiveHint=true and idempotentHint=true, the description adds substantial behavior: exposure is replaced wholesale, PII cannot be confirmed through MCP so flagged fields produce a Setup-pane handoff to a human Administrator, missing import/declaration is refused, and application_id has subtle shared-step reuse semantics.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four dense, front-loaded sentences with the purpose first and prerequisites after. A couple of sentences are compressed to the point of being terse ('A missing import or declaration is refused with the datasource's next step'), but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, 5-parameter schema-mutation tool with no output schema, the description covers prerequisites, human-handoff behavior, replacement semantics, and the application_id nuance -- everything an agent needs before invoking it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter is already documented in structured data. The description restates the entity/field selection modes and expose_all without adding format or syntax detail beyond the schema; baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource -- 'Set the exact datasource schema exposed to governed tools' -- with the important qualifier that this replaces the existing exposure. It's clearly a write-side counterpart to schema-reading tools, though it doesn't name a sibling alternative explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete selection modes (entities by UUID or name, optional fields, or expose_all) and a real prerequisite: the schema must already be imported (databases) or declared (published service connectors), otherwise the call is refused with a next step. It lacks an explicit 'use X instead when...' comparison to siblings, keeping it short of 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources