{"uid":"cap_UgM7cXPDMywiMmo0osalC","slug":"agentshield-percent-encoder-decoder-cdaa8f78","name":"AgentShield Percent-Encoder/Decoder","description":"Call when an agent needs RFC 3986 percent-encoding or decoding of a US-ASCII string. Non-ASCII returns 404.","url":"https://agentshield.live/percent?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"],"type":"string"},"queryParams":{"type":"object","required":["mode","text"],"properties":{"mode":{"type":"string","description":"encode or decode."},"text":{"type":"string","description":"US-ASCII text. A space encodes as %20."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"mode":"encode","known":true,"valid":true,"encoded":"%20"}},"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_6NPWN_LIAVzOE1-PwQhae","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":"RFC 3986 percent-encodes or decodes a US-ASCII string via a simple GET request; returns 404 for non-ASCII input.","exampleAgentPrompt":"Can you percent-encode the string 'hello world & welcome!' for me so I can safely put it in a URL query parameter?","exampleUseCases":[{"title":"Encode URL query parameter","prompt":"I need to put the value 'search query: cats & dogs' into a URL query string — can you percent-encode it for me using RFC 3986 rules?"},{"title":"Decode percent-escaped URL fragment","prompt":"I got this URL fragment '%2Fapi%2Fv1%2Fusers%3Factive%3Dtrue' from a log file — can you percent-decode it so I can read it as plain text?"},{"title":"Sanitize path segment for HTTP request","prompt":"I'm building a request URL and need to encode the path segment 'reports/Q1 2024 (final)' — please percent-encode it so it's safe to use in a URL path."}],"resultDescription":"Returns the percent-encoded or decoded version of the input US-ASCII string. Non-ASCII input results in a 404 error. For encoding, spaces become %20 and reserved/special characters are escaped per RFC 3986.","failureModes":["Non-ASCII characters in input → 404 response","Invalid mode parameter (not 'encode' or 'decode') → error response","Malformed percent-encoding in decode mode → possible error or unexpected output","Missing required query parameters (mode or text) → error response"],"whenToPreferThis":"Use this endpoint when you need standards-compliant RFC 3986 percent-encoding or decoding for US-ASCII strings, especially within an agentic workflow that already uses x402 micropayment infrastructure. Ideal for encoding URL path segments or query parameters on the fly without bundling a local encoding library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T06:48:48.293Z","isFirstParty":false,"canonicalSlug":"agentshield-percent-encoder-decoder-cdaa8f78"}