{"uid":"cap_nOlWaq49DfSrjuIBKw8Fs","slug":"agent402-tools-query-string-parser-builder-bb2211a2","name":"agent402.tools Query String Parser/Builder","description":"Parse a URL query string into an object, or build one from an object. mode: parse (default) | build.","url":"https://agent402.tools/api/querystring","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"type":"string","description":"parse | build"},"value":{"description":"String to parse or object to build"}}},"responseSchema":{"type":"json","example":{"result":{"a":["1","2"],"b":"hello world"}}},"example":{"request":{"mode":"parse","value":"name=John&age=30&city=New+York"},"response":{"result":{"age":"30","city":"New York","name":"John"}}},"exampleRequest":{"mode":"parse","value":"name=John&age=30&city=New+York"},"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_rpZ8GK-i6z4PWbfJg3qxU","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":"Parses a URL query string into a structured object, or serializes an object into a URL query string, depending on mode.","exampleAgentPrompt":"Parse this URL query string into an object: 'name=John&age=30&city=New+York'. Use parse mode.","exampleUseCases":null,"resultDescription":"In parse mode, returns a structured key-value object representing each query parameter. In build mode, returns a properly encoded URL query string from the provided object.","failureModes":["Invalid or malformed query string may return an error or empty object","Missing 'value' field returns an error","Unsupported mode value returns an error","Deeply nested objects may not serialize correctly in build mode"],"whenToPreferThis":"Use this endpoint when you need a simple, paid micro-service to parse or serialize URL query strings without writing custom parsing logic, especially in agent pipelines where you pay per call via x402 USDC micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:02.942Z","isFirstParty":false}