{"uid":"cap_rG3m84FxbgxpZtsIzH7lK","slug":"delx-json-type-name-3c103fbe","name":"Delx JSON Type Name","description":"JSON type name for a value. Call when you branch agent logic by runtime JSON type. Returns type string 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/json-type-name","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{"type":"array","description":"Input field: value."}}},"responseSchema":{"type":"json","example":{"type":"array","schema":"delx/util-json-type-name/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_9RY_z5RN6IhnoeNYsUUTc","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 JSON type name (e.g. 'string', 'number', 'array', 'object', 'boolean', 'null') for a given runtime value.","exampleAgentPrompt":"What JSON type is this value — [1, 2, 3]? I need to know if it's an array, object, or something else so I can branch my logic correctly.","exampleUseCases":[{"title":"Branching agent logic by value type","prompt":"I have a dynamic value coming from a user form — it could be a string, number, or array. Can you check what JSON type it is so I route it to the right handler?"},{"title":"Validating pipeline input before processing","prompt":"Before I process this config field, can you tell me what JSON type it is? I need to confirm it's an object and not accidentally a string or null."},{"title":"Debugging unexpected API response shape","prompt":"I got back a value from an upstream API and I'm not sure if it's a number or a string — can you check the JSON type name for me?"}],"resultDescription":"A type name string indicating the JSON type of the submitted value — one of 'string', 'number', 'integer', 'boolean', 'array', 'object', or 'null'. No additional data is retained or returned; the result is advisory and local only.","failureModes":["Missing or malformed 'value' field in the request body returns an error","Payment failure or insufficient USDC balance returns a 402 response","Malformed JSON body returns a parsing error","Unexpected server error returns a 5xx response"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a lightweight, stateless utility to classify a JSON value's type at runtime without shipping a local type-checking function or adding a dependency. Ideal for conditional branching, input validation preflight checks, or debugging dynamic payloads in pipelines where the type is ambiguous. At $0.001 USDC per call, it is cost-effective for occasional checks; for high-volume type classification, a local implementation may be preferred.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:57:31.179Z","isFirstParty":false}