{"uid":"cap_uSA7aUsRiToC_iwXOH5MV","slug":"signaldesk-ai-milligram-to-gram-converter-6d4ec68f","name":"SignalDesk AI – Milligram to Gram Converter","description":"Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.","url":"https://x402-agent.kariguetoazul.workers.dev/api/units/mass/milligram-to-gram?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["value"],"properties":{"value":{"type":"number","maximum":1e+100,"minimum":0,"description":"Amount in milligrams."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"to":"gram","from":"milligram","value":123.45,"converted":0.12345,"dimension":"mass","precision":"IEEE-754 double"}},"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_D_b8n1XnDP6BOjOFNRVBP","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":"Converts a numeric mass value from milligrams to grams using IEEE-754 double precision arithmetic.","exampleAgentPrompt":"Convert 500 milligrams to grams for me.","exampleUseCases":[{"title":"Pharmaceutical dosage normalization","prompt":"I have a drug dosage of 250 milligrams and need to express it in grams for a prescription form — can you convert that for me?"},{"title":"Chemistry lab measurement conversion","prompt":"My lab scale shows 1500 milligrams of reagent — what is that in grams?"},{"title":"Nutrition data standardization","prompt":"A supplement label lists 750 milligrams of vitamin C per serving — how many grams is that?"}],"resultDescription":"A JSON object containing the original value, the source unit ('milligram'), the target unit ('gram'), the converted numeric result (IEEE-754 double precision), and the dimension label ('mass').","failureModes":["Missing required 'value' query parameter returns an error","Negative value rejected (minimum is 0)","Value exceeding 1e+100 rejected (maximum constraint)","Non-numeric value for 'value' parameter causes validation failure","Network timeout or Cloudflare Worker cold-start delay on first call"],"whenToPreferThis":"Use this endpoint when you need a fast, programmatic, pay-per-call milligram-to-gram conversion with a structured JSON response including precision metadata. Prefer it in agent workflows where unit normalization needs to be auditable and deterministic rather than computed inline. It is appropriate when the calling agent does not want to implement conversion logic itself or needs a canonical, bounded-execution computation with a clear cost ($0.001 USDC per call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:41:20.930Z","isFirstParty":false,"canonicalSlug":"signaldesk-ai-milligram-to-gram-converter-6d4ec68f"}