Skip to main content
Glama

ordercloud.products.patch

Partially update an OrderCloud product using JSON Merge Patch, with an optional dry-run to validate changes before persisting.

Instructions

Partially update an OrderCloud product (JSON Merge Patch semantics). Use dryRun: true to validate without persisting.

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": {
      "productId": "<productId>",
      "patch": "<patch>"
    },
    "name": "ordercloud.products.patch"
  }
}

Input Schema

NameRequiredDescriptionDefault
patchYesFields to update, e.g. {"Name": "New Name", "xp": {"color": "red"}}
dryRunNoIf true, validate and return what would be updated without persisting
productIdYesThe product ID to update

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose a genuinely important behavioral trait beyond structured fields: JSON Merge Patch semantics, which implies partial merge and field-level deletion semantics not visible in the schema. However it omits auth/permission requirements, whether the call is reversible, and what happens to fields not present in the patch object beyond the RFC reference.

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 short sentences, purpose first, operational caveat second. Every clause earns its place and nothing is padded.

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 3-parameter mutation with full schema coverage and no output schema, the definition covers what it does, the patch semantics, and the safe-validate path. The remaining gap is environmental: no annotation coverage means permission and side-effect expectations must be inferred from the 'partially update' framing alone.

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: productId, patch, and dryRun are all documented in the schema, including an example payload for patch. The description's only added semantics is naming the merge-patch standard, which is useful but thin given the schema already supplies an example with the nested xp object.

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 ('Partially update') and resource ('OrderCloud product') and pins down the exact semantics via 'JSON Merge Patch'. That distinguishes it from create/delete/get and from full-replace variants. It stops short of naming the sibling bulk patch tool it must be disambiguated from, so not a 5.

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?

Gives one concrete usage rule: 'Use dryRun: true to validate without persisting', which is real when-to-use guidance for a mutation. It offers no guidance on when to choose this over bulk.products.patch, createFull, or setDefaultPrice, and no preconditions such as permissions. Usage is implied rather than fully framed.

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