Skip to main content
Glama
UVU-Store

shopify-graphql-mcp

by UVU-Store

create_discounts_allocator_function

Create a Shopify discounts allocator function by specifying a function ID and optional metafields to configure how discounts are allocated.

Instructions

Create a discounts allocator function using a Shopify Function

Input Schema

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

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It only says 'Create,' implying a mutation, but gives no details on what actually happens, whether the action is reversible, what the return value is, or any side effects. The meaning of 'using a Shopify Function' is vague and unexplained.

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?

The description is a single, front-loaded sentence that begins with the verb 'Create.' It contains no filler or unnecessary words. While very short, it is structurally concise and to the point, though it could be argued it is under-specified rather than concise.

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?

There is no output schema and no annotations to compensate for the sparse description. The tool creates a Shopify Function, but the description does not explain the functionId source, metafield purpose, or how this relates to the get_discounts_allocator_functions sibling. The minimal description is inadequate given the tool's complexity and lack of other contextual scaffolding.

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 the baseline is 3. The description itself mentions no parameters, but the schema already provides descriptions for functionId and metafields. The description adds no additional meaning beyond what the schema provides, so it stays at the baseline.

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?

The description clearly states the action ('Create') and the resource ('a discounts allocator function'), distinguishing it from sibling get_discounts_allocator_functions. However, the phrase 'using a Shopify Function' is somewhat redundant since a discounts allocator function is itself a Shopify Function, causing slight ambiguity.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives, nor any prerequisites. For instance, it doesn't mention that a get_discounts_allocator_functions call is needed first to obtain a functionId, nor does it explain the role of metafields. No exclusions or alternative tool references are given.

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