Skip to main content
Glama
prismicio

@prismicio/mcp-server

Official
by prismicio

save_slice_data

Save or update a Prismic slice's model and mocks in your project. Validates the provided data and makes local changes to the slice library.

Instructions

PURPOSE: Creates or updates a Prismic slice model and/or mocks in your project with given valid data, performing local changes to the slice library.

USAGE: Use to validate and create/update slice data (model and/or mocks).

RETURNS: Success confirmation or detailed validation errors if the data is invalid.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sliceMachineConfigAbsolutePathYesAbsolute path to 'slicemachine.config.json' file
sliceAbsolutePathYesAbsolute path to the directory of the slice to be created/updated
dataYesThe data to be saved for the slice. At least one of 'model' or 'mocks' must be specified.
Behavior2/5

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

No annotations provided, so description carries full burden. States it performs 'local changes' and returns success/errors, but lacks details on overwrite behavior, permissions, or reversibility. Minimal disclosure.

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?

Three sentences, no fluff. Front-loaded with purpose. Concise and well-structured.

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

Completeness3/5

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

Adequately covers purpose and returns, but could be more explicit about the requirement that at least one of model/mocks must be provided (schema notes it, description does not). No output schema, but return description suffices.

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 coverage is 100% with well-described parameters. Description adds 'with given valid data' but little extra beyond schema. Baseline score 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?

Clearly states the verb 'creates or updates' and resource 'Prismic slice model and/or mocks' with scope 'local changes to the slice library'. Does not explicitly differentiate from sibling tools like add_slice_to_custom_type, but purpose is well-defined.

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

Usage Guidelines3/5

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

Provides basic usage guidance: 'Use to validate and create/update slice data'. Does not mention when not to use or alternatives among siblings, but implication is clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/prismicio/prismic-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server