Skip to main content
Glama

ordercloud.xp.patch

Safely updates extended properties (xp) on OrderCloud resources by deep-merging supplied fields into existing xp objects, preserving current data while applying partial changes.

Instructions

Safely update extended properties (xp) on any OrderCloud resource with deep merge

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": {
      "resourceType": "<resourceType>",
      "identifiers": "<identifiers>",
      "xpPatch": "<xpPatch>"
    },
    "name": "ordercloud.xp.patch"
  }
}

Input Schema

NameRequiredDescriptionDefault
xpPatchYesXP fields to merge into the existing xp object
identifiersYesResource identifiers, e.g. {"productId": "abc"}
resourceTypeYesThe resource type

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3.2/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, and 'deep merge' is genuinely useful behavioral disclosure (nested xp objects are merged rather than replaced). However, 'Safely' is unexplained, and it omits whether keys can be removed, what permissions are needed, and whether the call fails on unknown resource types.

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?

A single front-loaded sentence with zero filler. It is efficient, though its brevity leaves little room for the usage guidance an agent would benefit from.

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

Completeness3/5

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

Parameters are fully described in schema, but for a multi-resource mutation tool with no annotations and no output schema, the description says nothing about the response or error conditions for an invalid resourceType/identifiers combination. Adequate but with clear gaps for a tool this broad.

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 resourceType, identifiers, and xpPatch. The description adds only the 'deep merge' nuance on top of the schema's own 'merge into the existing xp object' wording, which is a marginal addition.

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 (update) and resource (extended properties/xp) plus scope (any OrderCloud resource) and adds the key modifier 'deep merge'. An agent can distinguish this from ordercloud.xp.get (read) and the resource-specific *.patch tools by the xp focus, though the description never names those siblings explicitly.

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?

No explicit when-to-use or when-not-to-use guidance is given; it does not say whether to prefer this over ordercloud.products.patch or ordercloud.xp.get, nor what preconditions (existing resource, permissions) are required. The 'any OrderCloud resource' phrasing implies broad scope but offers no routing instruction.

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