Skip to main content
Glama

Fudge for Shopify

Edit draft content

edit_draft_content
Destructive

Change products, collections, pages, articles, blogs and their metafields in a Fudge draft with sparse patches, many items in one call.

  • Name only the fields you change; nested objects such as seo merge per key.

  • Rows with an "id" (variants, options, media) merge by id; omit "id" to add a row; {"id": …, "_delete": true} removes one. Variants and media live at .entities/product/{id}/variants.jsonc and media.jsonc.

  • Lists such as tags take a full array or {"add": […], "remove": […]}.

  • Metafields: .entities/product/{id}.metafields with {"namespace.key": {"type": …, "value": …}}; "value": null removes one. Changes to existing items are staged for the merchant’s review. Items the draft created change in Shopify at once.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "draft": "<draft>",
      "edits": "<edits>"
    },
    "name": "edit_draft_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftYesThe draft’s fudge://project/… ref.
editsYes
storeNoThe connected store to use. Omit when only one is connected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely non-derivable behavior: sparse-patch merging semantics, id-based row merging, and the critical distinction that changes to existing items are staged for merchant review while draft-created items push to Shopify immediately. It does not describe error handling or partial-failure behavior.

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 with the core purpose, then bulleted rules in roughly the order an agent needs them (patch shape → rows → lists → metafields → staging consequences). Dense but every bullet carries operational content; the only mild redundancy is restating the variants/media path after the id rule.

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 destructive, non-idempotent mutation tool with no output schema, the description covers patch construction, deletion conventions, and the review-vs-immediate side effects — the things an agent most needs to avoid damage. Gaps are minor: no statement of what a successful call returns or how conflicts/invalid patches are reported.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Well beyond the 67% schema coverage: it explains what "file" accepts with three concrete path examples, how "patch" behaves (sparse, omitted fields unchanged, per-key merge on nested objects like seo), row-level add/delete conventions, list add/remove form, and the metafield namespace.key + null-removal convention. An agent can construct a valid call from the description alone.

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 and an enumerated resource set ("Change products, collections, pages, articles, blogs and their metafields in a Fudge draft") plus the batching angle ("many items in one call"). It implicitly separates itself from generic file-level siblings via the content-entity framing, but never names edit_draft_file or write_draft_file, so the boundary is inferred rather than stated.

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

Usage Guidelines4/5

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

The bullets give concrete operational rules: name only changed fields, nested objects merge per key, omit "id" to add a row, use {"id": …, "_delete": true} to remove, lists take a full array or add/remove. What is missing is explicit routing — no statement of when to prefer this over edit_draft_file or write_draft_file, and no exclusion cases.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.