{"openapi":"3.1.0","info":{"title":"NASA CMR (BYOK) API","version":"0.1.0","description":"NASA CMR (BYOK) lets an AI assistant read your own NASA CMR data through the NASA CMR API with a key you supply (Earthdata Login bearer token). Read-only: 6 tools (search_collections, get_collection, search_granules, search_variables, search_services, list_provider_holdings). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it is only...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-nasa-cmr.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-nasa-cmr/docs"},"termsOfService":"https://connectorbay.com/byok-nasa-cmr/terms"},"servers":[{"url":"https://byok-nasa-cmr.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-nasa-cmr/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/search_collections":{"post":{"operationId":"search_collections","summary":"Search Earth science data collections (datasets) in NASA's Common Metadata Repository by keyword, provider, short name, ","description":"Search Earth science data collections (datasets) in NASA's Common Metadata Repository by keyword, provider, short name, platform, instrument or project. Use for \"Which NASA datasets cover sea surface temperature from the Aqua platform\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"keyword":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Free-text keyword search over titles, summaries and science keywords; wildcards * and ? allowed, for example 'sea surface temperature'.","title":"Keyword"},"provider":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Data provider id, for example LPDAAC_ECS, NSIDC_ECS, PODAAC or GES_DISC.","title":"Provider"},"short_name":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Collection short name, for example MOD13Q1.","title":"Short Name"},"platform":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Platform short name, for example Terra, Aqua or Landsat-8.","title":"Platform"},"instrument":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Instrument short name, for example MODIS or VIIRS.","title":"Instrument"},"project":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Project or campaign short name.","title":"Project"},"sort_key":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Sort field, optionally prefixed with - for descending: entry_title, short_name, start_date, end_date, provider, revision_date, usage_score or has_granules.","title":"Sort Key"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many results to return (1 to 100).","title":"Page Size"},"page_num":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page Num"}},"title":"search_collectionsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_collection":{"post":{"operationId":"get_collection","summary":"Get one collection by its CMR concept id (for example C1000000001-LPDAAC_ECS) with abstract, keywords, platforms, time c","description":"Get one collection by its CMR concept id (for example C1000000001-LPDAAC_ECS) with abstract, keywords, platforms, time coverage and related links. Use for \"Show the details of CMR collection C1000000001-LPDAAC_ECS\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"concept_id":{"description":"CMR collection concept id, for example C1000000001-LPDAAC_ECS.","maxLength":60,"title":"Concept Id","type":"string"}},"required":["concept_id"],"title":"get_collectionArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_granules":{"post":{"operationId":"search_granules","summary":"Find granules (individual data files) of one collection, optionally by time range, bounding box or maximum cloud cover; ","description":"Find granules (individual data files) of one collection, optionally by time range, bounding box or maximum cloud cover; returns STAC items with data links. Use for \"Which Landsat-style granules of a collection fall in January 2024 over a bounding box\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"collection_concept_id":{"description":"CMR collection concept id the granules must belong to, for example C1000000001-LPDAAC_ECS.","maxLength":60,"title":"Collection Concept Id","type":"string"},"temporal":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Time range as start,end in ISO 8601 UTC, for example 2024-01-01T00:00:00Z,2024-01-31T23:59:59Z (either end may be left empty).","title":"Temporal"},"bounding_box":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Bounding box as west,south,east,north in decimal degrees, for example -10,-5,10,5.","title":"Bounding Box"},"cloud_cover":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Cloud cover percent range as min,max, for example ,30 for at most 30 percent.","title":"Cloud Cover"},"page_size":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":5,"description":"How many granules to return (1 to 50).","title":"Page Size"},"page_num":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page Num"}},"required":["collection_concept_id"],"title":"search_granulesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_variables":{"post":{"operationId":"search_variables","summary":"Search measurement variables (UMM-Var records) known to CMR by name or provider, with long name, units, data type and de","description":"Search measurement variables (UMM-Var records) known to CMR by name or provider, with long name, units, data type and definition. Use for \"Which CMR variables are named sea_surface_temperature\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Variable name; wildcards * and ? are allowed only when the service treats it as a pattern, so an exact name is safest.","title":"Name"},"provider":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Data provider id, for example PODAAC.","title":"Provider"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many results to return (1 to 100).","title":"Page Size"},"page_num":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page Num"}},"title":"search_variablesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_services":{"post":{"operationId":"search_services","summary":"Search data services registered in CMR (for example subsetting or OPeNDAP services) by name or provider. Use for \"Which ","description":"Search data services registered in CMR (for example subsetting or OPeNDAP services) by name or provider. Use for \"Which data services does CMR list for NSIDC\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Service name to match, for example NSIDC_AtlasNorth.","title":"Name"},"provider":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Data provider id, for example NSIDC_ECS.","title":"Provider"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many results to return (1 to 100).","title":"Page Size"},"page_num":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page Num"}},"title":"search_servicesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_provider_holdings":{"post":{"operationId":"list_provider_holdings","summary":"List CMR data providers with the collections they hold and granule counts, optionally for one provider id. Use for \"How ","description":"List CMR data providers with the collections they hold and granule counts, optionally for one provider id. Use for \"How many granules does each collection of provider PODAAC hold in CMR\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"provider_id":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Provider id to restrict the list to, for example PODAAC; leave empty for all providers (a long list).","title":"Provider Id"}},"title":"list_provider_holdingsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}