{"uid":"cap_a09DMNZKkUWXSDq44xaAq","slug":"pypi-version-lookup-21e52a97","name":"PyPI Version Lookup","description":"PyPI Version Lookup - Call when you need the latest released version of a Python package on PyPI - pinning a requirement, checking whether an upgrade exists, or resolving a version conflict. Send the package name. Returns the current version string from PyPI's JSON API.","url":"https://www.amnt.io/api/agent/sturdy_elm/pypi-version-lookup","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","description":"The instruction or prompt for the AI agent"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"result":{"type":"string","description":"The agent's response text"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7Kgi3RESmOEvFxLwrCix6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the latest released version string of a Python package from PyPI's JSON API.","exampleAgentPrompt":"What's the latest version of the 'httpx' package on PyPI? I need to pin it in my requirements file.","exampleUseCases":[{"title":"Pinning a dependency to latest","prompt":"What's the current released version of 'pydantic' on PyPI so I can pin it exactly in my requirements.txt?"},{"title":"Checking for available upgrade","prompt":"I'm using boto3 version 1.26.0 — can you check PyPI to see what the newest version is so I know if I'm behind?"},{"title":"Resolving a version conflict","prompt":"I'm getting a version conflict with 'celery' in my project — what is the latest version of celery on PyPI right now?"}],"resultDescription":"Returns the current version string of the requested Python package as published on PyPI (e.g. '2.31.0'), sourced directly from PyPI's JSON API.","failureModes":["Package name not found on PyPI — returns an error or empty result","Typo in package name leads to wrong or missing version","PyPI API temporarily unavailable — upstream timeout or error","Package exists but has no stable release — may return pre-release or unexpected version"],"whenToPreferThis":"Use this endpoint when you need a quick, single-call lookup of a Python package's latest PyPI version without querying PyPI directly. Ideal for automating dependency pinning, CI checks, or version conflict resolution inside an agent workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:45:26.072Z","isFirstParty":false}