schema_session

Schema session lifecycle for the loaded project. op: LOAD (warm the in-memory CRDT session) | RELOAD (force reload from backend) | SYNC (catch up patches) | SNAPSHOT (return the data model: tables, relations, enum types; pass full=true for the entire raw document) | VALIDATE (ztype type checks, s...

Server Zion zion-mcp
Category Execute
Risk class High
Parameters 51 required

What schema_session does on Zion

AI agents invoke schema_session to trigger actions in Zion. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call — builds kicked off, notifications sent, workflows started.

ParameterTypeRequiredDescription
op string Yes
full boolean
appExId string | null
projectExId string
appVersionExId string | null

Parameters from the server's own tool schema.

Why schema_session needs a policy

This tool manages an in-memory CRDT session with multiple operations including loading, reloading, syncing, snapshotting, and validating schema state. It triggers external operations against a backend (RELOAD, SYNC) and executes state transitions in a session.

From the tool's definition Schema session lifecycle... op: LOAD (warm the in-memory CRDT session) | RELOAD (force reload from backend) | SYNC (catch up patches) | SNAPSHOT (return the data model...) | VALIDATE (ztype type checks, stable/beta/backend diagnostics)

Risk signalsBulk/mass operation — affects multiple targets

Questions about schema_session

What does the schema_session tool do? +

Schema session lifecycle for the loaded project. op: LOAD (warm the in-memory CRDT session) | RELOAD (force reload from backend) | SYNC (catch up patches) | SNAPSHOT (return the data model: tables, relations, enum types; pass full=true for the entire raw document) | VALIDATE (ztype type checks, stable/beta/backend diagnostics). Edits do not go live until sync_backend. It is categorised as a Execute tool in the Zion MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.

What parameters does schema_session accept? +

schema_session accepts 5 parameters: op, full, appExId, projectExId, appVersionExId. Required: op. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on schema_session? +

Register the Zion MCP server in PolicyLayer and add a rule for schema_session: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Zion. Nothing to install.

What risk level is schema_session? +

schema_session is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.

Can I rate-limit schema_session? +

Yes. Add a rate_limit block to the schema_session rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block schema_session completely? +

Set action: deny in the PolicyLayer policy for schema_session. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides schema_session? +

schema_session is provided by the Zion MCP server (zion-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// LOOK UP ANOTHER SERVER

Every MCP server has a record like this.

Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.