Skip to main content
Glama
camerone05

shopify-admin-mcp-server

by camerone05

Get Shopify Metafields

shopify_get_metafields
Read-onlyIdempotent

Retrieve metafields for any Shopify resource by providing its owner ID GID, with optional namespace filtering and result limits.

Instructions

Get metafields for any Shopify resource. Requires read access on the owner resource type (e.g. read_products for product metafields).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
ownerIdYesOwner GID (product, collection, customer, order, etc.)
namespaceNoFilter by namespace

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuine value with the per-resource-type scope requirement for read access, but says nothing about pagination, limits, or what an empty result means.

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?

Two sentences, no filler, with the core action front-loaded and the permission requirement immediately after. Every clause carries information an agent needs.

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

Completeness4/5

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

For a simple three-parameter read tool with rich annotations and no output schema, the description covers purpose, scope, and access requirements adequately. The remaining gap — return shape and pagination behavior given the limit parameter — is minor since annotations carry the safety profile.

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 67%: ownerId is well documented as a GID with resource examples and namespace as a filter, while limit is only constrained numerically with no description. The description adds no parameter-level meaning beyond the vague 'any Shopify resource' hint, so the schema does the heavy lifting — a baseline 3.

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 ('Get metafields') and adds useful scope ('for any Shopify resource'), so an agent knows it retrieves rather than writes. It does not, however, differentiate itself from the nearby shopify_set_metafield / shopify_delete_metafield siblings, leaving that routing to inference from the verb alone.

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?

The description supplies a real prerequisite ('Requires read access on the owner resource type, e.g. read_products for product metafields'), which is actionable context. It gives no explicit when-to-use versus the set/delete metafield siblings and no exclusions, so guidance is implied rather than stated.

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