Skip to main content
Glama

Metafields List By Resource

tiendanube_metafields_list_by_resource
Read-onlyIdempotent

List metafields for a Tiendanube resource type and filter by owner, namespace, key, or value to inspect custom data attached to products, variants, categories, pages, orders, or customers.

Instructions

List metafields of a resource type, optionally filtered by owner/namespace/key/value. HTTP: GET /metafields/{owner_resource} Required scope: read_*/write_* matching owner_resource: products (Product, Product_Variant, Category) | content (Page) | orders (Order) | customers (Customer) API version: 2025-03 Returns {count, page, per_page, total?, has_more, next_page?, items[]}.

Input Schema

NameRequiredDescriptionDefault
keyNoKey
pageNoPage number (default 1). Orders: page * per_page must be <= 10000
valueNoValue
fieldsNoComma-separated list of fields to return, to reduce payload size (e.g. 'id,name,variants')
owner_idNoOnly metafields of this owner
per_pageNoItems per page (default 30, max 200; max 50 for external invoices)
namespaceNoNamespace
owner_resourceYesOwner resource type (Product | Product_Variant | Category | Page | Order | Customer)
response_formatNoOutput format: 'json' (default, full data) or 'markdown' (human-readable)json

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description correctly spends its budget elsewhere: the HTTP route, the per-resource scope requirement (products/content/orders/customers), the API version, and the exact pagination envelope. That is real operational context an agent cannot get from the annotations.

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?

Front-loaded one-line purpose followed by terse structured lines for HTTP route, scope, version, and return shape. No filler, though the scope line is dense enough to require a second read.

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 9-parameter read tool with no output schema, the description supplies the return envelope shape and the permission model, which are the two things an agent most needs. Only the relationship to the singular get tool is left implicit.

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 schema already documents every parameter including enum values and pagination limits. The description restates the filter set (owner/namespace/key/value) without adding syntax or format detail, so the baseline 3 applies.

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?

Opens with a specific verb+resource: 'List metafields of a resource type', and names the filterable dimensions. The singular sibling tiendanube_metafields_get is distinguishable by name, but the description never explicitly contrasts the two.

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?

Usage is implied (bulk/listing with optional owner/namespace/key/value filters) but there is no explicit when-to-use guidance or steering away from tiendanube_metafields_get for single-record lookups. The scope requirement hints at which resources are accessible, but not when to pick this tool.

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

Deploy Server

Other Tools