{"$schema":"https://static.modelcontextprotocol.io/schemas/v1/server-card.schema.json","capabilities":{"completions":{},"resources":{},"tools":{}},"description":"Resolve, search, describe and validate ATProtocol lexicon schemas, compare schema versions, and find OAuth permission sets, from Lexicon Garden's lexicon index.","name":"garden.lexicon/lexicon-garden","remotes":[{"authentication":{"required":false,"schemes":[]},"supportedProtocolVersions":["2025-11-25"],"type":"streamable-http","url":"https://lexicon.garden/mcp"}],"resourceTemplates":[{"description":"Browse the lexicon namespace tree. Use a dot-separated NSID prefix (e.g. 'app.bsky') or empty for root.","mimeType":"application/json","name":"Browse Lexicons","uriTemplate":"lexicon://browse/{prefix}"}],"title":"Lexicon Garden","tools":[{"description":"Resolve an ATProtocol lexicon by NSID: find the DID named by the `_lexicon` TXT record of the NSID's authority and read that DID's com.atproto.lexicon.schema record, from Lexicon Garden's index or, when it is not indexed or refresh is set, from the network. Returns the schema, its AT-URI and CID, the authority DID and where it came from.","inputSchema":{"properties":{"nsid":{"description":"The NSID to resolve (e.g., 'app.bsky.feed.post')","type":"string"},"refresh":{"description":"Optional: read the record from the network even when it is indexed","type":"boolean"}},"required":["nsid"],"type":"object"},"name":"resolve_lexicon"},{"description":"Find ATProtocol lexicons by what their schemas say: descriptions, definition names, field names and known values. Use it when you don't know the NSID. mode \"keyword\" (default) matches words; mode \"semantic\" ranks by meaning, so a plain description of what you need works (e.g. 'store a user's reading list'), and it falls back to keyword when unavailable. By default only lexicons published by their NSID's DNS authority are returned. Returns NSIDs with summaries and AT-URIs; follow up with describe_lexicon.","inputSchema":{"properties":{"include_non_authoritative":{"description":"Also return lexicons whose publisher is not the NSID's DNS authority (default false). Such copies may be forks or impersonations.","type":"boolean"},"lexicon_types":{"description":"Only return lexicons whose main definition has one of these types","items":{"enum":["record","query","procedure","subscription","permission-set"],"type":"string"},"type":"array"},"limit":{"description":"Maximum results (default 10)","maximum":20,"minimum":1,"type":"integer"},"mode":{"description":"keyword (default) or semantic","enum":["keyword","semantic"],"type":"string"},"query":{"description":"What to search for: words, a phrase in quotes, -word to exclude, or (with mode semantic) a plain description. 2 to 256 characters.","type":"string"}},"required":["query"],"type":"object"},"name":"search_lexicons"},{"description":"Get detailed information about an ATProtocol lexicon schema: its definitions, authority, CID and any published documentation. Use this to understand the structure and format of XRPC methods, records, and other lexicon types.","inputSchema":{"properties":{"identity":{"description":"Optional: The identity (DID like 'did:plc:...' or handle like 'alice.bsky.social') of the authority publishing this lexicon. If not provided, the authority will be resolved via DNS.","type":"string"},"language":{"description":"Optional: Preferred language code (ISO 639) for localized descriptions from garden.lexicon.documentation records. If not provided, only schema descriptions are shown. Use language codes like 'en', 'pt-BR', 'ja', etc.","type":"string"},"lexicon":{"description":"The lexicon NSID to describe (e.g., 'app.bsky.feed.post', 'com.atproto.repo.createRecord', or 'app.bsky.actor.profile#viewBasic' for a specific fragment)","type":"string"}},"required":["lexicon"],"type":"object"},"name":"describe_lexicon"},{"description":"Validate a lexicon schema and optionally validate data against it. Use this to verify schema correctness and validate records, query params, or procedure inputs against their schemas.","inputSchema":{"properties":{"flags":{"description":"Optional: Validation flags","properties":{"allowLegacyBlob":{"description":"Allow legacy blob format (cid field instead of ref)","type":"boolean"},"allowLenientDatetime":{"description":"Allow lenient datetime parsing","type":"boolean"},"externalSchemas":{"description":"External schemas to use for validation (as JSON objects)","items":{"type":"object"},"type":"array"},"skipExternalRefs":{"description":"Skip validation of external references (treat them as valid)","type":"boolean"}},"type":"object"},"input":{"description":"Optional: Procedure input body to validate (for procedure schemas only)","type":"object"},"params":{"description":"Optional: Query parameters to validate (for query or procedure schemas)","type":"object"},"record":{"description":"Optional: Record data to validate (for record schemas only)","type":"object"},"schema":{"description":"The lexicon schema to validate (the full lexicon document as a JSON object)","type":"object"}},"required":["schema"],"type":"object"},"name":"validate_lexicon"},{"description":"Check compatibility between two versions of an ATProtocol lexicon schema. Detects breaking vs non-breaking changes and provides migration guidance. Supply either two schema JSON objects directly (from_schema + to_schema), or an NSID with two CIDs to compare stored versions (nsid + from_cid + to_cid).","inputSchema":{"properties":{"from_cid":{"description":"Optional: CID of the older version (used with nsid)","type":"string"},"from_schema":{"description":"Optional: The older schema JSON (used without nsid)","type":"object"},"nsid":{"description":"Optional: The lexicon NSID. If provided with from_cid and to_cid, fetches schemas from storage.","type":"string"},"to_cid":{"description":"Optional: CID of the newer version (used with nsid)","type":"string"},"to_schema":{"description":"Optional: The newer schema JSON (used without nsid)","type":"object"}},"type":"object"},"name":"check_compatibility"},{"description":"Discover which ATProtocol permission-set lexicon schemas cover a given set of collections and/or XRPC methods. Returns matching permission sets with their OAuth scope strings (`include:<nsid>`), useful for determining what OAuth scopes an application needs.","inputSchema":{"properties":{"collections":{"description":"List of collection NSIDs your application reads or writes (e.g., ['app.bsky.feed.post', 'app.bsky.actor.profile', 'garden.lexicon.example'])","items":{"type":"string"},"type":"array"},"methods":{"description":"Optional: List of XRPC method NSIDs your application calls (e.g., ['app.bsky.video.uploadVideo', 'com.atproto.repo.listRecords'])","items":{"type":"string"},"type":"array"}},"required":["collections"],"type":"object"},"name":"discover_permission_sets"}],"version":"3.0.20","websiteUrl":"https://lexicon.garden"}