@oneshot-agent/mcp-server 0.48.0 → 0.49.0
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/README.md +13 -1
- package/dist/index.js +1 -1
- package/dist/tools/browser.js +0 -1
- package/dist/tools/company.js +7 -2
- package/dist/tools/compute.d.ts +8 -0
- package/dist/tools/compute.js +11 -4
- package/dist/tools/enrichment.d.ts +7 -0
- package/dist/tools/enrichment.js +13 -3
- package/dist/tools/index.d.ts +4 -9
- package/dist/tools/index.js +12 -2
- package/dist/tools/local.js +7 -2
- package/dist/tools/lookup-manifest.generated.js +338 -0
- package/dist/tools/nyne.js +19 -10
- package/dist/tools/people.js +4 -1
- package/dist/tools/predict-schema.generated.d.ts +18 -18
- package/dist/tools/predict-schema.generated.js +35 -35
- package/dist/tools/solve-schema.generated.d.ts +47 -39
- package/dist/tools/solve-schema.generated.js +80 -72
- package/dist/tools/untrusted-tools.generated.d.ts +2 -0
- package/dist/tools/untrusted-tools.generated.js +305 -0
- package/package.json +5 -5
|
@@ -21,6 +21,10 @@ export const LOOKUP_MANIFEST = [
|
|
|
21
21
|
"limit": {
|
|
22
22
|
"type": "integer",
|
|
23
23
|
"description": "Most banks to return. From 1 to 10. Defaults to `5`."
|
|
24
|
+
},
|
|
25
|
+
"fresh": {
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"description": "Look the record up again instead of using OneShot's stored copy from an earlier lookup, and refresh that copy. Off by default: a record stored within its freshness window is returned as is, with cached: true and its fetched_at."
|
|
24
28
|
}
|
|
25
29
|
},
|
|
26
30
|
"required": []
|
|
@@ -99,6 +103,10 @@ export const LOOKUP_MANIFEST = [
|
|
|
99
103
|
"limit": {
|
|
100
104
|
"type": "integer",
|
|
101
105
|
"description": "Most filings to return, newest first. From 1 to 50. Defaults to `10`."
|
|
106
|
+
},
|
|
107
|
+
"fresh": {
|
|
108
|
+
"type": "boolean",
|
|
109
|
+
"description": "Look the record up again instead of using OneShot's stored copy from an earlier lookup, and refresh that copy. Off by default: a record stored within its freshness window is returned as is, with cached: true and its fetched_at."
|
|
102
110
|
}
|
|
103
111
|
},
|
|
104
112
|
"required": [
|
|
@@ -230,6 +238,10 @@ export const LOOKUP_MANIFEST = [
|
|
|
230
238
|
"limit": {
|
|
231
239
|
"type": "integer",
|
|
232
240
|
"description": "Most complaints to return, newest first. From 1 to 25. Defaults to `10`."
|
|
241
|
+
},
|
|
242
|
+
"fresh": {
|
|
243
|
+
"type": "boolean",
|
|
244
|
+
"description": "Look the record up again instead of using OneShot's stored copy from an earlier lookup, and refresh that copy. Off by default: a record stored within its freshness window is returned as is, with cached: true and its fetched_at."
|
|
233
245
|
}
|
|
234
246
|
},
|
|
235
247
|
"required": [
|
|
@@ -271,6 +283,10 @@ export const LOOKUP_MANIFEST = [
|
|
|
271
283
|
"limit": {
|
|
272
284
|
"type": "integer",
|
|
273
285
|
"description": "Most licences to return. From 1 to 20. Defaults to `5`."
|
|
286
|
+
},
|
|
287
|
+
"fresh": {
|
|
288
|
+
"type": "boolean",
|
|
289
|
+
"description": "Look the record up again instead of using OneShot's stored copy from an earlier lookup, and refresh that copy. Off by default: a record stored within its freshness window is returned as is, with cached: true and its fetched_at."
|
|
274
290
|
}
|
|
275
291
|
},
|
|
276
292
|
"required": [
|
|
@@ -379,6 +395,36 @@ export const LOOKUP_MANIFEST = [
|
|
|
379
395
|
"variant": "FWD"
|
|
380
396
|
}
|
|
381
397
|
},
|
|
398
|
+
{
|
|
399
|
+
"name": "record_customs_rulings_find",
|
|
400
|
+
"path": "find/record-customs-rulings",
|
|
401
|
+
"title": "Customs Rulings",
|
|
402
|
+
"description": "Searches rulings published by US Customs and Border Protection, closest match first, with ruling numbers you can cite, dates, tariff numbers and revocation status. A ruling binds only the goods it describes. The rate itself comes from Duty Rate. New rulings are added daily as issued. Each answer includes the ruling date and a link to the ruling page. The optional tariff_number prefix filters the returned page. Fewer than limit rulings may remain; total is the source match count before filtering.",
|
|
403
|
+
"inputSchema": {
|
|
404
|
+
"type": "object",
|
|
405
|
+
"properties": {
|
|
406
|
+
"query": {
|
|
407
|
+
"type": "string",
|
|
408
|
+
"description": "Search words, for example bluetooth speaker. 2 to 200 characters."
|
|
409
|
+
},
|
|
410
|
+
"tariff_number": {
|
|
411
|
+
"type": "string",
|
|
412
|
+
"description": "Keep rulings with a tariff number starting with this prefix, for example 8518, 8518.22 or 8518.22.0000"
|
|
413
|
+
},
|
|
414
|
+
"limit": {
|
|
415
|
+
"type": "integer",
|
|
416
|
+
"description": "The most rulings to fetch before the optional tariff filter. From 1 to 20. Defaults to `10`."
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
"required": [
|
|
420
|
+
"query"
|
|
421
|
+
]
|
|
422
|
+
},
|
|
423
|
+
"example": {
|
|
424
|
+
"query": "bluetooth speaker",
|
|
425
|
+
"limit": 1
|
|
426
|
+
}
|
|
427
|
+
},
|
|
382
428
|
{
|
|
383
429
|
"name": "product_device_clearances",
|
|
384
430
|
"path": "lookup/product-device-clearances",
|
|
@@ -647,6 +693,10 @@ export const LOOKUP_MANIFEST = [
|
|
|
647
693
|
"limit": {
|
|
648
694
|
"type": "integer",
|
|
649
695
|
"description": "How many facilities to return. From 1 to 25. Defaults to `10`."
|
|
696
|
+
},
|
|
697
|
+
"fresh": {
|
|
698
|
+
"type": "boolean",
|
|
699
|
+
"description": "Look the record up again instead of using OneShot's stored copy from an earlier lookup, and refresh that copy. Off by default: a record stored within its freshness window is returned as is, with cached: true and its fetched_at."
|
|
650
700
|
}
|
|
651
701
|
},
|
|
652
702
|
"required": [
|
|
@@ -686,6 +736,10 @@ export const LOOKUP_MANIFEST = [
|
|
|
686
736
|
"limit": {
|
|
687
737
|
"type": "integer",
|
|
688
738
|
"description": "The most establishments to return. From 1 to 10. Defaults to `3`."
|
|
739
|
+
},
|
|
740
|
+
"fresh": {
|
|
741
|
+
"type": "boolean",
|
|
742
|
+
"description": "Look the record up again instead of using OneShot's stored copy from an earlier lookup, and refresh that copy. Off by default: a record stored within its freshness window is returned as is, with cached: true and its fetched_at."
|
|
689
743
|
}
|
|
690
744
|
},
|
|
691
745
|
"required": []
|
|
@@ -729,6 +783,10 @@ export const LOOKUP_MANIFEST = [
|
|
|
729
783
|
"limit": {
|
|
730
784
|
"type": "integer",
|
|
731
785
|
"description": "Most awards to return, largest first. From 1 to 25. Defaults to `10`."
|
|
786
|
+
},
|
|
787
|
+
"fresh": {
|
|
788
|
+
"type": "boolean",
|
|
789
|
+
"description": "Look the record up again instead of using OneShot's stored copy from an earlier lookup, and refresh that copy. Off by default: a record stored within its freshness window is returned as is, with cached: true and its fetched_at."
|
|
732
790
|
}
|
|
733
791
|
},
|
|
734
792
|
"required": [
|
|
@@ -1226,6 +1284,10 @@ export const LOOKUP_MANIFEST = [
|
|
|
1226
1284
|
"limit": {
|
|
1227
1285
|
"type": "integer",
|
|
1228
1286
|
"description": "Most inspections to return per establishment. From 1 to 20. Defaults to `5`."
|
|
1287
|
+
},
|
|
1288
|
+
"fresh": {
|
|
1289
|
+
"type": "boolean",
|
|
1290
|
+
"description": "Look the record up again instead of using OneShot's stored copy from an earlier lookup, and refresh that copy. Off by default: a record stored within its freshness window is returned as is, with cached: true and its fetched_at."
|
|
1229
1291
|
}
|
|
1230
1292
|
},
|
|
1231
1293
|
"required": []
|
|
@@ -1266,6 +1328,10 @@ export const LOOKUP_MANIFEST = [
|
|
|
1266
1328
|
"limit": {
|
|
1267
1329
|
"type": "integer",
|
|
1268
1330
|
"description": "Most providers to return from a name search. From 1 to 20. Defaults to `5`."
|
|
1331
|
+
},
|
|
1332
|
+
"fresh": {
|
|
1333
|
+
"type": "boolean",
|
|
1334
|
+
"description": "Look the record up again instead of using OneShot's stored copy from an earlier lookup, and refresh that copy. Off by default: a record stored within its freshness window is returned as is, with cached: true and its fetched_at."
|
|
1269
1335
|
}
|
|
1270
1336
|
},
|
|
1271
1337
|
"required": []
|
|
@@ -1301,6 +1367,10 @@ export const LOOKUP_MANIFEST = [
|
|
|
1301
1367
|
"limit": {
|
|
1302
1368
|
"type": "integer",
|
|
1303
1369
|
"description": "Most providers to return. From 1 to 20. Defaults to `5`."
|
|
1370
|
+
},
|
|
1371
|
+
"fresh": {
|
|
1372
|
+
"type": "boolean",
|
|
1373
|
+
"description": "Look the record up again instead of using OneShot's stored copy from an earlier lookup, and refresh that copy. Off by default: a record stored within its freshness window is returned as is, with cached: true and its fetched_at."
|
|
1304
1374
|
}
|
|
1305
1375
|
},
|
|
1306
1376
|
"required": []
|
|
@@ -1335,6 +1405,49 @@ export const LOOKUP_MANIFEST = [
|
|
|
1335
1405
|
"limit": 2
|
|
1336
1406
|
}
|
|
1337
1407
|
},
|
|
1408
|
+
{
|
|
1409
|
+
"name": "market_interest_rates",
|
|
1410
|
+
"path": "lookup/market-interest-rates",
|
|
1411
|
+
"title": "Interest Rates",
|
|
1412
|
+
"description": "Daily US overnight reference rates published by the Federal Reserve Bank of New York, in percent per year: SOFR, EFFR (with the FOMC target range), OBFR, TGCR, BGCR and the SOFR averages and index. Returns observations newest first for a date range or the most recent published days. OneShot is not affiliated with the New York Fed. The New York Fed does not sanction, endorse, or recommend any products or services offered by OneShot. The rate data is subject to the Terms of Use posted at newyorkfed.org; every answer carries the notice those terms require with any republication, in notice, and it must stay with the data when the answer is shown or passed on. Available rates are the secured overnight financing rate (sofr), the effective federal funds rate (effr, with the FOMC target range), the overnight bank funding rate (obfr), the tri-party general collateral rate (tgcr), the broad general collateral rate (bgcr) and the 30-, 90- and 180-day SOFR averages with the SOFR index (sofr_averages). Returns one observation per business day, newest first, either for a date range (at most 366 days, not in the future) or the last 1 to 30 published days. Each observation carries the rate, its 1st, 25th, 75th and 99th percentiles and the underlying volume in billions of US dollars where the source publishes them; fields that do not apply to a rate are null. revised is true when the source marks the day as revised. A range with no business days returns an empty list. Overnight rates (sofr, effr, obfr, tgcr, bgcr) are dated the business day they apply to and published the next US business day; sofr_averages is dated the day it is published and compounds SOFR through the previous business day. Source: Federal Reserve Bank of New York.",
|
|
1413
|
+
"inputSchema": {
|
|
1414
|
+
"type": "object",
|
|
1415
|
+
"properties": {
|
|
1416
|
+
"rate": {
|
|
1417
|
+
"type": "string",
|
|
1418
|
+
"enum": [
|
|
1419
|
+
"sofr",
|
|
1420
|
+
"effr",
|
|
1421
|
+
"obfr",
|
|
1422
|
+
"tgcr",
|
|
1423
|
+
"bgcr",
|
|
1424
|
+
"sofr_averages"
|
|
1425
|
+
],
|
|
1426
|
+
"description": "Rate code: sofr, effr, obfr, tgcr, bgcr or sofr_averages"
|
|
1427
|
+
},
|
|
1428
|
+
"start_date": {
|
|
1429
|
+
"type": "string",
|
|
1430
|
+
"description": "First date, YYYY-MM-DD; give both start_date and end_date or neither. YYYY-MM-DD."
|
|
1431
|
+
},
|
|
1432
|
+
"end_date": {
|
|
1433
|
+
"type": "string",
|
|
1434
|
+
"description": "Last date, YYYY-MM-DD, inclusive; at most 366 days after start_date and not in the future. YYYY-MM-DD."
|
|
1435
|
+
},
|
|
1436
|
+
"last": {
|
|
1437
|
+
"type": "integer",
|
|
1438
|
+
"description": "Number of most recent published days, 1 to 30, used when no dates are given. From 1 to 30. Defaults to `5`."
|
|
1439
|
+
}
|
|
1440
|
+
},
|
|
1441
|
+
"required": [
|
|
1442
|
+
"rate"
|
|
1443
|
+
]
|
|
1444
|
+
},
|
|
1445
|
+
"example": {
|
|
1446
|
+
"rate": "sofr",
|
|
1447
|
+
"start_date": "2026-10-15",
|
|
1448
|
+
"end_date": "2026-10-16"
|
|
1449
|
+
}
|
|
1450
|
+
},
|
|
1338
1451
|
{
|
|
1339
1452
|
"name": "company_legal_identifier",
|
|
1340
1453
|
"path": "lookup/company-legal-identifier",
|
|
@@ -1354,6 +1467,10 @@ export const LOOKUP_MANIFEST = [
|
|
|
1354
1467
|
"limit": {
|
|
1355
1468
|
"type": "integer",
|
|
1356
1469
|
"description": "Most entities to return. From 1 to 10. Defaults to `5`."
|
|
1470
|
+
},
|
|
1471
|
+
"fresh": {
|
|
1472
|
+
"type": "boolean",
|
|
1473
|
+
"description": "Look the record up again instead of using OneShot's stored copy from an earlier lookup, and refresh that copy. Off by default: a record stored within its freshness window is returned as is, with cached: true and its fetched_at."
|
|
1357
1474
|
}
|
|
1358
1475
|
},
|
|
1359
1476
|
"required": []
|
|
@@ -1392,6 +1509,10 @@ export const LOOKUP_MANIFEST = [
|
|
|
1392
1509
|
"limit": {
|
|
1393
1510
|
"type": "integer",
|
|
1394
1511
|
"description": "Most licences to return. From 1 to 25. Defaults to `10`."
|
|
1512
|
+
},
|
|
1513
|
+
"fresh": {
|
|
1514
|
+
"type": "boolean",
|
|
1515
|
+
"description": "Look the record up again instead of using OneShot's stored copy from an earlier lookup, and refresh that copy. Off by default: a record stored within its freshness window is returned as is, with cached: true and its fetched_at."
|
|
1395
1516
|
}
|
|
1396
1517
|
},
|
|
1397
1518
|
"required": [
|
|
@@ -1422,6 +1543,10 @@ export const LOOKUP_MANIFEST = [
|
|
|
1422
1543
|
"limit": {
|
|
1423
1544
|
"type": "integer",
|
|
1424
1545
|
"description": "Most filings to return, newest posted first. From 1 to 25. Defaults to `10`."
|
|
1546
|
+
},
|
|
1547
|
+
"fresh": {
|
|
1548
|
+
"type": "boolean",
|
|
1549
|
+
"description": "Look the record up again instead of using OneShot's stored copy from an earlier lookup, and refresh that copy. Off by default: a record stored within its freshness window is returned as is, with cached: true and its fetched_at."
|
|
1425
1550
|
}
|
|
1426
1551
|
},
|
|
1427
1552
|
"required": [
|
|
@@ -1434,6 +1559,62 @@ export const LOOKUP_MANIFEST = [
|
|
|
1434
1559
|
"limit": 1
|
|
1435
1560
|
}
|
|
1436
1561
|
},
|
|
1562
|
+
{
|
|
1563
|
+
"name": "market_medicare_drug_spending",
|
|
1564
|
+
"path": "lookup/market-medicare-drug-spending",
|
|
1565
|
+
"title": "Medicare Drug Spending",
|
|
1566
|
+
"description": "Returns Medicare Part D programme spending before rebates, by calendar year, from the US Centers for Medicare & Medicaid Services. Overall is the total across manufacturers; manufacturers can be included separately. Figures include spending, dosage units, claims, beneficiaries and average spending. The series updates annually and supplies the latest five calendar years. Provide brand_name, generic_name, or both. Both exact-match filters apply when both are supplied. Reads one source page of up to 50 rows, including manufacturer rows before filtering; broad matches may be incomplete. Empty source values become null. No match completes with drugs: [].",
|
|
1567
|
+
"inputSchema": {
|
|
1568
|
+
"type": "object",
|
|
1569
|
+
"properties": {
|
|
1570
|
+
"brand_name": {
|
|
1571
|
+
"type": "string",
|
|
1572
|
+
"description": "Exact brand name, for example Eliquis. 2 to 100 characters."
|
|
1573
|
+
},
|
|
1574
|
+
"generic_name": {
|
|
1575
|
+
"type": "string",
|
|
1576
|
+
"description": "Exact generic name, for example Apixaban. 2 to 100 characters."
|
|
1577
|
+
},
|
|
1578
|
+
"manufacturers": {
|
|
1579
|
+
"type": "boolean",
|
|
1580
|
+
"description": "Include per-manufacturer rows in addition to Overall totals. Defaults to `false`."
|
|
1581
|
+
}
|
|
1582
|
+
},
|
|
1583
|
+
"required": []
|
|
1584
|
+
},
|
|
1585
|
+
"example": {
|
|
1586
|
+
"brand_name": "Eliquis"
|
|
1587
|
+
}
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
"name": "market_medicare_fees",
|
|
1591
|
+
"path": "lookup/market-medicare-fees",
|
|
1592
|
+
"title": "Medicare Fee Schedule",
|
|
1593
|
+
"description": "Returns the status indicator, relative value units, conversion factors and national payment amounts, before the locality adjustment, on Medicare's physician payment schedule for a procedure code and modifier. Non-facility is an office, where the practice bears the overhead; facility is a hospital or other facility paid separately for it. Codes and amounts only; procedure descriptions are licensed and not returned. Without a modifier, the rows with no modifier are returned; with one, only that modifier's rows (for example 26 for the professional component and TC for the technical component). From 2026 each code has one rate per conversion factor: one for qualifying alternative payment model participants and one for all other clinicians, in that order. Earlier years have one rate. A practice expense the source marks not applicable gives null practice expense, total and payment for that setting, never zero. When the Medicare Administrative Contractor sets the amount (status C, or L for a local code), both national payments are null. The relative value units are returned as the source lists them. The source is the US Centers for Medicare & Medicaid Services indicators table of the physician payment schedule for the year; locality adjustments are not applied. No match, including a code not on the schedule for the year, completes with rates: [] and a null status.",
|
|
1594
|
+
"inputSchema": {
|
|
1595
|
+
"type": "object",
|
|
1596
|
+
"properties": {
|
|
1597
|
+
"code": {
|
|
1598
|
+
"type": "string",
|
|
1599
|
+
"description": "Five-character procedure code, for example 99213 or G0439. five letters or digits."
|
|
1600
|
+
},
|
|
1601
|
+
"modifier": {
|
|
1602
|
+
"type": "string",
|
|
1603
|
+
"description": "Two-character modifier, for example 26 or TC; without it, rows with no modifier are returned. two letters or digits."
|
|
1604
|
+
},
|
|
1605
|
+
"year": {
|
|
1606
|
+
"type": "integer",
|
|
1607
|
+
"description": "Calendar year of the schedule; defaults to the newest published year. From 2025 to 2026. Defaults to `2026`."
|
|
1608
|
+
}
|
|
1609
|
+
},
|
|
1610
|
+
"required": [
|
|
1611
|
+
"code"
|
|
1612
|
+
]
|
|
1613
|
+
},
|
|
1614
|
+
"example": {
|
|
1615
|
+
"code": "99213"
|
|
1616
|
+
}
|
|
1617
|
+
},
|
|
1437
1618
|
{
|
|
1438
1619
|
"name": "company_medicare_ownership",
|
|
1439
1620
|
"path": "lookup/company-medicare-ownership",
|
|
@@ -1465,6 +1646,10 @@ export const LOOKUP_MANIFEST = [
|
|
|
1465
1646
|
"limit": {
|
|
1466
1647
|
"type": "integer",
|
|
1467
1648
|
"description": "Most facilities to return. From 1 to 10. Defaults to `3`."
|
|
1649
|
+
},
|
|
1650
|
+
"fresh": {
|
|
1651
|
+
"type": "boolean",
|
|
1652
|
+
"description": "Look the record up again instead of using OneShot's stored copy from an earlier lookup, and refresh that copy. Off by default: a record stored within its freshness window is returned as is, with cached: true and its fetched_at."
|
|
1468
1653
|
}
|
|
1469
1654
|
},
|
|
1470
1655
|
"required": [
|
|
@@ -1491,6 +1676,10 @@ export const LOOKUP_MANIFEST = [
|
|
|
1491
1676
|
"mc_number": {
|
|
1492
1677
|
"type": "string",
|
|
1493
1678
|
"description": "The carrier's motor carrier (MC) number, for example MC-1515. mc_number must be 1 to 8 digits, with an optional MC or MC- in front."
|
|
1679
|
+
},
|
|
1680
|
+
"fresh": {
|
|
1681
|
+
"type": "boolean",
|
|
1682
|
+
"description": "Look the record up again instead of using OneShot's stored copy from an earlier lookup, and refresh that copy. Off by default: a record stored within its freshness window is returned as is, with cached: true and its fetched_at."
|
|
1494
1683
|
}
|
|
1495
1684
|
},
|
|
1496
1685
|
"required": []
|
|
@@ -1649,6 +1838,40 @@ export const LOOKUP_MANIFEST = [
|
|
|
1649
1838
|
"include_sequence": false
|
|
1650
1839
|
}
|
|
1651
1840
|
},
|
|
1841
|
+
{
|
|
1842
|
+
"name": "protein_interactions",
|
|
1843
|
+
"path": "lookup/protein-interactions",
|
|
1844
|
+
"title": "Protein Interactions",
|
|
1845
|
+
"description": "Returns a protein's interaction partners from the STRING network (CC BY 4.0, STRING consortium): the query protein and each partner with a combined confidence score (0 to 1) and per-channel scores. Scores combine experimental, curated and predicted (text-mining, co-expression) evidence, so a high score is not proof of physical binding. The data is for research, not medical advice. Evidence channels: experiments, curated databases, text mining, co-expression, genomic neighborhood, gene fusion and phylogenetic co-occurrence, each scored 0 to 1. identifier is a gene symbol (TP53) or a UniProt accession (P04637); taxon_id is human (9606) by default. Partners come in the source's order, highest combined score first, up to limit; min_score is the lowest combined score kept. An identifier the source cannot map in that organism returns no protein and an empty partner list. Only the source's own combined and channel scores are returned, never records from the databases it incorporates.",
|
|
1846
|
+
"inputSchema": {
|
|
1847
|
+
"type": "object",
|
|
1848
|
+
"properties": {
|
|
1849
|
+
"identifier": {
|
|
1850
|
+
"type": "string",
|
|
1851
|
+
"description": "A gene symbol or a UniProt accession, for example TP53 or P04637. Letters, digits, \".\", \"_\" and \"-\" only, 1 to 40."
|
|
1852
|
+
},
|
|
1853
|
+
"taxon_id": {
|
|
1854
|
+
"type": "integer",
|
|
1855
|
+
"description": "The organism as an NCBI Taxonomy ID; 9606 is human, 10090 is mouse. From 1 to 999999999. Defaults to `9606`."
|
|
1856
|
+
},
|
|
1857
|
+
"limit": {
|
|
1858
|
+
"type": "integer",
|
|
1859
|
+
"description": "Maximum partners returned. From 1 to 50. Defaults to `10`."
|
|
1860
|
+
},
|
|
1861
|
+
"min_score": {
|
|
1862
|
+
"type": "number",
|
|
1863
|
+
"description": "Lowest combined confidence score kept. From 0.15 to 1. Defaults to `0.4`."
|
|
1864
|
+
}
|
|
1865
|
+
},
|
|
1866
|
+
"required": [
|
|
1867
|
+
"identifier"
|
|
1868
|
+
]
|
|
1869
|
+
},
|
|
1870
|
+
"example": {
|
|
1871
|
+
"identifier": "TP53",
|
|
1872
|
+
"limit": 1
|
|
1873
|
+
}
|
|
1874
|
+
},
|
|
1652
1875
|
{
|
|
1653
1876
|
"name": "protein_resolve",
|
|
1654
1877
|
"path": "resolve/protein",
|
|
@@ -1739,6 +1962,51 @@ export const LOOKUP_MANIFEST = [
|
|
|
1739
1962
|
"limit": 2
|
|
1740
1963
|
}
|
|
1741
1964
|
},
|
|
1965
|
+
{
|
|
1966
|
+
"name": "record_publications_find",
|
|
1967
|
+
"path": "find/record-publications",
|
|
1968
|
+
"title": "Publications",
|
|
1969
|
+
"description": "Searches PubMed, the US National Library of Medicine's index of biomedical papers, newest or most relevant first: title, journal, dates, first three authors, DOI, PubMed Central id, publication types and link. Only citation fields are returned, never an abstract or full text. The answer lists what a public index holds: it is for research and is not medical advice. `total` is how many papers matched in all, including any beyond `limit`, and is 0 when none did. `query_translation` shows how the source expanded the search (MeSH terms, plurals, the year range). Field tags such as `[Title]` or `[MeSH Terms]` and `AND`, `OR` and `NOT` are passed to the source as written. Give `from_year`, `to_year` or both to keep papers published in those years; one alone is open on the other side. `sort` is `newest` (by publication date, the default) or `relevance`. Each paper also gives its author count. Registered studies are in `record_clinical_trials_find`; the papers NCBI links to one gene are in `gene_publications`.",
|
|
1970
|
+
"inputSchema": {
|
|
1971
|
+
"type": "object",
|
|
1972
|
+
"properties": {
|
|
1973
|
+
"query": {
|
|
1974
|
+
"type": "string",
|
|
1975
|
+
"description": "PubMed search text, for example semaglutide AND kidney; field tags such as [Title] or [MeSH Terms] and AND/OR/NOT are allowed. 2 to 300 characters."
|
|
1976
|
+
},
|
|
1977
|
+
"from_year": {
|
|
1978
|
+
"type": "integer",
|
|
1979
|
+
"description": "Only papers published in this year or later, no later than the current year. At least 1800."
|
|
1980
|
+
},
|
|
1981
|
+
"to_year": {
|
|
1982
|
+
"type": "integer",
|
|
1983
|
+
"description": "Only papers published in this year or earlier, no later than the current year. At least 1800."
|
|
1984
|
+
},
|
|
1985
|
+
"sort": {
|
|
1986
|
+
"type": "string",
|
|
1987
|
+
"enum": [
|
|
1988
|
+
"newest",
|
|
1989
|
+
"relevance"
|
|
1990
|
+
],
|
|
1991
|
+
"description": "newest (by publication date) or relevance. Defaults to `\"newest\"`."
|
|
1992
|
+
},
|
|
1993
|
+
"limit": {
|
|
1994
|
+
"type": "integer",
|
|
1995
|
+
"description": "The most papers to return. From 1 to 20. Defaults to `10`."
|
|
1996
|
+
}
|
|
1997
|
+
},
|
|
1998
|
+
"required": [
|
|
1999
|
+
"query"
|
|
2000
|
+
]
|
|
2001
|
+
},
|
|
2002
|
+
"example": {
|
|
2003
|
+
"query": "semaglutide AND kidney",
|
|
2004
|
+
"from_year": 2024,
|
|
2005
|
+
"to_year": 2026,
|
|
2006
|
+
"sort": "relevance",
|
|
2007
|
+
"limit": 3
|
|
2008
|
+
}
|
|
2009
|
+
},
|
|
1742
2010
|
{
|
|
1743
2011
|
"name": "company_financials",
|
|
1744
2012
|
"path": "lookup/company-financials",
|
|
@@ -1776,6 +2044,10 @@ export const LOOKUP_MANIFEST = [
|
|
|
1776
2044
|
"limit": {
|
|
1777
2045
|
"type": "integer",
|
|
1778
2046
|
"description": "Most periods to return, newest first. From 1 to 20. Defaults to `5`."
|
|
2047
|
+
},
|
|
2048
|
+
"fresh": {
|
|
2049
|
+
"type": "boolean",
|
|
2050
|
+
"description": "Look the record up again instead of using OneShot's stored copy from an earlier lookup, and refresh that copy. Off by default: a record stored within its freshness window is returned as is, with cached: true and its fetched_at."
|
|
1779
2051
|
}
|
|
1780
2052
|
},
|
|
1781
2053
|
"required": [
|
|
@@ -1789,6 +2061,37 @@ export const LOOKUP_MANIFEST = [
|
|
|
1789
2061
|
"limit": 2
|
|
1790
2062
|
}
|
|
1791
2063
|
},
|
|
2064
|
+
{
|
|
2065
|
+
"name": "market_truck_rates",
|
|
2066
|
+
"path": "lookup/market-truck-rates",
|
|
2067
|
+
"title": "Truck Rates",
|
|
2068
|
+
"description": "Returns reported weekly rates for refrigerated produce loads, not a quote, from the US Department of Agriculture. Origins are shipping districts. Each lane includes weekly low, high, midpoint and rate per mile, plus truck availability: 1 means surplus, 3 adequate supply and 5 shortage, with intermediate values 2 and 4. Origin and optional destination match uppercase substrings. Omit destination to return several lanes. Reads one page of weeks × 40 rows, capped at 1000, newest first; keeps up to weeks rows per lane from that page. History is available from the first call. Lane details use the newest row. Empty numeric fields are null. No match returns an empty lanes list.",
|
|
2069
|
+
"inputSchema": {
|
|
2070
|
+
"type": "object",
|
|
2071
|
+
"properties": {
|
|
2072
|
+
"origin": {
|
|
2073
|
+
"type": "string",
|
|
2074
|
+
"description": "Shipping district substring, for example Salinas or Florida. 2 to 80 characters."
|
|
2075
|
+
},
|
|
2076
|
+
"destination": {
|
|
2077
|
+
"type": "string",
|
|
2078
|
+
"description": "Destination city substring, for example Chicago. 2 to 80 characters."
|
|
2079
|
+
},
|
|
2080
|
+
"weeks": {
|
|
2081
|
+
"type": "integer",
|
|
2082
|
+
"description": "Most recent weeks per lane. From 1 to 26. Defaults to `4`."
|
|
2083
|
+
}
|
|
2084
|
+
},
|
|
2085
|
+
"required": [
|
|
2086
|
+
"origin"
|
|
2087
|
+
]
|
|
2088
|
+
},
|
|
2089
|
+
"example": {
|
|
2090
|
+
"origin": "Salinas",
|
|
2091
|
+
"destination": "Chicago",
|
|
2092
|
+
"weeks": 1
|
|
2093
|
+
}
|
|
2094
|
+
},
|
|
1792
2095
|
{
|
|
1793
2096
|
"name": "variant_clinical_significance",
|
|
1794
2097
|
"path": "lookup/variant-clinical-significance",
|
|
@@ -1812,6 +2115,29 @@ export const LOOKUP_MANIFEST = [
|
|
|
1812
2115
|
"rsid": "rs80357906"
|
|
1813
2116
|
}
|
|
1814
2117
|
},
|
|
2118
|
+
{
|
|
2119
|
+
"name": "variant_frequency",
|
|
2120
|
+
"path": "lookup/variant-frequency",
|
|
2121
|
+
"title": "Variant Frequency",
|
|
2122
|
+
"description": "Reports aggregate allele counts and frequencies from the Genome Aggregation Database (gnomAD), Broad Institute, showing what a public reference population contains, by genetic ancestry group. For research; not medical advice. An rsID matching several variants needs the variant_id. Supply one variant identifier, never a person’s genome, sequencing data or a VCF file. Uses gnomAD v4 (GRCh38), exomes and genomes. Data refresh per versioned release; no observation date is supplied. Primary exome and genome data are CC0 1.0. Never try to reidentify participants. Only ancestry groups are returned; sex splits, reference-panel subsets and other annotations are excluded. An absent data type is null. Allele frequency is allele count divided by allele number, or null when the denominator is zero.",
|
|
2123
|
+
"inputSchema": {
|
|
2124
|
+
"type": "object",
|
|
2125
|
+
"properties": {
|
|
2126
|
+
"variant_id": {
|
|
2127
|
+
"type": "string",
|
|
2128
|
+
"description": "gnomAD variant ID on GRCh38, for example 1-55051215-G-GA; supply only variant_id or rsid"
|
|
2129
|
+
},
|
|
2130
|
+
"rsid": {
|
|
2131
|
+
"type": "string",
|
|
2132
|
+
"description": "dbSNP identifier, for example rs527413419; supply only rsid or variant_id"
|
|
2133
|
+
}
|
|
2134
|
+
},
|
|
2135
|
+
"required": []
|
|
2136
|
+
},
|
|
2137
|
+
"example": {
|
|
2138
|
+
"variant_id": "1-55051215-G-GA"
|
|
2139
|
+
}
|
|
2140
|
+
},
|
|
1815
2141
|
{
|
|
1816
2142
|
"name": "variant_resolve",
|
|
1817
2143
|
"path": "resolve/variant",
|
|
@@ -1880,6 +2206,10 @@ export const LOOKUP_MANIFEST = [
|
|
|
1880
2206
|
"vat_number": {
|
|
1881
2207
|
"type": "string",
|
|
1882
2208
|
"description": "The VAT number, 2 to 14 letters and digits once spaces, dots and dashes are removed; a leading country code equal to country is removed. 2 to 40 characters. letters, digits, spaces, dots and dashes only."
|
|
2209
|
+
},
|
|
2210
|
+
"fresh": {
|
|
2211
|
+
"type": "boolean",
|
|
2212
|
+
"description": "Look the record up again instead of using OneShot's stored copy from an earlier lookup, and refresh that copy. Off by default: a record stored within its freshness window is returned as is, with cached: true and its fetched_at."
|
|
1883
2213
|
}
|
|
1884
2214
|
},
|
|
1885
2215
|
"required": [
|
|
@@ -3117,6 +3447,10 @@ export const ROUTE_MANIFEST = [
|
|
|
3117
3447
|
"inputSchema": {
|
|
3118
3448
|
"type": "object",
|
|
3119
3449
|
"properties": {
|
|
3450
|
+
"fresh": {
|
|
3451
|
+
"type": "boolean",
|
|
3452
|
+
"description": "Refresh the source lists before screening"
|
|
3453
|
+
},
|
|
3120
3454
|
"name": {
|
|
3121
3455
|
"type": "string",
|
|
3122
3456
|
"description": "The company name to check, 2 to 200 characters, free text. Word order and punctuation do not matter"
|
|
@@ -3151,6 +3485,10 @@ export const ROUTE_MANIFEST = [
|
|
|
3151
3485
|
"inputSchema": {
|
|
3152
3486
|
"type": "object",
|
|
3153
3487
|
"properties": {
|
|
3488
|
+
"fresh": {
|
|
3489
|
+
"type": "boolean",
|
|
3490
|
+
"description": "Refresh the source lists before screening"
|
|
3491
|
+
},
|
|
3154
3492
|
"name": {
|
|
3155
3493
|
"type": "string",
|
|
3156
3494
|
"description": "The person name to check, 2 to 200 characters, free text. Word order, accents and punctuation do not matter"
|
package/dist/tools/nyne.js
CHANGED
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import { PERSON_IDENTITY_PROPERTIES, personIdentity } from "./enrichment.js";
|
|
1
|
+
import { FRESH_PROPERTY, PERSON_IDENTITY_PROPERTIES, personIdentity } from "./enrichment.js";
|
|
2
2
|
export const personDossierTool = {
|
|
3
3
|
name: "oneshot_person_dossier",
|
|
4
|
-
description: "Get a person’s profile, known social accounts, articles, posts and written summary, from whatever you know: name (+ company), email, phone or a profile URL. Takes 2-5 minutes. Paid tool. Phone lookup is off by default. include_phone=true buys a lookup for up to one person at the add-on listed on the pricing page; no phone hit is guaranteed.",
|
|
4
|
+
description: "Get a person’s profile, known social accounts, articles, posts and written summary, from whatever you know: name (+ company), email, phone or a profile URL. Takes 2-5 minutes. Paid tool. Phone lookup is off by default. include_phone=true buys a lookup for up to one person at the add-on listed on the pricing page; no phone hit is guaranteed. A record looked up recently may come from OneShot's store of earlier lookups; the result says so with cached and fetched_at, and fresh=true asks again.",
|
|
5
5
|
inputSchema: {
|
|
6
6
|
type: "object",
|
|
7
7
|
properties: {
|
|
8
8
|
include_phone: { type: "boolean", default: false, description: "Phone lookup is off by default. include_phone=true buys a lookup for up to one person at the add-on listed on the pricing page; no phone hit is guaranteed." },
|
|
9
9
|
...PERSON_IDENTITY_PROPERTIES,
|
|
10
|
+
...FRESH_PROPERTY,
|
|
10
11
|
},
|
|
11
12
|
},
|
|
12
13
|
};
|
|
13
14
|
export const personSocialAccountsTool = {
|
|
14
15
|
name: "oneshot_person_social_accounts",
|
|
15
|
-
description: "Discover all social media profiles for a person across platforms (LinkedIn, Twitter, GitHub, YouTube, etc), from a name (+ company), email, phone or a known profile URL. Paid tool.",
|
|
16
|
+
description: "Discover all social media profiles for a person across platforms (LinkedIn, Twitter, GitHub, YouTube, etc), from a name (+ company), email, phone or a known profile URL. Paid tool. A record looked up recently may come from OneShot's store of earlier lookups; the result says so with cached and fetched_at, and fresh=true asks again.",
|
|
16
17
|
inputSchema: {
|
|
17
18
|
type: "object",
|
|
18
19
|
properties: {
|
|
19
20
|
...PERSON_IDENTITY_PROPERTIES,
|
|
21
|
+
...FRESH_PROPERTY,
|
|
20
22
|
},
|
|
21
23
|
},
|
|
22
24
|
};
|
|
23
25
|
export const personArticlesTool = {
|
|
24
26
|
name: "oneshot_person_articles",
|
|
25
|
-
description: "Find articles, publications, and interviews about a person. Requires name and company. Paid tool.",
|
|
27
|
+
description: "Find articles, publications, and interviews about a person. Requires name and company. Paid tool. A record looked up recently may come from OneShot's store of earlier lookups; the result says so with cached and fetched_at, and fresh=true asks again.",
|
|
26
28
|
inputSchema: {
|
|
27
29
|
type: "object",
|
|
28
30
|
properties: {
|
|
@@ -30,39 +32,43 @@ export const personArticlesTool = {
|
|
|
30
32
|
company: { type: "string", description: "Company name or domain" },
|
|
31
33
|
sort: { type: "string", enum: ["recent", "popular"], description: "Sort order (default: recent)" },
|
|
32
34
|
limit: { type: "number", description: "Max results 1-20 (default: 5)" },
|
|
35
|
+
...FRESH_PROPERTY,
|
|
33
36
|
},
|
|
34
37
|
required: ["name", "company"],
|
|
35
38
|
},
|
|
36
39
|
};
|
|
37
40
|
export const personPostsTool = {
|
|
38
41
|
name: "oneshot_person_posts",
|
|
39
|
-
description: "Get a person's recent social media posts with likes, replies, and shares. Give a profile URL, or a name (+ company) / email to resolve one. Paid tool.",
|
|
42
|
+
description: "Get a person's recent social media posts with likes, replies, and shares. Give a profile URL, or a name (+ company) / email to resolve one. Paid tool. A record looked up recently may come from OneShot's store of earlier lookups; the result says so with cached and fetched_at, and fresh=true asks again.",
|
|
40
43
|
inputSchema: {
|
|
41
44
|
type: "object",
|
|
42
45
|
properties: {
|
|
43
46
|
...PERSON_IDENTITY_PROPERTIES,
|
|
47
|
+
...FRESH_PROPERTY,
|
|
44
48
|
},
|
|
45
49
|
},
|
|
46
50
|
};
|
|
47
51
|
export const personInterestsTool = {
|
|
48
52
|
name: "oneshot_person_interests",
|
|
49
|
-
description: "Figure out what someone cares about — sports, politics, tech, entertainment, etc. Give a name (+ company), email, phone or profile URL. Paid tool.",
|
|
53
|
+
description: "Figure out what someone cares about — sports, politics, tech, entertainment, etc. Give a name (+ company), email, phone or profile URL. Paid tool. A record looked up recently may come from OneShot's store of earlier lookups; the result says so with cached and fetched_at, and fresh=true asks again.",
|
|
50
54
|
inputSchema: {
|
|
51
55
|
type: "object",
|
|
52
56
|
properties: {
|
|
53
57
|
...PERSON_IDENTITY_PROPERTIES,
|
|
58
|
+
...FRESH_PROPERTY,
|
|
54
59
|
},
|
|
55
60
|
},
|
|
56
61
|
};
|
|
57
62
|
export const personFollowersTool = {
|
|
58
63
|
name: "oneshot_person_followers",
|
|
59
|
-
description: "See who someone follows, who follows them, and who they reply to. Give an X profile URL, or a name (+ company) / email to resolve one. Paid tool.",
|
|
64
|
+
description: "See who someone follows, who follows them, and who they reply to. Give an X profile URL, or a name (+ company) / email to resolve one. Paid tool. A record looked up recently may come from OneShot's store of earlier lookups; the result says so with cached and fetched_at, and fresh=true asks again.",
|
|
60
65
|
inputSchema: {
|
|
61
66
|
type: "object",
|
|
62
67
|
properties: {
|
|
63
68
|
...PERSON_IDENTITY_PROPERTIES,
|
|
64
69
|
type: { type: "string", enum: ["replies", "followers", "following", "followers,following"], description: "Interaction type (default: followers,following)" },
|
|
65
70
|
max_results: { type: "number", description: "Max results 1-1000 (default: 100)" },
|
|
71
|
+
...FRESH_PROPERTY,
|
|
66
72
|
},
|
|
67
73
|
},
|
|
68
74
|
};
|
|
@@ -72,11 +78,12 @@ export async function handlePersonDossier(agent, args) {
|
|
|
72
78
|
return agent.personDossier({
|
|
73
79
|
includePhone: args.include_phone,
|
|
74
80
|
...personIdentity(args),
|
|
81
|
+
fresh: args.fresh,
|
|
75
82
|
timeout: PERSON_DOSSIER_TIMEOUT_SEC,
|
|
76
83
|
});
|
|
77
84
|
}
|
|
78
85
|
export async function handlePersonSocialAccounts(agent, args) {
|
|
79
|
-
return agent.personSocialAccounts(personIdentity(args));
|
|
86
|
+
return agent.personSocialAccounts({ ...personIdentity(args), fresh: args.fresh });
|
|
80
87
|
}
|
|
81
88
|
export async function handlePersonArticles(agent, args) {
|
|
82
89
|
return agent.personArticles({
|
|
@@ -84,18 +91,20 @@ export async function handlePersonArticles(agent, args) {
|
|
|
84
91
|
company: args.company,
|
|
85
92
|
sort: args.sort,
|
|
86
93
|
limit: args.limit,
|
|
94
|
+
fresh: args.fresh,
|
|
87
95
|
});
|
|
88
96
|
}
|
|
89
97
|
export async function handlePersonPosts(agent, args) {
|
|
90
|
-
return agent.personPosts(personIdentity(args));
|
|
98
|
+
return agent.personPosts({ ...personIdentity(args), fresh: args.fresh });
|
|
91
99
|
}
|
|
92
100
|
export async function handlePersonInterests(agent, args) {
|
|
93
|
-
return agent.personInterests(personIdentity(args));
|
|
101
|
+
return agent.personInterests({ ...personIdentity(args), fresh: args.fresh });
|
|
94
102
|
}
|
|
95
103
|
export async function handlePersonFollowers(agent, args) {
|
|
96
104
|
return agent.personFollowers({
|
|
97
105
|
...personIdentity(args),
|
|
98
106
|
type: args.type,
|
|
99
107
|
max_results: args.max_results,
|
|
108
|
+
fresh: args.fresh,
|
|
100
109
|
});
|
|
101
110
|
}
|