Skip to main content
Glama
UVU-Store

shopify-graphql-mcp

by UVU-Store

create_validation

Create a cart or checkout validation rule using a Shopify Function; optionally pass metafields to configure the function.

Instructions

Create a new cart/checkout validation rule using a Shopify Function

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
functionIdYesID of the validation function to use
metafieldsNoConfiguration metafields for the function
Behavior2/5

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

No annotations are provided. The description only states the action without disclosing side effects, prerequisites (beyond functionId), permissions, or return behavior. It adds minimal behavioral context beyond the tool's name.

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

Conciseness5/5

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

Single concise sentence that front-loads the action and resource. No unnecessary words.

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

Completeness2/5

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

No output schema and no annotations, yet the description is minimal. It does not mention what the tool returns or any post-conditions, such as whether the validation rule becomes active immediately. This leaves gaps for an agent deciding whether this matches the task.

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 covers both parameters with descriptions (functionId and metafields, including nested fields), achieving 100% coverage. The description adds no extra parameter information, so baseline score is 3.

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

Purpose5/5

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

States 'Create a new cart/checkout validation rule using a Shopify Function' – specific verb (Create), resource (validation rule), scope (cart/checkout), and method (Shopify Function). Distinguishes from siblings like get_validations or create_cart_transform.

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?

No explicit guidance on when to use vs alternatives. The description implies usage for creating a validation rule but does not mention exclusions or related tools like create_cart_transform. Compare to get_calls which named an alternative.

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/UVU-Store/shopify-graphql-mcp'

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