{"uid":"cap_BbgEU_z_iG2YM3FgOeKky","slug":"delx-sign-n-fcfd19c0","name":"Delx Sign N","description":"Sign of a number (-1, 0, 1). Call when you branch agent logic on direction without float noise. Returns sign and original value 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/sign-n?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{"type":"integer","description":"Input field: value."}}},"responseSchema":{"type":"json","example":{"sign":-1,"value":-2,"schema":"delx/util-sign-n/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_p4nzCNHLqND87MNMFqpAg","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":"Returns the mathematical sign of an integer value as -1, 0, or 1, along with the original value.","exampleAgentPrompt":"What is the sign of -42? Is it positive, negative, or zero?","exampleUseCases":[{"title":"Branch agent logic on balance","prompt":"I need to know if the account delta of -150 is negative, zero, or positive so I can decide which workflow branch to take — can you get the sign of -150?"},{"title":"Classify sensor reading direction","prompt":"My sensor just reported a value of 0 — can you tell me if that's positive, negative, or exactly zero so I know whether the device is active?"},{"title":"Determine price movement direction","prompt":"The price change is 87 — can you compute the sign so I know whether to trigger the up, flat, or down handler in my pipeline?"}],"resultDescription":"A JSON object containing the sign of the input integer (-1 for negative, 0 for zero, 1 for positive) and the original input value. No external network calls are made; computation is performed locally.","failureModes":["Non-integer or missing value input may return a validation error","Floating-point values passed as integers may be rejected or truncated","Payment failure via x402 will block the response","Malformed JSON body results in a 400-level error"],"whenToPreferThis":"Use this endpoint when you need a clean, noise-free sign classification of an integer without float rounding ambiguity — especially useful inside agent decision trees where branching on positive/negative/zero direction must be deterministic. Prefer over in-agent computation when auditability or consistent behavior across environments matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T18:47:14.389Z","isFirstParty":false,"canonicalSlug":"delx-sign-n-fcfd19c0"}