{"uid":"cap_2IEF-IJwxMa9tEcISjDVs","slug":"delx-merge-shallow-4a9a96e0","name":"Delx Merge Shallow","description":"Shallow-merge two objects (b wins). Call when you overlay agent defaults with overrides. Returns merged object and size for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/merge-shallow","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"object","description":"Input field: a."},"b":{"type":"object","description":"Input field: b."}}},"responseSchema":{"type":"json","example":{"size":2,"object":{"x":1,"y":2},"schema":"delx/util-merge-shallow/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_o2RBWPTeDh5gTY9BNZZjl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Shallow-merges two JSON objects, with fields from the second object (b) overriding fields from the first (a), and returns the merged result along with its size.","exampleAgentPrompt":"Shallow-merge these two objects for me — use {\"theme\": \"dark\", \"lang\": \"en\", \"retries\": 3} as the base and {\"lang\": \"fr\", \"timeout\": 30} as the overrides, so the override fields win on any conflicts.","exampleUseCases":[{"title":"Overlay agent defaults with user config","prompt":"I have my agent's default settings as {\"model\": \"gpt-4\", \"temperature\": 0.7, \"max_tokens\": 512} and the user passed overrides {\"temperature\": 0.2, \"stream\": true} — shallow-merge them so the user's values win."},{"title":"Merge feature flag base with environment overrides","prompt":"Can you shallow-merge our base feature flags {\"darkMode\": false, \"betaSignup\": false, \"analytics\": true} with the staging overrides {\"darkMode\": true, \"betaSignup\": true} so the staging values take priority?"},{"title":"Combine API response with local defaults","prompt":"Merge my local defaults {\"currency\": \"USD\", \"locale\": \"en-US\", \"pageSize\": 20} with the API response payload {\"locale\": \"de-DE\", \"pageSize\": 50, \"timezone\": \"Europe/Berlin\"}, letting the API response override any matching keys."}],"resultDescription":"Returns the shallow-merged JSON object (b's keys overwrite a's on conflict, non-conflicting keys from both are preserved) plus the byte size of the resulting merged object.","failureModes":["Missing or malformed 'a' or 'b' fields returns a validation error","Non-object values for 'a' or 'b' (e.g. arrays or primitives) may be rejected","Payment failure via x402 on Base halts the request before processing","Very large objects may hit payload size limits"],"whenToPreferThis":"Choose this endpoint when you need a simple, stateless, one-level shallow merge of two JSON objects and want a hosted, pay-per-call microservice with no infrastructure or key management. Prefer it over writing inline merge logic when you want a reliable, auditable, side-effect-free utility in an agent pipeline. Not suitable for deep/recursive merges or array concatenation strategies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:46:09.696Z","isFirstParty":false}