@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.
@@ -1,6 +1,7 @@
1
+ import { FRESH_PROPERTY } from "./enrichment.js";
1
2
  export const personFindTool = {
2
3
  name: "oneshot_person_find",
3
- description: "Search for people by job title, company, location, skills, etc. Returns professional profiles. Paid tool — quote provided before payment. Phone lookup is off by default. include_phone=true buys lookups for up to the requested limit (default 100) at the per-person add-on listed on the pricing page; no phone hit is guaranteed.",
4
+ description: "Search for people by job title, company, location, skills, etc. Returns professional profiles. Paid tool — quote provided before payment. Phone lookup is off by default. include_phone=true buys lookups for up to the requested limit (default 100) at the per-person 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.",
4
5
  inputSchema: {
5
6
  type: "object",
6
7
  properties: {
@@ -53,6 +54,7 @@ export const personFindTool = {
53
54
  type: "number",
54
55
  description: "Maximum number of results (default: 100)",
55
56
  },
57
+ ...FRESH_PROPERTY,
56
58
  },
57
59
  },
58
60
  };
@@ -69,5 +71,6 @@ export async function handlePersonFind(agent, args) {
69
71
  industry: args.industry,
70
72
  company_size: args.company_size,
71
73
  limit: args.limit,
74
+ fresh: args.fresh,
72
75
  });
73
76
  }
@@ -6,19 +6,19 @@ export declare const predictInputSchema: {
6
6
  readonly enum: readonly ["simulation", "forecast"];
7
7
  };
8
8
  readonly time_limit_s: {
9
+ readonly default: 20;
9
10
  readonly type: "integer";
10
11
  readonly minimum: 1;
11
12
  readonly maximum: 120;
12
- readonly default: 20;
13
13
  };
