@tool-bridge/server 0.21.0 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin.js +170 -0
- package/dist/airtable-ML2GIGCH.js +790 -0
- package/dist/{alt_text_generator_ai-RELFQ5FV.js → alt_text_generator_ai-FGYQAF2A.js} +12 -11
- package/dist/{amap-YSYEACKQ.js → amap-G7V65NGK.js} +221 -220
- package/dist/anthropic-6ZK24TBB.js +203 -0
- package/dist/apify-VDGYHP6W.js +248 -0
- package/dist/brave_search-TAATLZOS.js +302 -0
- package/dist/chunk-2IAI3XQM.js +302 -0
- package/dist/chunk-7ISGFRC6.js +161 -0
- package/dist/{chunk-Q74GLIDK.js → chunk-BNMLA2RC.js} +6 -5
- package/dist/chunk-HA4BGL6C.js +8429 -0
- package/dist/{chunk-MDY7K5CX.js → chunk-RMAWSG7E.js} +20135 -26920
- package/dist/{chunk-JEWFX6Z6.js → chunk-RTW5VRTK.js} +3 -3
- package/dist/chunk-U7PTOA3U.js +7320 -0
- package/dist/chunk-UY6ANCOY.js +378 -0
- package/dist/{chunk-QR4LK3HF.js → chunk-X7ZUTKHR.js} +4 -2
- package/dist/circleci-BQ2UWXL2.js +389 -0
- package/dist/clerk-2JYWQNOI.js +1019 -0
- package/dist/cohere-6MI7AQM4.js +185 -0
- package/dist/{confluence-52I37IUT.js → confluence-6Y6GDETF.js} +105 -104
- package/dist/{convertapi-3TRJ3WEO.js → convertapi-HBZCSWOX.js} +32 -31
- package/dist/{currencyapi-LWEANWVI.js → currencyapi-337U5TGI.js} +71 -71
- package/dist/deepseek-OSPASO7O.js +210 -0
- package/dist/docker_hub-3ATQOY5L.js +933 -0
- package/dist/dropbox-LSA4GM2Y.js +1305 -0
- package/dist/dub-VZPJSPI6.js +680 -0
- package/dist/e2b-6SDYQZL2.js +278 -0
- package/dist/exa-B6EUYDVP.js +332 -0
- package/dist/{fal_ai-VJPMCNRH.js → fal_ai-K4Q27IME.js} +81 -80
- package/dist/feishu-4TKXG4SU.js +11975 -0
- package/dist/{feishu_custom_bot-ADSE23KU.js → feishu_custom_bot-7CTEAKRB.js} +57 -53
- package/dist/figma-OUKSZLD5.js +777 -0
- package/dist/firehydrant-7MOYL7QH.js +563 -0
- package/dist/{fixer-OAMF4DKP.js → fixer-H2BV2NO4.js} +34 -33
- package/dist/fly-PXKY6PNH.js +469 -0
- package/dist/{front-6GTVYKUM.js → front-UZYIV5DW.js} +104 -104
- package/dist/geocodio-NSYO7TFP.js +213 -0
- package/dist/ghost-QBKKQQMF.js +338 -0
- package/dist/github-ENLSJ4CL.js +5421 -0
- package/dist/gmail-KQSDEB47.js +1887 -0
- package/dist/googlecalendar-5YCX4SZF.js +2524 -0
- package/dist/{googledocs-YNKKBM6Q.js → googledocs-SSWIVFKA.js} +343 -341
- package/dist/{grafana-353VSGXN.js → grafana-TF2LXDQA.js} +221 -220
- package/dist/graphhopper-CURBVHYK.js +325 -0
- package/dist/index.d.ts +1132 -332
- package/dist/index.js +31 -13
- package/dist/{ip2proxy-DBGRWH7S.js → ip2proxy-YNVMTZEM.js} +28 -27
- package/dist/ipgeolocation_io-NAU7VJ4J.js +315 -0
- package/dist/ipqualityscore-OT63L4TI.js +279 -0
- package/dist/{jina_ai-L5BH455V.js → jina_ai-6WBMBGWM.js} +23 -23
- package/dist/{jira-IGTILUZA.js → jira-DVDVTHNO.js} +118 -117
- package/dist/langsmith-IM5N4YAU.js +593 -0
- package/dist/lemlist-277SHUQF.js +289 -0
- package/dist/{linear-HLGOWISN.js → linear-AEPH7B5V.js} +329 -327
- package/dist/logsnag-VEWRAGBG.js +150 -0
- package/dist/main.js +57 -279
- package/dist/{mattermost-BONGXVC7.js → mattermost-Q3A2BIZA.js} +59 -58
- package/dist/mem0-AXS7GZGI.js +544 -0
- package/dist/memos-7TXG4ZTU.js +744 -0
- package/dist/{metabase-ZHXHRHZK.js → metabase-NSVACWQM.js} +90 -89
- package/dist/mistral_ai-YZ52RGD4.js +1196 -0
- package/dist/{mother_duck-TKVQM35M.js → mother_duck-XLLL6FVL.js} +94 -93
- package/dist/ngrok-4O4W3WZW.js +356 -0
- package/dist/{notes-KXRNNYDW.js → notes-YTB3TJOO.js} +11 -9
- package/dist/notion-4W4O7J7V.js +940 -0
- package/dist/open_exchange_rates-23QJXVO5.js +215 -0
- package/dist/openai-ZS7GLSLH.js +800 -0
- package/dist/opengraph_io-PMVH7OYI.js +362 -0
- package/dist/openrouter-ONRGFNB6.js +441 -0
- package/dist/outline-UCUYZZ7J.js +599 -0
- package/dist/paddle-35HTKTUL.js +454 -0
- package/dist/perplexity-NVOBYN24.js +220 -0
- package/dist/pinecone-55CJY73C.js +571 -0
- package/dist/{pipedrive-CW7HONYW.js → pipedrive-WMCAKS72.js} +99 -98
- package/dist/polar-SM4ZM53B.js +395 -0
- package/dist/posthog-NWCXVXNJ.js +3464 -0
- package/dist/postmark-QJV5PHUQ.js +427 -0
- package/dist/{prerender-5EAY7GDM.js → prerender-2W7UT4SC.js} +31 -30
- package/dist/{pubmed-GRQUBGVA.js → pubmed-VVV7XYLU.js} +241 -239
- package/dist/{railway-FTM75TMX.js → railway-KGI57S3O.js} +118 -117
- package/dist/readwise-AGHTQB42.js +470 -0
- package/dist/render-O4HBROCK.js +461 -0
- package/dist/{replicate-RJCMDB7H.js → replicate-KWBOMX7D.js} +81 -80
- package/dist/{resend-YYN22NIL.js → resend-DRH6Y6I4.js} +20 -16
- package/dist/rootly-XGCUDW6X.js +336 -0
- package/dist/{scrapfly-ZJJ6XM4Q.js → scrapfly-OIQ3OY6L.js} +62 -61
- package/dist/{scrapingbee-QNGEOD6D.js → scrapingbee-OCZO4FHX.js} +56 -56
- package/dist/{screenshot_fyi-SPZAABVD.js → screenshot_fyi-CUNGFZOC.js} +16 -16
- package/dist/semantic_scholar-3UJRLKES.js +611 -0
- package/dist/{sentry-SJ5NN4C4.js → sentry-5BWVZFJV.js} +208 -207
- package/dist/{shodan-YMGOY7KW.js → shodan-HI37CTEW.js} +62 -61
- package/dist/shopify-LJ2EV2HH.js +610 -0
- package/dist/stripe-3LHMV55K.js +585 -0
- package/dist/{supabase-GQ2OFVIL.js → supabase-H2KPX3Q2.js} +245 -244
- package/dist/tavily-FBEWGH3Z.js +326 -0
- package/dist/telegram-MYYO3JND.js +1767 -0
- package/dist/{telnyx-4JGMC3K7.js → telnyx-H4ALEGAX.js} +57 -56
- package/dist/todoist-OBWICA5Q.js +664 -0
- package/dist/trello-GUFUJRWO.js +1080 -0
- package/dist/turso-NIAK4UMS.js +416 -0
- package/dist/{twilio-VYF3HUU6.js → twilio-K6SLK2CX.js} +72 -70
- package/dist/umami-42RS2EPS.js +389 -0
- package/dist/unsplash-V7TOTETT.js +351 -0
- package/dist/{upstash_redis-IUM2HDLU.js → upstash_redis-AWQMB6Y3.js} +51 -50
- package/dist/uptimerobot-AZC2DHOT.js +483 -0
- package/dist/v2ex-4TVRNMLS.js +667 -0
- package/dist/vercel-DPHTJ3XR.js +1076 -0
- package/dist/{wolfram_alpha_api-6CRVUZOJ.js → wolfram_alpha_api-XAG7IXBW.js} +36 -35
- package/dist/wordpress-KMPKVGUX.js +812 -0
- package/dist/workos-PKB2YR7S.js +664 -0
- package/dist/zhihu-Y4H4XYPB.js +254 -0
- package/package.json +18 -9
- package/dist/airtable-DMJEEGJP.js +0 -789
- package/dist/anthropic-D5X5GSYE.js +0 -202
- package/dist/apify-5NVFU3IZ.js +0 -247
- package/dist/brave_search-X557FMGO.js +0 -301
- package/dist/chunk-MZCIPUNQ.js +0 -23424
- package/dist/chunk-ZTTN6AJG.js +0 -977
- package/dist/circleci-3P3QTUX2.js +0 -388
- package/dist/clerk-GNMZQ2MY.js +0 -1019
- package/dist/cloudflare_dns-VWZH3ZTR.js +0 -588
- package/dist/cohere-C7QVIIMG.js +0 -185
- package/dist/deepseek-5U24YG4P.js +0 -209
- package/dist/docker_hub-CMISLRSE.js +0 -932
- package/dist/dropbox-TW4QN6FT.js +0 -1304
- package/dist/dub-EFXGI5UH.js +0 -679
- package/dist/e2b-PHM63OVF.js +0 -277
- package/dist/exa-DYOQWURR.js +0 -331
- package/dist/feishu-TFIZXPIN.js +0 -231
- package/dist/figma-4AK47AYY.js +0 -773
- package/dist/firehydrant-RGPTW4EA.js +0 -562
- package/dist/fly-YB4AQD4O.js +0 -468
- package/dist/geocodio-YRT4K25M.js +0 -212
- package/dist/ghost-JCW6UIP2.js +0 -337
- package/dist/github-CEGVRMNX.js +0 -5420
- package/dist/gmail-JCMJD55P.js +0 -1886
- package/dist/googlecalendar-2EAW4MNM.js +0 -2522
- package/dist/graphhopper-H3IVJNDS.js +0 -324
- package/dist/ipgeolocation_io-5I2BDVMG.js +0 -315
- package/dist/ipqualityscore-ILV7TQCV.js +0 -277
- package/dist/langsmith-BYRX4AOF.js +0 -592
- package/dist/lemlist-ZGNYTIQO.js +0 -288
- package/dist/logsnag-5RGTMTU2.js +0 -150
- package/dist/mem0-RUVNUPTE.js +0 -543
- package/dist/memos-TED4HI54.js +0 -739
- package/dist/mistral_ai-NGP5SHU7.js +0 -1195
- package/dist/ngrok-BYCUJ7QV.js +0 -356
- package/dist/notion-2ILYKJOO.js +0 -936
- package/dist/open_exchange_rates-JU4DC6HZ.js +0 -214
- package/dist/openai-6SOT26ZK.js +0 -799
- package/dist/opengraph_io-ZEFHV2OL.js +0 -361
- package/dist/openrouter-R4P7JL5L.js +0 -437
- package/dist/outline-VCTQ5V2X.js +0 -595
- package/dist/paddle-AZOAKBJS.js +0 -453
- package/dist/perplexity-OMRLGVAT.js +0 -219
- package/dist/pinecone-DI62W3ZX.js +0 -570
- package/dist/polar-5DRGTXNR.js +0 -394
- package/dist/posthog-3DTHFCKE.js +0 -3463
- package/dist/postmark-ME2V2XXI.js +0 -426
- package/dist/readwise-IJQGV6IQ.js +0 -469
- package/dist/render-TMSPHRTY.js +0 -460
- package/dist/rootly-7RXE4K7L.js +0 -336
- package/dist/semantic_scholar-SDPVGDDI.js +0 -610
- package/dist/shopify-SU5ABP54.js +0 -609
- package/dist/stripe-JAC425KE.js +0 -584
- package/dist/tavily-Y7MDA5CI.js +0 -326
- package/dist/telegram-OIDT3ZLH.js +0 -1766
- package/dist/todoist-O7S2OUGX.js +0 -663
- package/dist/trello-3LDE4TAQ.js +0 -1079
- package/dist/turso-MUQ44KCA.js +0 -415
- package/dist/umami-SVQIK26J.js +0 -388
- package/dist/unsplash-333XYDCJ.js +0 -350
- package/dist/uptimerobot-7ZRU2NJV.js +0 -482
- package/dist/v2ex-AVSJCQPS.js +0 -666
- package/dist/vercel-J7RGXNSA.js +0 -1075
- package/dist/wordpress-THOJLPKA.js +0 -811
- package/dist/workos-ENTGRWF2.js +0 -663
- package/dist/zhihu-W2BXICTX.js +0 -253
|
@@ -8,14 +8,15 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
createProviderPlugin,
|
|
10
10
|
upstreamError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-X7ZUTKHR.js";
|
|
12
12
|
import {
|
|
13
13
|
guardedFetch
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7ISGFRC6.js";
|
|
15
|
+
import "./chunk-UY6ANCOY.js";
|
|
15
16
|
import {
|
|
16
17
|
TBError,
|
|
17
|
-
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
isTBError
|
|
19
|
+
} from "./chunk-HA4BGL6C.js";
|
|
19
20
|
import "./chunk-U67V476Y.js";
|
|
20
21
|
|
|
21
22
|
// ../plugins/src/pubmed/api.ts
|
|
@@ -142,7 +143,7 @@ async function requestText(input) {
|
|
|
142
143
|
signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
|
|
143
144
|
});
|
|
144
145
|
} catch (error) {
|
|
145
|
-
if (error
|
|
146
|
+
if (isTBError(error)) throw error;
|
|
146
147
|
if (error instanceof Error && error.name === "TimeoutError") {
|
|
147
148
|
throw upstreamError(504, `${input.source} request timed out`);
|
|
148
149
|
}
|
|
@@ -675,276 +676,277 @@ async function convertArticleIds(input) {
|
|
|
675
676
|
}
|
|
676
677
|
|
|
677
678
|
// ../plugins/src/pubmed/schema.ts
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
679
|
+
import { z } from "zod/v4";
|
|
680
|
+
var searchArticlesInput = z.strictObject({
|
|
681
|
+
query: z.string().min(1).describe("The PubMed query, including optional official field tags and Boolean operators such as cancer[Title] AND 2025[pdat]."),
|
|
682
|
+
offset: z.int().min(0).max(9999).default(0).describe("The zero-based search result offset.").optional(),
|
|
683
|
+
limit: z.int().min(1).max(50).default(10).describe("The maximum number of articles to return.").optional(),
|
|
684
|
+
sort: z.enum(["relevance", "publication_date", "first_author", "journal"]).describe("The PubMed result sort order.").optional(),
|
|
685
|
+
publicationDateRange: z.strictObject({
|
|
686
|
+
from: z.iso.date().describe("The earliest publication date to include.").optional(),
|
|
687
|
+
to: z.iso.date().describe("The latest publication date to include.").optional()
|
|
686
688
|
}).describe("An inclusive PubMed publication date range.").optional()
|
|
687
689
|
}).describe("Input parameters for searching PubMed articles.");
|
|
688
|
-
var searchArticlesOutput =
|
|
689
|
-
total:
|
|
690
|
-
offset:
|
|
691
|
-
limit:
|
|
692
|
-
queryTranslation:
|
|
693
|
-
articles:
|
|
694
|
-
pmid:
|
|
695
|
-
title:
|
|
696
|
-
abstract:
|
|
697
|
-
label:
|
|
698
|
-
text:
|
|
690
|
+
var searchArticlesOutput = z.strictObject({
|
|
691
|
+
total: z.int().min(0).describe("The total number of matching PubMed records.").optional(),
|
|
692
|
+
offset: z.int().min(0).describe("The zero-based result offset.").optional(),
|
|
693
|
+
limit: z.int().min(1).describe("The requested page size.").optional(),
|
|
694
|
+
queryTranslation: z.string().describe("The query translation reported by PubMed.").nullable().optional(),
|
|
695
|
+
articles: z.array(z.strictObject({
|
|
696
|
+
pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
|
|
697
|
+
title: z.string().describe("The article title.").optional(),
|
|
698
|
+
abstract: z.array(z.strictObject({
|
|
699
|
+
label: z.string().describe("The structured abstract section label when present.").nullable().optional(),
|
|
700
|
+
text: z.string().describe("The normalized abstract section text.").optional()
|
|
699
701
|
}).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
|
|
700
|
-
authors:
|
|
701
|
-
name:
|
|
702
|
-
orcid:
|
|
703
|
-
affiliations:
|
|
702
|
+
authors: z.array(z.strictObject({
|
|
703
|
+
name: z.string().describe("The author or collective author name.").optional(),
|
|
704
|
+
orcid: z.string().describe("The author's ORCID when present.").nullable().optional(),
|
|
705
|
+
affiliations: z.array(z.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
|
|
704
706
|
}).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
|
|
705
|
-
journal:
|
|
706
|
-
title:
|
|
707
|
-
abbreviation:
|
|
708
|
-
issn:
|
|
709
|
-
volume:
|
|
710
|
-
issue:
|
|
707
|
+
journal: z.strictObject({
|
|
708
|
+
title: z.string().describe("The full journal title.").nullable().optional(),
|
|
709
|
+
abbreviation: z.string().describe("The NLM journal abbreviation.").nullable().optional(),
|
|
710
|
+
issn: z.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
|
|
711
|
+
volume: z.string().describe("The journal volume.").nullable().optional(),
|
|
712
|
+
issue: z.string().describe("The journal issue.").nullable().optional()
|
|
711
713
|
}).describe("The journal information attached to a PubMed record.").optional(),
|
|
712
|
-
publicationDate:
|
|
713
|
-
publicationTypes:
|
|
714
|
-
meshTerms:
|
|
715
|
-
keywords:
|
|
716
|
-
languages:
|
|
717
|
-
doi:
|
|
718
|
-
pmcid:
|
|
719
|
-
pubmedUrl:
|
|
720
|
-
pmcUrl:
|
|
714
|
+
publicationDate: z.string().describe("The publication date or source Medline date.").nullable().optional(),
|
|
715
|
+
publicationTypes: z.array(z.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
|
|
716
|
+
meshTerms: z.array(z.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
|
|
717
|
+
keywords: z.array(z.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
|
|
718
|
+
languages: z.array(z.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
|
|
719
|
+
doi: z.string().describe("The article DOI when present.").nullable().optional(),
|
|
720
|
+
pmcid: z.string().describe("The PubMed Central identifier when present.").nullable().optional(),
|
|
721
|
+
pubmedUrl: z.url().describe("The canonical PubMed record URL.").optional(),
|
|
722
|
+
pmcUrl: z.url().describe("The PubMed Central article URL when available.").nullable().optional()
|
|
721
723
|
}).describe("A normalized PubMed article record.")).describe("The normalized articles in this page.").optional()
|
|
722
724
|
}).describe("A page of normalized PubMed search results.");
|
|
723
|
-
var matchCitationInput =
|
|
724
|
-
citation:
|
|
725
|
+
var matchCitationInput = z.strictObject({
|
|
726
|
+
citation: z.string().min(1).describe("The citation text to match, such as an article title followed by its journal, year, volume, and pages.").optional()
|
|
725
727
|
}).describe("Input parameters for matching one citation.");
|
|
726
|
-
var matchCitationOutput =
|
|
727
|
-
matched:
|
|
728
|
-
articles:
|
|
729
|
-
pmid:
|
|
730
|
-
title:
|
|
731
|
-
abstract:
|
|
732
|
-
label:
|
|
733
|
-
text:
|
|
728
|
+
var matchCitationOutput = z.strictObject({
|
|
729
|
+
matched: z.boolean().describe("Whether PubMed returned at least one candidate article.").optional(),
|
|
730
|
+
articles: z.array(z.strictObject({
|
|
731
|
+
pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
|
|
732
|
+
title: z.string().describe("The article title.").optional(),
|
|
733
|
+
abstract: z.array(z.strictObject({
|
|
734
|
+
label: z.string().describe("The structured abstract section label when present.").nullable().optional(),
|
|
735
|
+
text: z.string().describe("The normalized abstract section text.").optional()
|
|
734
736
|
}).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
|
|
735
|
-
authors:
|
|
736
|
-
name:
|
|
737
|
-
orcid:
|
|
738
|
-
affiliations:
|
|
737
|
+
authors: z.array(z.strictObject({
|
|
738
|
+
name: z.string().describe("The author or collective author name.").optional(),
|
|
739
|
+
orcid: z.string().describe("The author's ORCID when present.").nullable().optional(),
|
|
740
|
+
affiliations: z.array(z.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
|
|
739
741
|
}).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
|
|
740
|
-
journal:
|
|
741
|
-
title:
|
|
742
|
-
abbreviation:
|
|
743
|
-
issn:
|
|
744
|
-
volume:
|
|
745
|
-
issue:
|
|
742
|
+
journal: z.strictObject({
|
|
743
|
+
title: z.string().describe("The full journal title.").nullable().optional(),
|
|
744
|
+
abbreviation: z.string().describe("The NLM journal abbreviation.").nullable().optional(),
|
|
745
|
+
issn: z.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
|
|
746
|
+
volume: z.string().describe("The journal volume.").nullable().optional(),
|
|
747
|
+
issue: z.string().describe("The journal issue.").nullable().optional()
|
|
746
748
|
}).describe("The journal information attached to a PubMed record.").optional(),
|
|
747
|
-
publicationDate:
|
|
748
|
-
publicationTypes:
|
|
749
|
-
meshTerms:
|
|
750
|
-
keywords:
|
|
751
|
-
languages:
|
|
752
|
-
doi:
|
|
753
|
-
pmcid:
|
|
754
|
-
pubmedUrl:
|
|
755
|
-
pmcUrl:
|
|
749
|
+
publicationDate: z.string().describe("The publication date or source Medline date.").nullable().optional(),
|
|
750
|
+
publicationTypes: z.array(z.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
|
|
751
|
+
meshTerms: z.array(z.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
|
|
752
|
+
keywords: z.array(z.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
|
|
753
|
+
languages: z.array(z.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
|
|
754
|
+
doi: z.string().describe("The article DOI when present.").nullable().optional(),
|
|
755
|
+
pmcid: z.string().describe("The PubMed Central identifier when present.").nullable().optional(),
|
|
756
|
+
pubmedUrl: z.url().describe("The canonical PubMed record URL.").optional(),
|
|
757
|
+
pmcUrl: z.url().describe("The PubMed Central article URL when available.").nullable().optional()
|
|
756
758
|
}).describe("A normalized PubMed article record.")).describe("The normalized candidate articles returned by PubMed.").optional()
|
|
757
759
|
}).describe("The PubMed articles matched from the citation text.");
|
|
758
|
-
var getArticleInput =
|
|
759
|
-
pmid:
|
|
760
|
+
var getArticleInput = z.strictObject({
|
|
761
|
+
pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional()
|
|
760
762
|
}).describe("Input parameters for getting one PubMed article.");
|
|
761
|
-
var getArticleOutput =
|
|
762
|
-
found:
|
|
763
|
-
article:
|
|
764
|
-
pmid:
|
|
765
|
-
title:
|
|
766
|
-
abstract:
|
|
767
|
-
label:
|
|
768
|
-
text:
|
|
763
|
+
var getArticleOutput = z.strictObject({
|
|
764
|
+
found: z.boolean().describe("Whether PubMed returned the requested record.").optional(),
|
|
765
|
+
article: z.strictObject({
|
|
766
|
+
pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
|
|
767
|
+
title: z.string().describe("The article title.").optional(),
|
|
768
|
+
abstract: z.array(z.strictObject({
|
|
769
|
+
label: z.string().describe("The structured abstract section label when present.").nullable().optional(),
|
|
770
|
+
text: z.string().describe("The normalized abstract section text.").optional()
|
|
769
771
|
}).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
|
|
770
|
-
authors:
|
|
771
|
-
name:
|
|
772
|
-
orcid:
|
|
773
|
-
affiliations:
|
|
772
|
+
authors: z.array(z.strictObject({
|
|
773
|
+
name: z.string().describe("The author or collective author name.").optional(),
|
|
774
|
+
orcid: z.string().describe("The author's ORCID when present.").nullable().optional(),
|
|
775
|
+
affiliations: z.array(z.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
|
|
774
776
|
}).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
|
|
775
|
-
journal:
|
|
776
|
-
title:
|
|
777
|
-
abbreviation:
|
|
778
|
-
issn:
|
|
779
|
-
volume:
|
|
780
|
-
issue:
|
|
777
|
+
journal: z.strictObject({
|
|
778
|
+
title: z.string().describe("The full journal title.").nullable().optional(),
|
|
779
|
+
abbreviation: z.string().describe("The NLM journal abbreviation.").nullable().optional(),
|
|
780
|
+
issn: z.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
|
|
781
|
+
volume: z.string().describe("The journal volume.").nullable().optional(),
|
|
782
|
+
issue: z.string().describe("The journal issue.").nullable().optional()
|
|
781
783
|
}).describe("The journal information attached to a PubMed record.").optional(),
|
|
782
|
-
publicationDate:
|
|
783
|
-
publicationTypes:
|
|
784
|
-
meshTerms:
|
|
785
|
-
keywords:
|
|
786
|
-
languages:
|
|
787
|
-
doi:
|
|
788
|
-
pmcid:
|
|
789
|
-
pubmedUrl:
|
|
790
|
-
pmcUrl:
|
|
784
|
+
publicationDate: z.string().describe("The publication date or source Medline date.").nullable().optional(),
|
|
785
|
+
publicationTypes: z.array(z.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
|
|
786
|
+
meshTerms: z.array(z.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
|
|
787
|
+
keywords: z.array(z.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
|
|
788
|
+
languages: z.array(z.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
|
|
789
|
+
doi: z.string().describe("The article DOI when present.").nullable().optional(),
|
|
790
|
+
pmcid: z.string().describe("The PubMed Central identifier when present.").nullable().optional(),
|
|
791
|
+
pubmedUrl: z.url().describe("The canonical PubMed record URL.").optional(),
|
|
792
|
+
pmcUrl: z.url().describe("The PubMed Central article URL when available.").nullable().optional()
|
|
791
793
|
}).describe("A normalized PubMed article record.").nullable().optional()
|
|
792
794
|
}).describe("The result of retrieving one PubMed article.");
|
|
793
|
-
var getArticlesInput =
|
|
794
|
-
pmids:
|
|
795
|
+
var getArticlesInput = z.strictObject({
|
|
796
|
+
pmids: z.array(z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).")).min(1).max(50).describe("The PubMed identifiers to retrieve.").optional()
|
|
795
797
|
}).describe("Input parameters for getting multiple PubMed articles.");
|
|
796
|
-
var getArticlesOutput =
|
|
797
|
-
articles:
|
|
798
|
-
pmid:
|
|
799
|
-
title:
|
|
800
|
-
abstract:
|
|
801
|
-
label:
|
|
802
|
-
text:
|
|
798
|
+
var getArticlesOutput = z.strictObject({
|
|
799
|
+
articles: z.array(z.strictObject({
|
|
800
|
+
pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
|
|
801
|
+
title: z.string().describe("The article title.").optional(),
|
|
802
|
+
abstract: z.array(z.strictObject({
|
|
803
|
+
label: z.string().describe("The structured abstract section label when present.").nullable().optional(),
|
|
804
|
+
text: z.string().describe("The normalized abstract section text.").optional()
|
|
803
805
|
}).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
|
|
804
|
-
authors:
|
|
805
|
-
name:
|
|
806
|
-
orcid:
|
|
807
|
-
affiliations:
|
|
806
|
+
authors: z.array(z.strictObject({
|
|
807
|
+
name: z.string().describe("The author or collective author name.").optional(),
|
|
808
|
+
orcid: z.string().describe("The author's ORCID when present.").nullable().optional(),
|
|
809
|
+
affiliations: z.array(z.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
|
|
808
810
|
}).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
|
|
809
|
-
journal:
|
|
810
|
-
title:
|
|
811
|
-
abbreviation:
|
|
812
|
-
issn:
|
|
813
|
-
volume:
|
|
814
|
-
issue:
|
|
811
|
+
journal: z.strictObject({
|
|
812
|
+
title: z.string().describe("The full journal title.").nullable().optional(),
|
|
813
|
+
abbreviation: z.string().describe("The NLM journal abbreviation.").nullable().optional(),
|
|
814
|
+
issn: z.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
|
|
815
|
+
volume: z.string().describe("The journal volume.").nullable().optional(),
|
|
816
|
+
issue: z.string().describe("The journal issue.").nullable().optional()
|
|
815
817
|
}).describe("The journal information attached to a PubMed record.").optional(),
|
|
816
|
-
publicationDate:
|
|
817
|
-
publicationTypes:
|
|
818
|
-
meshTerms:
|
|
819
|
-
keywords:
|
|
820
|
-
languages:
|
|
821
|
-
doi:
|
|
822
|
-
pmcid:
|
|
823
|
-
pubmedUrl:
|
|
824
|
-
pmcUrl:
|
|
818
|
+
publicationDate: z.string().describe("The publication date or source Medline date.").nullable().optional(),
|
|
819
|
+
publicationTypes: z.array(z.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
|
|
820
|
+
meshTerms: z.array(z.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
|
|
821
|
+
keywords: z.array(z.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
|
|
822
|
+
languages: z.array(z.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
|
|
823
|
+
doi: z.string().describe("The article DOI when present.").nullable().optional(),
|
|
824
|
+
pmcid: z.string().describe("The PubMed Central identifier when present.").nullable().optional(),
|
|
825
|
+
pubmedUrl: z.url().describe("The canonical PubMed record URL.").optional(),
|
|
826
|
+
pmcUrl: z.url().describe("The PubMed Central article URL when available.").nullable().optional()
|
|
825
827
|
}).describe("A normalized PubMed article record.")).describe("The PubMed records that were found.").optional(),
|
|
826
|
-
notFoundPmids:
|
|
828
|
+
notFoundPmids: z.array(z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).")).describe("The requested PMIDs that PubMed did not return.").optional()
|
|
827
829
|
}).describe("The result of retrieving multiple PubMed articles.");
|
|
828
|
-
var findRelatedArticlesInput =
|
|
829
|
-
pmid:
|
|
830
|
-
limit:
|
|
830
|
+
var findRelatedArticlesInput = z.strictObject({
|
|
831
|
+
pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID)."),
|
|
832
|
+
limit: z.int().min(1).max(50).default(10).describe("The maximum number of articles to return.").optional()
|
|
831
833
|
}).describe("Input parameters for finding related PubMed articles.");
|
|
832
|
-
var findRelatedArticlesOutput =
|
|
833
|
-
sourcePmid:
|
|
834
|
-
articles:
|
|
835
|
-
pmid:
|
|
836
|
-
title:
|
|
837
|
-
abstract:
|
|
838
|
-
label:
|
|
839
|
-
text:
|
|
834
|
+
var findRelatedArticlesOutput = z.strictObject({
|
|
835
|
+
sourcePmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
|
|
836
|
+
articles: z.array(z.strictObject({
|
|
837
|
+
pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
|
|
838
|
+
title: z.string().describe("The article title.").optional(),
|
|
839
|
+
abstract: z.array(z.strictObject({
|
|
840
|
+
label: z.string().describe("The structured abstract section label when present.").nullable().optional(),
|
|
841
|
+
text: z.string().describe("The normalized abstract section text.").optional()
|
|
840
842
|
}).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
|
|
841
|
-
authors:
|
|
842
|
-
name:
|
|
843
|
-
orcid:
|
|
844
|
-
affiliations:
|
|
843
|
+
authors: z.array(z.strictObject({
|
|
844
|
+
name: z.string().describe("The author or collective author name.").optional(),
|
|
845
|
+
orcid: z.string().describe("The author's ORCID when present.").nullable().optional(),
|
|
846
|
+
affiliations: z.array(z.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
|
|
845
847
|
}).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
|
|
846
|
-
journal:
|
|
847
|
-
title:
|
|
848
|
-
abbreviation:
|
|
849
|
-
issn:
|
|
850
|
-
volume:
|
|
851
|
-
issue:
|
|
848
|
+
journal: z.strictObject({
|
|
849
|
+
title: z.string().describe("The full journal title.").nullable().optional(),
|
|
850
|
+
abbreviation: z.string().describe("The NLM journal abbreviation.").nullable().optional(),
|
|
851
|
+
issn: z.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
|
|
852
|
+
volume: z.string().describe("The journal volume.").nullable().optional(),
|
|
853
|
+
issue: z.string().describe("The journal issue.").nullable().optional()
|
|
852
854
|
}).describe("The journal information attached to a PubMed record.").optional(),
|
|
853
|
-
publicationDate:
|
|
854
|
-
publicationTypes:
|
|
855
|
-
meshTerms:
|
|
856
|
-
keywords:
|
|
857
|
-
languages:
|
|
858
|
-
doi:
|
|
859
|
-
pmcid:
|
|
860
|
-
pubmedUrl:
|
|
861
|
-
pmcUrl:
|
|
855
|
+
publicationDate: z.string().describe("The publication date or source Medline date.").nullable().optional(),
|
|
856
|
+
publicationTypes: z.array(z.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
|
|
857
|
+
meshTerms: z.array(z.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
|
|
858
|
+
keywords: z.array(z.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
|
|
859
|
+
languages: z.array(z.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
|
|
860
|
+
doi: z.string().describe("The article DOI when present.").nullable().optional(),
|
|
861
|
+
pmcid: z.string().describe("The PubMed Central identifier when present.").nullable().optional(),
|
|
862
|
+
pubmedUrl: z.url().describe("The canonical PubMed record URL.").optional(),
|
|
863
|
+
pmcUrl: z.url().describe("The PubMed Central article URL when available.").nullable().optional()
|
|
862
864
|
}).describe("A normalized PubMed article record.")).describe("The normalized related PubMed articles.").optional()
|
|
863
865
|
}).describe("The related PubMed articles returned for one source record.");
|
|
864
|
-
var getCitingArticlesInput =
|
|
865
|
-
pmid:
|
|
866
|
-
limit:
|
|
866
|
+
var getCitingArticlesInput = z.strictObject({
|
|
867
|
+
pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID)."),
|
|
868
|
+
limit: z.int().min(1).max(50).default(10).describe("The maximum number of articles to return.").optional()
|
|
867
869
|
}).describe("Input parameters for getting articles that cite a source PubMed record.");
|
|
868
|
-
var getCitingArticlesOutput =
|
|
869
|
-
sourcePmid:
|
|
870
|
-
articles:
|
|
871
|
-
pmid:
|
|
872
|
-
title:
|
|
873
|
-
abstract:
|
|
874
|
-
label:
|
|
875
|
-
text:
|
|
870
|
+
var getCitingArticlesOutput = z.strictObject({
|
|
871
|
+
sourcePmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
|
|
872
|
+
articles: z.array(z.strictObject({
|
|
873
|
+
pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
|
|
874
|
+
title: z.string().describe("The article title.").optional(),
|
|
875
|
+
abstract: z.array(z.strictObject({
|
|
876
|
+
label: z.string().describe("The structured abstract section label when present.").nullable().optional(),
|
|
877
|
+
text: z.string().describe("The normalized abstract section text.").optional()
|
|
876
878
|
}).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
|
|
877
|
-
authors:
|
|
878
|
-
name:
|
|
879
|
-
orcid:
|
|
880
|
-
affiliations:
|
|
879
|
+
authors: z.array(z.strictObject({
|
|
880
|
+
name: z.string().describe("The author or collective author name.").optional(),
|
|
881
|
+
orcid: z.string().describe("The author's ORCID when present.").nullable().optional(),
|
|
882
|
+
affiliations: z.array(z.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
|
|
881
883
|
}).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
|
|
882
|
-
journal:
|
|
883
|
-
title:
|
|
884
|
-
abbreviation:
|
|
885
|
-
issn:
|
|
886
|
-
volume:
|
|
887
|
-
issue:
|
|
884
|
+
journal: z.strictObject({
|
|
885
|
+
title: z.string().describe("The full journal title.").nullable().optional(),
|
|
886
|
+
abbreviation: z.string().describe("The NLM journal abbreviation.").nullable().optional(),
|
|
887
|
+
issn: z.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
|
|
888
|
+
volume: z.string().describe("The journal volume.").nullable().optional(),
|
|
889
|
+
issue: z.string().describe("The journal issue.").nullable().optional()
|
|
888
890
|
}).describe("The journal information attached to a PubMed record.").optional(),
|
|
889
|
-
publicationDate:
|
|
890
|
-
publicationTypes:
|
|
891
|
-
meshTerms:
|
|
892
|
-
keywords:
|
|
893
|
-
languages:
|
|
894
|
-
doi:
|
|
895
|
-
pmcid:
|
|
896
|
-
pubmedUrl:
|
|
897
|
-
pmcUrl:
|
|
891
|
+
publicationDate: z.string().describe("The publication date or source Medline date.").nullable().optional(),
|
|
892
|
+
publicationTypes: z.array(z.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
|
|
893
|
+
meshTerms: z.array(z.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
|
|
894
|
+
keywords: z.array(z.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
|
|
895
|
+
languages: z.array(z.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
|
|
896
|
+
doi: z.string().describe("The article DOI when present.").nullable().optional(),
|
|
897
|
+
pmcid: z.string().describe("The PubMed Central identifier when present.").nullable().optional(),
|
|
898
|
+
pubmedUrl: z.url().describe("The canonical PubMed record URL.").optional(),
|
|
899
|
+
pmcUrl: z.url().describe("The PubMed Central article URL when available.").nullable().optional()
|
|
898
900
|
}).describe("A normalized PubMed article record.")).describe("The normalized articles known to cite the source record.").optional()
|
|
899
901
|
}).describe("The citing PubMed articles returned for one source record.");
|
|
900
|
-
var getArticleReferencesInput =
|
|
901
|
-
pmid:
|
|
902
|
-
limit:
|
|
902
|
+
var getArticleReferencesInput = z.strictObject({
|
|
903
|
+
pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID)."),
|
|
904
|
+
limit: z.int().min(1).max(50).default(10).describe("The maximum number of articles to return.").optional()
|
|
903
905
|
}).describe("Input parameters for getting references from a source PubMed record.");
|
|
904
|
-
var getArticleReferencesOutput =
|
|
905
|
-
sourcePmid:
|
|
906
|
-
articles:
|
|
907
|
-
pmid:
|
|
908
|
-
title:
|
|
909
|
-
abstract:
|
|
910
|
-
label:
|
|
911
|
-
text:
|
|
906
|
+
var getArticleReferencesOutput = z.strictObject({
|
|
907
|
+
sourcePmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
|
|
908
|
+
articles: z.array(z.strictObject({
|
|
909
|
+
pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
|
|
910
|
+
title: z.string().describe("The article title.").optional(),
|
|
911
|
+
abstract: z.array(z.strictObject({
|
|
912
|
+
label: z.string().describe("The structured abstract section label when present.").nullable().optional(),
|
|
913
|
+
text: z.string().describe("The normalized abstract section text.").optional()
|
|
912
914
|
}).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
|
|
913
|
-
authors:
|
|
914
|
-
name:
|
|
915
|
-
orcid:
|
|
916
|
-
affiliations:
|
|
915
|
+
authors: z.array(z.strictObject({
|
|
916
|
+
name: z.string().describe("The author or collective author name.").optional(),
|
|
917
|
+
orcid: z.string().describe("The author's ORCID when present.").nullable().optional(),
|
|
918
|
+
affiliations: z.array(z.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
|
|
917
919
|
}).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
|
|
918
|
-
journal:
|
|
919
|
-
title:
|
|
920
|
-
abbreviation:
|
|
921
|
-
issn:
|
|
922
|
-
volume:
|
|
923
|
-
issue:
|
|
920
|
+
journal: z.strictObject({
|
|
921
|
+
title: z.string().describe("The full journal title.").nullable().optional(),
|
|
922
|
+
abbreviation: z.string().describe("The NLM journal abbreviation.").nullable().optional(),
|
|
923
|
+
issn: z.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
|
|
924
|
+
volume: z.string().describe("The journal volume.").nullable().optional(),
|
|
925
|
+
issue: z.string().describe("The journal issue.").nullable().optional()
|
|
924
926
|
}).describe("The journal information attached to a PubMed record.").optional(),
|
|
925
|
-
publicationDate:
|
|
926
|
-
publicationTypes:
|
|
927
|
-
meshTerms:
|
|
928
|
-
keywords:
|
|
929
|
-
languages:
|
|
930
|
-
doi:
|
|
931
|
-
pmcid:
|
|
932
|
-
pubmedUrl:
|
|
933
|
-
pmcUrl:
|
|
927
|
+
publicationDate: z.string().describe("The publication date or source Medline date.").nullable().optional(),
|
|
928
|
+
publicationTypes: z.array(z.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
|
|
929
|
+
meshTerms: z.array(z.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
|
|
930
|
+
keywords: z.array(z.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
|
|
931
|
+
languages: z.array(z.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
|
|
932
|
+
doi: z.string().describe("The article DOI when present.").nullable().optional(),
|
|
933
|
+
pmcid: z.string().describe("The PubMed Central identifier when present.").nullable().optional(),
|
|
934
|
+
pubmedUrl: z.url().describe("The canonical PubMed record URL.").optional(),
|
|
935
|
+
pmcUrl: z.url().describe("The PubMed Central article URL when available.").nullable().optional()
|
|
934
936
|
}).describe("A normalized PubMed article record.")).describe("The normalized PubMed articles referenced by the source record.").optional()
|
|
935
937
|
}).describe("The PubMed references returned for one source record.");
|
|
936
|
-
var convertArticleIdsInput =
|
|
937
|
-
ids:
|
|
938
|
-
idType:
|
|
938
|
+
var convertArticleIdsInput = z.strictObject({
|
|
939
|
+
ids: z.array(z.string().min(1).describe("One PMID, PMCID, DOI, or author manuscript identifier.")).min(1).max(200).describe("The article identifiers to convert. Every identifier must have the same idType.").optional(),
|
|
940
|
+
idType: z.enum(["pmid", "pmcid", "doi", "mid"]).describe("The type shared by every input article identifier.").optional()
|
|
939
941
|
}).describe("Input parameters for converting article identifiers.");
|
|
940
|
-
var convertArticleIdsOutput =
|
|
941
|
-
records:
|
|
942
|
-
requestedId:
|
|
943
|
-
pmid:
|
|
944
|
-
pmcid:
|
|
945
|
-
doi:
|
|
946
|
-
mid:
|
|
947
|
-
error:
|
|
942
|
+
var convertArticleIdsOutput = z.strictObject({
|
|
943
|
+
records: z.array(z.strictObject({
|
|
944
|
+
requestedId: z.string().describe("The original identifier from the request.").optional(),
|
|
945
|
+
pmid: z.string().describe("The PubMed identifier when the article has one.").nullable().optional(),
|
|
946
|
+
pmcid: z.string().describe("The PubMed Central identifier when the article is represented in PMC.").nullable().optional(),
|
|
947
|
+
doi: z.string().describe("The DOI when PMC reports one.").nullable().optional(),
|
|
948
|
+
mid: z.string().describe("The author manuscript identifier when PMC reports one.").nullable().optional(),
|
|
949
|
+
error: z.string().describe("The PMC ID Converter error when the requested identifier could not be resolved.").nullable().optional()
|
|
948
950
|
}).describe("The available identifiers for one requested article.")).describe("One conversion result for each identifier returned by PMC.").optional()
|
|
949
951
|
}).describe("The available identifier mappings returned by PMC.");
|
|
950
952
|
var pubmedActions = {
|
|
@@ -952,49 +954,49 @@ var pubmedActions = {
|
|
|
952
954
|
description: "Search PubMed with the official query syntax and return normalized article records.",
|
|
953
955
|
effect: "read",
|
|
954
956
|
inputSchema: searchArticlesInput,
|
|
955
|
-
outputSchema:
|
|
957
|
+
outputSchema: z.toJSONSchema(searchArticlesOutput, { io: "output", unrepresentable: "any" })
|
|
956
958
|
},
|
|
957
959
|
match_citation: {
|
|
958
960
|
description: "Match one raw biomedical citation to PubMed and return normalized candidate articles.",
|
|
959
961
|
effect: "write",
|
|
960
962
|
inputSchema: matchCitationInput,
|
|
961
|
-
outputSchema:
|
|
963
|
+
outputSchema: z.toJSONSchema(matchCitationOutput, { io: "output", unrepresentable: "any" })
|
|
962
964
|
},
|
|
963
965
|
get_article: {
|
|
964
966
|
description: "Get one normalized PubMed article by PMID.",
|
|
965
967
|
effect: "read",
|
|
966
968
|
inputSchema: getArticleInput,
|
|
967
|
-
outputSchema:
|
|
969
|
+
outputSchema: z.toJSONSchema(getArticleOutput, { io: "output", unrepresentable: "any" })
|
|
968
970
|
},
|
|
969
971
|
get_articles: {
|
|
970
972
|
description: "Get multiple normalized PubMed articles by PMID in one request.",
|
|
971
973
|
effect: "read",
|
|
972
974
|
inputSchema: getArticlesInput,
|
|
973
|
-
outputSchema:
|
|
975
|
+
outputSchema: z.toJSONSchema(getArticlesOutput, { io: "output", unrepresentable: "any" })
|
|
974
976
|
},
|
|
975
977
|
find_related_articles: {
|
|
976
978
|
description: "Find normalized PubMed articles related to one source PMID.",
|
|
977
979
|
effect: "read",
|
|
978
980
|
inputSchema: findRelatedArticlesInput,
|
|
979
|
-
outputSchema:
|
|
981
|
+
outputSchema: z.toJSONSchema(findRelatedArticlesOutput, { io: "output", unrepresentable: "any" })
|
|
980
982
|
},
|
|
981
983
|
get_citing_articles: {
|
|
982
984
|
description: "Get normalized PubMed articles known to cite one source PMID. PubMed citation coverage depends on data supplied by publishers and NCBI sources and may be incomplete.",
|
|
983
985
|
effect: "read",
|
|
984
986
|
inputSchema: getCitingArticlesInput,
|
|
985
|
-
outputSchema:
|
|
987
|
+
outputSchema: z.toJSONSchema(getCitingArticlesOutput, { io: "output", unrepresentable: "any" })
|
|
986
988
|
},
|
|
987
989
|
get_article_references: {
|
|
988
990
|
description: "Get normalized PubMed references for one source PMID. References are available only when supplied by publishers or recoverable from PMC data.",
|
|
989
991
|
effect: "read",
|
|
990
992
|
inputSchema: getArticleReferencesInput,
|
|
991
|
-
outputSchema:
|
|
993
|
+
outputSchema: z.toJSONSchema(getArticleReferencesOutput, { io: "output", unrepresentable: "any" })
|
|
992
994
|
},
|
|
993
995
|
convert_article_ids: {
|
|
994
996
|
description: "Convert PMID, PMCID, DOI, or author manuscript identifiers with the PMC ID Converter. Complete mappings are available only for articles represented in PubMed Central.",
|
|
995
997
|
effect: "write",
|
|
996
998
|
inputSchema: convertArticleIdsInput,
|
|
997
|
-
outputSchema:
|
|
999
|
+
outputSchema: z.toJSONSchema(convertArticleIdsOutput, { io: "output", unrepresentable: "any" })
|
|
998
1000
|
}
|
|
999
1001
|
};
|
|
1000
1002
|
|