14
14
  readonly simulation: {
15
15
  readonly type: "object";
16
16
  readonly properties: {
17
17
  readonly runs: {
18
+ readonly default: 10000;
18
19
  readonly type: "integer";
19
20
  readonly minimum: 100;
20
21
  readonly maximum: 100000;
21
- readonly default: 10000;
22
22
  };
23
23
  readonly seed: {
24
24
  readonly type: "integer";
@@ -26,17 +26,19 @@ export declare const predictInputSchema: {
26
26
  readonly maximum: 4294967295;
27
27
  };
28
28
  readonly percentiles: {
29
+ readonly default: readonly [5, 10, 25, 50, 75, 90, 95];
30
+ readonly minItems: 1;
31
+ readonly maxItems: 20;
29
32
  readonly type: "array";
30
33
  readonly items: {
31
34
  readonly type: "number";
32
35
  readonly minimum: 0;
33
36
  readonly maximum: 100;
34
37
  };
35
- readonly minItems: 1;
36
- readonly maxItems: 20;
37
- readonly default: readonly [5, 10, 25, 50, 75, 90, 95];
38
38
  };
39
39
  readonly variables: {
40
+ readonly minItems: 1;
41
+ readonly maxItems: 50;
40
42
  readonly type: "array";
41
43
  readonly items: {
42
44
  readonly type: "object";
@@ -153,21 +155,21 @@ export declare const predictInputSchema: {
153
155
  readonly const: "discrete";
154
156
  };
155
157
  readonly values: {
158
+ readonly minItems: 1;
159
+ readonly maxItems: 100;
156
160
  readonly type: "array";
157
161
  readonly items: {
158
162
  readonly type: "number";
159
163
  };
160
- readonly minItems: 1;
161
- readonly maxItems: 100;
162
164
  };
163
165
  readonly weights: {
166
+ readonly minItems: 1;
167
+ readonly maxItems: 100;
164
168
  readonly type: "array";
165
169
  readonly items: {
166
170
  readonly type: "number";
167
171
  readonly minimum: 0;
168
172
  };
169
- readonly minItems: 1;
170
- readonly maxItems: 100;
171
173
  };
172
174
  };
173
175
  readonly required: readonly ["kind", "values"];
@@ -178,10 +180,10 @@ export declare const predictInputSchema: {
178
180
  readonly required: readonly ["id", "distribution"];
179
181
  readonly additionalProperties: false;
180
182
  };
181
- readonly minItems: 1;
182
- readonly maxItems: 50;
183
183
  };
184
184
  readonly outputs: {
185
+ readonly minItems: 1;
186
+ readonly maxItems: 10;
185
187
  readonly type: "array";
186
188
  readonly items: {
187
189
  readonly type: "object";
@@ -201,8 +203,6 @@ export declare const predictInputSchema: {
201
203
  readonly required: readonly ["id", "expression"];
202
204
  readonly additionalProperties: false;
203
205
  };
204
- readonly minItems: 1;
205
- readonly maxItems: 10;
206
206
  };
207
207
  };
208
208
  readonly required: readonly ["variables", "outputs"];
@@ -212,6 +212,8 @@ export declare const predictInputSchema: {
212
212
  readonly type: "object";
213
213
  readonly properties: {
214
214
  readonly series: {
215
+ readonly minItems: 8;
216
+ readonly maxItems: 10000;
215
217
  readonly type: "array";
216
218
  readonly items: {
217
219
  readonly type: "object";
@@ -233,8 +235,6 @@ export declare const predictInputSchema: {
233
235
  readonly required: readonly ["t", "y"];
234
236
  readonly additionalProperties: false;
235
237
  };
236
- readonly minItems: 8;
237
- readonly maxItems: 10000;
238
238
  };
239
239
  readonly horizon: {
240
240
  readonly type: "integer";
@@ -251,15 +251,15 @@ export declare const predictInputSchema: {
251
251
  readonly maximum: 366;
252
252
  };
253
253
  readonly interval_levels: {
254
+ readonly default: readonly [80, 95];
255
+ readonly minItems: 1;
256
+ readonly maxItems: 3;
254
257
  readonly type: "array";
255
258
  readonly items: {
256
259
  readonly type: "integer";
257
260
  readonly minimum: 50;
258
261
  readonly maximum: 99;
259
262
  };
260
- readonly minItems: 1;
261
- readonly maxItems: 3;
262
- readonly default: readonly [80, 95];
263
263
  };
264
264
  readonly floor: {
265
265
  readonly type: "number";
@@ -10,19 +10,19 @@ export const predictInputSchema = {
10
10
  ]
11
11
  },
12
12
  "time_limit_s": {
13
+ "default": 20,
13
14
  "type": "integer",
14
15
  "minimum": 1,
15
- "maximum": 120,
16
- "default": 20
16
+ "maximum": 120
17
17
  },
18
18
  "simulation": {
19
19
  "type": "object",
20
20
  "properties": {
21
21
  "runs": {
22
+ "default": 10000,
22
23
  "type": "integer",
23
24
  "minimum": 100,
24
- "maximum": 100000,
25
- "default": 10000
25
+ "maximum": 100000
26
26
  },
27
27
  "seed": {
28
28
  "type": "integer",
@@ -30,14 +30,6 @@ export const predictInputSchema = {
30
30
  "maximum": 4294967295
31
31
  },
32
32
  "percentiles": {
33
- "type": "array",
34
- "items": {
35
- "type": "number",
36
- "minimum": 0,
37
- "maximum": 100
38
- },
39
- "minItems": 1,
40
- "maxItems": 20,
41
33
  "default": [
42
34
  5,
43
35
  10,
@@ -46,9 +38,19 @@ export const predictInputSchema = {
46
38
  75,
47
39
  90,
48
40
  95
49
- ]
41
+ ],
42
+ "minItems": 1,
43
+ "maxItems": 20,
44
+ "type": "array",
45
+ "items": {
46
+ "type": "number",
47
+ "minimum": 0,
48
+ "maximum": 100
49
+ }
50
50
  },
51
51
  "variables": {
52
+ "minItems": 1,
53
+ "maxItems": 50,
52
54
  "type": "array",
53
55
  "items": {
54
56
  "type": "object",
@@ -195,21 +197,21 @@ export const predictInputSchema = {
195
197
  "const": "discrete"
196
198
  },
197
199
  "values": {
200
+ "minItems": 1,
201
+ "maxItems": 100,
198
202
  "type": "array",
199
203
  "items": {
200
204
  "type": "number"
201
- },
202
- "minItems": 1,
203
- "maxItems": 100
205
+ }
204
206
  },
205
207
  "weights": {
208
+ "minItems": 1,
209
+ "maxItems": 100,
206
210
  "type": "array",
207
211
  "items": {
208
212
  "type": "number",
209
213
  "minimum": 0
210
- },
211
- "minItems": 1,
212
- "maxItems": 100
214
+ }
213
215
  }
214
216
  },
215
217
  "required": [
@@ -226,11 +228,11 @@ export const predictInputSchema = {
226
228
  "distribution"
227
229
  ],
228
230
  "additionalProperties": false
229
- },
230
- "minItems": 1,
231
- "maxItems": 50
231
+ }
232
232
  },
233
233
  "outputs": {
234
+ "minItems": 1,
235
+ "maxItems": 10,
234
236
  "type": "array",
235
237
  "items": {
236
238
  "type": "object",
@@ -252,9 +254,7 @@ export const predictInputSchema = {
252
254
  "expression"
253
255
  ],
254
256
  "additionalProperties": false
255
- },
256
- "minItems": 1,
257
- "maxItems": 10
257
+ }
258
258
  }
259
259
  },
260
260
  "required": [
@@ -267,6 +267,8 @@ export const predictInputSchema = {
267
267
  "type": "object",
268
268
  "properties": {
269
269
  "series": {
270
+ "minItems": 8,
271
+ "maxItems": 10000,
270
272
  "type": "array",
271
273
  "items": {
272
274
  "type": "object",
@@ -293,9 +295,7 @@ export const predictInputSchema = {
293
295
  "y"
294
296
  ],
295
297
  "additionalProperties": false
296
- },
297
- "minItems": 8,
298
- "maxItems": 10000
298
+ }
299
299
  },
300
300
  "horizon": {
301
301
  "type": "integer",
@@ -319,18 +319,18 @@ export const predictInputSchema = {
319
319
  "maximum": 366
320
320
  },
321
321
  "interval_levels": {
322
+ "default": [
323
+ 80,
324
+ 95
325
+ ],
326
+ "minItems": 1,
327
+ "maxItems": 3,
322
328
  "type": "array",
323
329
  "items": {
324
330
  "type": "integer",
325
331
  "minimum": 50,
326
332
  "maximum": 99
327
- },
328
- "minItems": 1,
329
- "maxItems": 3,
330
- "default": [
331
- 80,
332
- 95
333
- ]
333
+ }
334
334
  },
335
335
  "floor": {
336
336
  "type": "number"