@omkar273/mcp-temp 0.0.44 → 0.0.45
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/bin/mcp-server.js +75 -75
- package/bin/mcp-server.js.map +35 -35
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/mcp-server/tools/customersCreateCustomer.js +1 -1
- package/esm/mcp-server/tools/customersCreateCustomer.js.map +1 -1
- package/esm/mcp-server/tools/customersDeleteCustomer.js +2 -2
- package/esm/mcp-server/tools/customersDeleteCustomer.js.map +1 -1
- package/esm/mcp-server/tools/customersGetCustomer.js +2 -2
- package/esm/mcp-server/tools/customersGetCustomer.js.map +1 -1
- package/esm/mcp-server/tools/customersGetCustomerByExternalId.js +2 -2
- package/esm/mcp-server/tools/customersGetCustomerByExternalId.js.map +1 -1
- package/esm/mcp-server/tools/customersGetCustomerEntitlements.js +2 -2
- package/esm/mcp-server/tools/customersGetCustomerEntitlements.js.map +1 -1
- package/esm/mcp-server/tools/customersGetCustomerUpcomingGrants.js +2 -2
- package/esm/mcp-server/tools/customersGetCustomerUpcomingGrants.js.map +1 -1
- package/esm/mcp-server/tools/customersGetCustomerUsageSummary.js +2 -2
- package/esm/mcp-server/tools/customersGetCustomerUsageSummary.js.map +1 -1
- package/esm/mcp-server/tools/customersQueryCustomer.js +1 -1
- package/esm/mcp-server/tools/customersQueryCustomer.js.map +1 -1
- package/esm/mcp-server/tools/customersUpdateCustomer.js +1 -1
- package/esm/mcp-server/tools/customersUpdateCustomer.js.map +1 -1
- package/esm/mcp-server/tools/eventsGetEvent.js +2 -2
- package/esm/mcp-server/tools/eventsGetEvent.js.map +1 -1
- package/esm/mcp-server/tools/eventsGetHuggingfaceInferenceData.js +1 -1
- package/esm/mcp-server/tools/eventsGetHuggingfaceInferenceData.js.map +1 -1
- package/esm/mcp-server/tools/eventsGetUsageAnalytics.js +1 -1
- package/esm/mcp-server/tools/eventsGetUsageAnalytics.js.map +1 -1
- package/esm/mcp-server/tools/eventsGetUsageByMeter.js +1 -1
- package/esm/mcp-server/tools/eventsGetUsageByMeter.js.map +1 -1
- package/esm/mcp-server/tools/eventsGetUsageStatistics.js +1 -1
- package/esm/mcp-server/tools/eventsGetUsageStatistics.js.map +1 -1
- package/esm/mcp-server/tools/eventsIngestEvent.js +1 -1
- package/esm/mcp-server/tools/eventsIngestEvent.js.map +1 -1
- package/esm/mcp-server/tools/eventsIngestEventsBulk.js +1 -1
- package/esm/mcp-server/tools/eventsIngestEventsBulk.js.map +1 -1
- package/esm/mcp-server/tools/eventsListRawEvents.js +1 -1
- package/esm/mcp-server/tools/eventsListRawEvents.js.map +1 -1
- package/esm/mcp-server/tools/invoicesAttemptInvoicePayment.js +1 -1
- package/esm/mcp-server/tools/invoicesAttemptInvoicePayment.js.map +1 -1
- package/esm/mcp-server/tools/invoicesCreateInvoice.js +1 -1
- package/esm/mcp-server/tools/invoicesCreateInvoice.js.map +1 -1
- package/esm/mcp-server/tools/invoicesFinalizeInvoice.js +1 -1
- package/esm/mcp-server/tools/invoicesFinalizeInvoice.js.map +1 -1
- package/esm/mcp-server/tools/invoicesGetCustomerInvoiceSummary.js +2 -2
- package/esm/mcp-server/tools/invoicesGetCustomerInvoiceSummary.js.map +1 -1
- package/esm/mcp-server/tools/invoicesGetInvoice.js +2 -2
- package/esm/mcp-server/tools/invoicesGetInvoice.js.map +1 -1
- package/esm/mcp-server/tools/invoicesGetInvoicePdf.js +2 -2
- package/esm/mcp-server/tools/invoicesGetInvoicePdf.js.map +1 -1
- package/esm/mcp-server/tools/invoicesGetInvoicePreview.js +1 -1
- package/esm/mcp-server/tools/invoicesGetInvoicePreview.js.map +1 -1
- package/esm/mcp-server/tools/invoicesQueryInvoice.js +1 -1
- package/esm/mcp-server/tools/invoicesQueryInvoice.js.map +1 -1
- package/esm/mcp-server/tools/invoicesRecalculateInvoice.js +1 -1
- package/esm/mcp-server/tools/invoicesRecalculateInvoice.js.map +1 -1
- package/esm/mcp-server/tools/invoicesTriggerInvoiceCommsWebhook.js +1 -1
- package/esm/mcp-server/tools/invoicesTriggerInvoiceCommsWebhook.js.map +1 -1
- package/esm/mcp-server/tools/invoicesUpdateInvoice.js +1 -1
- package/esm/mcp-server/tools/invoicesUpdateInvoice.js.map +1 -1
- package/esm/mcp-server/tools/invoicesUpdateInvoicePaymentStatus.js +1 -1
- package/esm/mcp-server/tools/invoicesUpdateInvoicePaymentStatus.js.map +1 -1
- package/esm/mcp-server/tools/invoicesVoidInvoice.js +1 -1
- package/esm/mcp-server/tools/invoicesVoidInvoice.js.map +1 -1
- package/esm/tool-names.js +30 -30
- package/esm/tool-names.js.map +1 -1
- package/esm/tsconfig.tsbuildinfo +1 -1
- package/manifest.json +31 -31
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/customersCreateCustomer.ts +1 -1
- package/src/mcp-server/tools/customersDeleteCustomer.ts +2 -2
- package/src/mcp-server/tools/customersGetCustomer.ts +2 -2
- package/src/mcp-server/tools/customersGetCustomerByExternalId.ts +2 -2
- package/src/mcp-server/tools/customersGetCustomerEntitlements.ts +2 -2
- package/src/mcp-server/tools/customersGetCustomerUpcomingGrants.ts +2 -2
- package/src/mcp-server/tools/customersGetCustomerUsageSummary.ts +2 -2
- package/src/mcp-server/tools/customersQueryCustomer.ts +1 -1
- package/src/mcp-server/tools/customersUpdateCustomer.ts +1 -1
- package/src/mcp-server/tools/eventsGetEvent.ts +2 -2
- package/src/mcp-server/tools/eventsGetHuggingfaceInferenceData.ts +1 -1
- package/src/mcp-server/tools/eventsGetUsageAnalytics.ts +1 -1
- package/src/mcp-server/tools/eventsGetUsageByMeter.ts +1 -1
- package/src/mcp-server/tools/eventsGetUsageStatistics.ts +1 -1
- package/src/mcp-server/tools/eventsIngestEvent.ts +1 -1
- package/src/mcp-server/tools/eventsIngestEventsBulk.ts +1 -1
- package/src/mcp-server/tools/eventsListRawEvents.ts +1 -1
- package/src/mcp-server/tools/invoicesAttemptInvoicePayment.ts +1 -1
- package/src/mcp-server/tools/invoicesCreateInvoice.ts +1 -1
- package/src/mcp-server/tools/invoicesFinalizeInvoice.ts +1 -1
- package/src/mcp-server/tools/invoicesGetCustomerInvoiceSummary.ts +2 -2
- package/src/mcp-server/tools/invoicesGetInvoice.ts +2 -2
- package/src/mcp-server/tools/invoicesGetInvoicePdf.ts +2 -2
- package/src/mcp-server/tools/invoicesGetInvoicePreview.ts +1 -1
- package/src/mcp-server/tools/invoicesQueryInvoice.ts +1 -1
- package/src/mcp-server/tools/invoicesRecalculateInvoice.ts +1 -1
- package/src/mcp-server/tools/invoicesTriggerInvoiceCommsWebhook.ts +1 -1
- package/src/mcp-server/tools/invoicesUpdateInvoice.ts +1 -1
- package/src/mcp-server/tools/invoicesUpdateInvoicePaymentStatus.ts +1 -1
- package/src/mcp-server/tools/invoicesVoidInvoice.ts +1 -1
- package/src/tool-names.ts +30 -30
package/manifest.json
CHANGED
|
@@ -46,126 +46,126 @@
|
|
|
46
46
|
"sensitive": true
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
"version": "0.0.
|
|
49
|
+
"version": "0.0.45",
|
|
50
50
|
"tools": [
|
|
51
51
|
{
|
|
52
|
-
"name": "
|
|
52
|
+
"name": "update-customer",
|
|
53
53
|
"description": "Update customer\n\nUse when updating customer details (e.g. name, email, or metadata). Identify by id or external_customer_id."
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
|
-
"name": "
|
|
56
|
+
"name": "create-customer",
|
|
57
57
|
"description": "Create customer\n\nUse when onboarding a new billing customer (e.g. sign-up or CRM sync). Ideal for linking via external_customer_id to your app's user id."
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
|
-
"name": "
|
|
60
|
+
"name": "get-customer-by-external-id",
|
|
61
61
|
"description": "Get customer by external ID\n\nUse when resolving a customer by your app's id (e.g. from your user table). Ideal for integrations that key by external id."
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
"name": "
|
|
64
|
+
"name": "query-customer",
|
|
65
65
|
"description": "Query customers\n\nUse when listing or searching customers (e.g. admin CRM or reporting). Returns a paginated list; supports filtering and sorting."
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
|
-
"name": "
|
|
68
|
+
"name": "get-customer-usage-summary",
|
|
69
69
|
"description": "Get customer usage summary\n\nUse when showing a customer's usage (e.g. portal or overage alerts). Identify by customer_id or customer_lookup_key; supports filters."
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
|
-
"name": "
|
|
72
|
+
"name": "get-customer",
|
|
73
73
|
"description": "Get customer\n\nUse when you need to load a single customer (e.g. for a billing portal or to attach a subscription)."
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
|
-
"name": "
|
|
76
|
+
"name": "delete-customer",
|
|
77
77
|
"description": "Delete customer\n\nUse when removing a customer (e.g. GDPR or churn). Returns 204 No Content on success."
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
|
-
"name": "
|
|
80
|
+
"name": "get-customer-entitlements",
|
|
81
81
|
"description": "Get customer entitlements\n\nUse when checking what a customer can access (e.g. feature gating or usage limits). Supports optional filters (feature_ids, subscription_ids)."
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
|
-
"name": "
|
|
84
|
+
"name": "get-customer-upcoming-grants",
|
|
85
85
|
"description": "Get upcoming credit grant applications\n\nUse when showing upcoming or pending credits for a customer (e.g. in a portal or for forecasting)."
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
|
-
"name": "
|
|
88
|
+
"name": "get-customer-invoice-summary",
|
|
89
89
|
"description": "Get customer invoice summary\n\nUse when showing a customer's invoice overview (e.g. billing portal or balance summary). Includes totals and multi-currency breakdown."
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
|
-
"name": "
|
|
92
|
+
"name": "create-invoice",
|
|
93
93
|
"description": "Create one-off invoice\n\nUse when creating a manual or one-off invoice (e.g. custom charge or non-recurring billing). Invoice is created in draft; finalize when ready."
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
|
-
"name": "
|
|
96
|
+
"name": "get-invoice-preview",
|
|
97
97
|
"description": "Get invoice preview\n\nUse when showing a customer what they will be charged (e.g. preview before checkout or plan change). No invoice is created."
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
|
-
"name": "
|
|
100
|
+
"name": "query-invoice",
|
|
101
101
|
"description": "Query invoices\n\nUse when listing or searching invoices (e.g. admin view or customer history). Returns a paginated list; supports filtering by customer, status, date range."
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
|
-
"name": "
|
|
104
|
+
"name": "get-invoice",
|
|
105
105
|
"description": "Get invoice\n\nUse when loading an invoice for display or editing (e.g. portal or reconciliation). Supports group_by for usage breakdown and force_runtime_recalculation."
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
|
-
"name": "
|
|
108
|
+
"name": "update-invoice",
|
|
109
109
|
"description": "Update invoice\n\nUse when updating invoice metadata or due date (e.g. PDF URL, net terms). For paid invoices only safe fields can be updated."
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
|
-
"name": "
|
|
112
|
+
"name": "trigger-invoice-comms-webhook",
|
|
113
113
|
"description": "Trigger invoice communication webhook\n\nUse when sending an invoice to the customer (e.g. trigger email or Slack). Payload includes full invoice details for your integration."
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
|
-
"name": "
|
|
116
|
+
"name": "finalize-invoice",
|
|
117
117
|
"description": "Finalize invoice\n\nUse when locking an invoice for payment (e.g. after review). Once finalized, line items are locked; invoice can be paid or voided."
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
|
-
"name": "
|
|
120
|
+
"name": "update-invoice-payment-status",
|
|
121
121
|
"description": "Update invoice payment status\n\nUse when reconciling payment status from an external gateway or manual entry (e.g. mark paid after bank confirmation)."
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
"name": "
|
|
124
|
+
"name": "attempt-invoice-payment",
|
|
125
125
|
"description": "Attempt invoice payment\n\nUse when paying an invoice with the customer's wallet balance (e.g. prepaid credits or balance applied at checkout)."
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
|
-
"name": "
|
|
128
|
+
"name": "get-invoice-pdf",
|
|
129
129
|
"description": "Get invoice PDF\n\nUse when delivering an invoice PDF to the customer (e.g. email attachment or download). Use url=true for a presigned URL instead of binary."
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
|
-
"name": "
|
|
132
|
+
"name": "recalculate-invoice",
|
|
133
133
|
"description": "Recalculate invoice\n\nUse when subscription or usage data changed and you need to refresh a draft invoice before finalizing. Optional finalize=true to lock after recalc."
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
|
-
"name": "
|
|
136
|
+
"name": "void-invoice",
|
|
137
137
|
"description": "Void invoice\n\nUse when cancelling an invoice (e.g. order cancelled or duplicate). Only unpaid invoices can be voided."
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
|
-
"name": "
|
|
140
|
+
"name": "ingest-event",
|
|
141
141
|
"description": "Ingest event\n\nUse when sending a single usage event from your app (e.g. one API call or one GB stored). Events are processed asynchronously; returns 202 with event_id."
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
|
-
"name": "
|
|
144
|
+
"name": "get-usage-analytics",
|
|
145
145
|
"description": "Get usage analytics\n\nUse when building analytics views (e.g. usage by feature or customer over time). Supports filtering, grouping, and time-series breakdown."
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
|
-
"name": "
|
|
148
|
+
"name": "ingest-events-bulk",
|
|
149
149
|
"description": "Bulk ingest events\n\nUse when batching usage events (e.g. backfill or high-volume ingestion). More efficient than single event calls; returns 202 when accepted."
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
|
-
"name": "
|
|
152
|
+
"name": "get-huggingface-inference-data",
|
|
153
153
|
"description": "Get Hugging Face inference data\n\nUse when fetching Hugging Face inference usage or billing data (e.g. for HF-specific reporting or reconciliation)."
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
|
-
"name": "
|
|
156
|
+
"name": "list-raw-events",
|
|
157
157
|
"description": "List raw events\n\nUse when debugging ingestion or exporting raw event data (e.g. support or audit). Returns a paginated list; supports time range and sorting."
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
|
-
"name": "
|
|
160
|
+
"name": "get-usage-statistics",
|
|
161
161
|
"description": "Get usage statistics\n\nUse when building usage reports or dashboards across events. Supports filters and grouping; defaults to last 7 days if no range provided."
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
|
-
"name": "
|
|
164
|
+
"name": "get-usage-by-meter",
|
|
165
165
|
"description": "Get usage by meter\n\nUse when showing usage for a specific meter (e.g. dashboard or overage check). Supports time range, filters, and grouping by customer or subscription."
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
|
-
"name": "
|
|
168
|
+
"name": "get-event",
|
|
169
169
|
"description": "Get event\n\nUse when debugging a specific event (e.g. why it failed or how it was aggregated). Includes processing status and debug info."
|
|
170
170
|
}
|
|
171
171
|
]
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -62,8 +62,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
62
62
|
export const SDK_METADATA = {
|
|
63
63
|
language: "typescript",
|
|
64
64
|
openapiDocVersion: "1.0",
|
|
65
|
-
sdkVersion: "0.0.
|
|
65
|
+
sdkVersion: "0.0.45",
|
|
66
66
|
genVersion: "2.845.1",
|
|
67
67
|
userAgent:
|
|
68
|
-
"speakeasy-sdk/mcp-typescript 0.0.
|
|
68
|
+
"speakeasy-sdk/mcp-typescript 0.0.45 2.845.1 1.0 @omkar273/mcp-temp",
|
|
69
69
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$customersCreateCustomer: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "create-customer",
|
|
15
15
|
description: `Create customer
|
|
16
16
|
|
|
17
17
|
Use when onboarding a new billing customer (e.g. sign-up or CRM sync). Ideal for linking via external_customer_id to your app's user id.`,
|
|
@@ -11,13 +11,13 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$customersDeleteCustomer: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "delete-customer",
|
|
15
15
|
description: `Delete customer
|
|
16
16
|
|
|
17
17
|
Use when removing a customer (e.g. GDPR or churn). Returns 204 No Content on success.`,
|
|
18
18
|
annotations: {
|
|
19
19
|
"title": "",
|
|
20
|
-
"destructiveHint":
|
|
20
|
+
"destructiveHint": false,
|
|
21
21
|
"idempotentHint": false,
|
|
22
22
|
"openWorldHint": false,
|
|
23
23
|
"readOnlyHint": false,
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$customersGetCustomer: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "get-customer",
|
|
15
15
|
description: `Get customer
|
|
16
16
|
|
|
17
17
|
Use when you need to load a single customer (e.g. for a billing portal or to attach a subscription).`,
|
|
@@ -20,7 +20,7 @@ Use when you need to load a single customer (e.g. for a billing portal or to att
|
|
|
20
20
|
"destructiveHint": false,
|
|
21
21
|
"idempotentHint": false,
|
|
22
22
|
"openWorldHint": false,
|
|
23
|
-
"readOnlyHint":
|
|
23
|
+
"readOnlyHint": false,
|
|
24
24
|
},
|
|
25
25
|
args,
|
|
26
26
|
tool: async (client, args, ctx) => {
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$customersGetCustomerByExternalId: ToolDefinition<
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
|
-
name: "
|
|
16
|
+
name: "get-customer-by-external-id",
|
|
17
17
|
description: `Get customer by external ID
|
|
18
18
|
|
|
19
19
|
Use when resolving a customer by your app's id (e.g. from your user table). Ideal for integrations that key by external id.`,
|
|
@@ -22,7 +22,7 @@ Use when resolving a customer by your app's id (e.g. from your user table). Idea
|
|
|
22
22
|
"destructiveHint": false,
|
|
23
23
|
"idempotentHint": false,
|
|
24
24
|
"openWorldHint": false,
|
|
25
|
-
"readOnlyHint":
|
|
25
|
+
"readOnlyHint": false,
|
|
26
26
|
},
|
|
27
27
|
args,
|
|
28
28
|
tool: async (client, args, ctx) => {
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$customersGetCustomerEntitlements: ToolDefinition<
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
|
-
name: "
|
|
16
|
+
name: "get-customer-entitlements",
|
|
17
17
|
description: `Get customer entitlements
|
|
18
18
|
|
|
19
19
|
Use when checking what a customer can access (e.g. feature gating or usage limits). Supports optional filters (feature_ids, subscription_ids).`,
|
|
@@ -22,7 +22,7 @@ Use when checking what a customer can access (e.g. feature gating or usage limit
|
|
|
22
22
|
"destructiveHint": false,
|
|
23
23
|
"idempotentHint": false,
|
|
24
24
|
"openWorldHint": false,
|
|
25
|
-
"readOnlyHint":
|
|
25
|
+
"readOnlyHint": false,
|
|
26
26
|
},
|
|
27
27
|
args,
|
|
28
28
|
tool: async (client, args, ctx) => {
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$customersGetCustomerUpcomingGrants: ToolDefinition<
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
|
-
name: "
|
|
16
|
+
name: "get-customer-upcoming-grants",
|
|
17
17
|
description: `Get upcoming credit grant applications
|
|
18
18
|
|
|
19
19
|
Use when showing upcoming or pending credits for a customer (e.g. in a portal or for forecasting).`,
|
|
@@ -22,7 +22,7 @@ Use when showing upcoming or pending credits for a customer (e.g. in a portal or
|
|
|
22
22
|
"destructiveHint": false,
|
|
23
23
|
"idempotentHint": false,
|
|
24
24
|
"openWorldHint": false,
|
|
25
|
-
"readOnlyHint":
|
|
25
|
+
"readOnlyHint": false,
|
|
26
26
|
},
|
|
27
27
|
args,
|
|
28
28
|
tool: async (client, args, ctx) => {
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$customersGetCustomerUsageSummary: ToolDefinition<
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
|
-
name: "
|
|
16
|
+
name: "get-customer-usage-summary",
|
|
17
17
|
description: `Get customer usage summary
|
|
18
18
|
|
|
19
19
|
Use when showing a customer's usage (e.g. portal or overage alerts). Identify by customer_id or customer_lookup_key; supports filters.`,
|
|
@@ -22,7 +22,7 @@ Use when showing a customer's usage (e.g. portal or overage alerts). Identify by
|
|
|
22
22
|
"destructiveHint": false,
|
|
23
23
|
"idempotentHint": false,
|
|
24
24
|
"openWorldHint": false,
|
|
25
|
-
"readOnlyHint":
|
|
25
|
+
"readOnlyHint": false,
|
|
26
26
|
},
|
|
27
27
|
args,
|
|
28
28
|
tool: async (client, args, ctx) => {
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$customersQueryCustomer: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "query-customer",
|
|
15
15
|
description: `Query customers
|
|
16
16
|
|
|
17
17
|
Use when listing or searching customers (e.g. admin CRM or reporting). Returns a paginated list; supports filtering and sorting.`,
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$customersUpdateCustomer: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "update-customer",
|
|
15
15
|
description: `Update customer
|
|
16
16
|
|
|
17
17
|
Use when updating customer details (e.g. name, email, or metadata). Identify by id or external_customer_id.`,
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$eventsGetEvent: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "get-event",
|
|
15
15
|
description: `Get event
|
|
16
16
|
|
|
17
17
|
Use when debugging a specific event (e.g. why it failed or how it was aggregated). Includes processing status and debug info.`,
|
|
@@ -20,7 +20,7 @@ Use when debugging a specific event (e.g. why it failed or how it was aggregated
|
|
|
20
20
|
"destructiveHint": false,
|
|
21
21
|
"idempotentHint": false,
|
|
22
22
|
"openWorldHint": false,
|
|
23
|
-
"readOnlyHint":
|
|
23
|
+
"readOnlyHint": false,
|
|
24
24
|
},
|
|
25
25
|
args,
|
|
26
26
|
tool: async (client, args, ctx) => {
|
|
@@ -6,7 +6,7 @@ import { eventsGetHuggingfaceInferenceData } from "../../funcs/eventsGetHuggingf
|
|
|
6
6
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
7
7
|
|
|
8
8
|
export const tool$eventsGetHuggingfaceInferenceData: ToolDefinition = {
|
|
9
|
-
name: "
|
|
9
|
+
name: "get-huggingface-inference-data",
|
|
10
10
|
description: `Get Hugging Face inference data
|
|
11
11
|
|
|
12
12
|
Use when fetching Hugging Face inference usage or billing data (e.g. for HF-specific reporting or reconciliation).`,
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$eventsGetUsageAnalytics: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "get-usage-analytics",
|
|
15
15
|
description: `Get usage analytics
|
|
16
16
|
|
|
17
17
|
Use when building analytics views (e.g. usage by feature or customer over time). Supports filtering, grouping, and time-series breakdown.`,
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$eventsGetUsageByMeter: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "get-usage-by-meter",
|
|
15
15
|
description: `Get usage by meter
|
|
16
16
|
|
|
17
17
|
Use when showing usage for a specific meter (e.g. dashboard or overage check). Supports time range, filters, and grouping by customer or subscription.`,
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$eventsGetUsageStatistics: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "get-usage-statistics",
|
|
15
15
|
description: `Get usage statistics
|
|
16
16
|
|
|
17
17
|
Use when building usage reports or dashboards across events. Supports filters and grouping; defaults to last 7 days if no range provided.`,
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$eventsIngestEvent: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "ingest-event",
|
|
15
15
|
description: `Ingest event
|
|
16
16
|
|
|
17
17
|
Use when sending a single usage event from your app (e.g. one API call or one GB stored). Events are processed asynchronously; returns 202 with event_id.`,
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$eventsIngestEventsBulk: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "ingest-events-bulk",
|
|
15
15
|
description: `Bulk ingest events
|
|
16
16
|
|
|
17
17
|
Use when batching usage events (e.g. backfill or high-volume ingestion). More efficient than single event calls; returns 202 when accepted.`,
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$eventsListRawEvents: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "list-raw-events",
|
|
15
15
|
description: `List raw events
|
|
16
16
|
|
|
17
17
|
Use when debugging ingestion or exporting raw event data (e.g. support or audit). Returns a paginated list; supports time range and sorting.`,
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$invoicesAttemptInvoicePayment: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "attempt-invoice-payment",
|
|
15
15
|
description: `Attempt invoice payment
|
|
16
16
|
|
|
17
17
|
Use when paying an invoice with the customer's wallet balance (e.g. prepaid credits or balance applied at checkout).`,
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$invoicesCreateInvoice: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "create-invoice",
|
|
15
15
|
description: `Create one-off invoice
|
|
16
16
|
|
|
17
17
|
Use when creating a manual or one-off invoice (e.g. custom charge or non-recurring billing). Invoice is created in draft; finalize when ready.`,
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$invoicesFinalizeInvoice: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "finalize-invoice",
|
|
15
15
|
description: `Finalize invoice
|
|
16
16
|
|
|
17
17
|
Use when locking an invoice for payment (e.g. after review). Once finalized, line items are locked; invoice can be paid or voided.`,
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$invoicesGetCustomerInvoiceSummary: ToolDefinition<
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
|
-
name: "
|
|
16
|
+
name: "get-customer-invoice-summary",
|
|
17
17
|
description: `Get customer invoice summary
|
|
18
18
|
|
|
19
19
|
Use when showing a customer's invoice overview (e.g. billing portal or balance summary). Includes totals and multi-currency breakdown.`,
|
|
@@ -22,7 +22,7 @@ Use when showing a customer's invoice overview (e.g. billing portal or balance s
|
|
|
22
22
|
"destructiveHint": false,
|
|
23
23
|
"idempotentHint": false,
|
|
24
24
|
"openWorldHint": false,
|
|
25
|
-
"readOnlyHint":
|
|
25
|
+
"readOnlyHint": false,
|
|
26
26
|
},
|
|
27
27
|
args,
|
|
28
28
|
tool: async (client, args, ctx) => {
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$invoicesGetInvoice: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "get-invoice",
|
|
15
15
|
description: `Get invoice
|
|
16
16
|
|
|
17
17
|
Use when loading an invoice for display or editing (e.g. portal or reconciliation). Supports group_by for usage breakdown and force_runtime_recalculation.`,
|
|
@@ -20,7 +20,7 @@ Use when loading an invoice for display or editing (e.g. portal or reconciliatio
|
|
|
20
20
|
"destructiveHint": false,
|
|
21
21
|
"idempotentHint": false,
|
|
22
22
|
"openWorldHint": false,
|
|
23
|
-
"readOnlyHint":
|
|
23
|
+
"readOnlyHint": false,
|
|
24
24
|
},
|
|
25
25
|
args,
|
|
26
26
|
tool: async (client, args, ctx) => {
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$invoicesGetInvoicePdf: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "get-invoice-pdf",
|
|
15
15
|
description: `Get invoice PDF
|
|
16
16
|
|
|
17
17
|
Use when delivering an invoice PDF to the customer (e.g. email attachment or download). Use url=true for a presigned URL instead of binary.`,
|
|
@@ -20,7 +20,7 @@ Use when delivering an invoice PDF to the customer (e.g. email attachment or dow
|
|
|
20
20
|
"destructiveHint": false,
|
|
21
21
|
"idempotentHint": false,
|
|
22
22
|
"openWorldHint": false,
|
|
23
|
-
"readOnlyHint":
|
|
23
|
+
"readOnlyHint": false,
|
|
24
24
|
},
|
|
25
25
|
args,
|
|
26
26
|
tool: async (client, args, ctx) => {
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$invoicesGetInvoicePreview: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "get-invoice-preview",
|
|
15
15
|
description: `Get invoice preview
|
|
16
16
|
|
|
17
17
|
Use when showing a customer what they will be charged (e.g. preview before checkout or plan change). No invoice is created.`,
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$invoicesQueryInvoice: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "query-invoice",
|
|
15
15
|
description: `Query invoices
|
|
16
16
|
|
|
17
17
|
Use when listing or searching invoices (e.g. admin view or customer history). Returns a paginated list; supports filtering by customer, status, date range.`,
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$invoicesRecalculateInvoice: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "recalculate-invoice",
|
|
15
15
|
description: `Recalculate invoice
|
|
16
16
|
|
|
17
17
|
Use when subscription or usage data changed and you need to refresh a draft invoice before finalizing. Optional finalize=true to lock after recalc.`,
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$invoicesTriggerInvoiceCommsWebhook: ToolDefinition<
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
|
-
name: "
|
|
16
|
+
name: "trigger-invoice-comms-webhook",
|
|
17
17
|
description: `Trigger invoice communication webhook
|
|
18
18
|
|
|
19
19
|
Use when sending an invoice to the customer (e.g. trigger email or Slack). Payload includes full invoice details for your integration.`,
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$invoicesUpdateInvoice: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "update-invoice",
|
|
15
15
|
description: `Update invoice
|
|
16
16
|
|
|
17
17
|
Use when updating invoice metadata or due date (e.g. PDF URL, net terms). For paid invoices only safe fields can be updated.`,
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$invoicesUpdateInvoicePaymentStatus: ToolDefinition<
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
|
-
name: "
|
|
16
|
+
name: "update-invoice-payment-status",
|
|
17
17
|
description: `Update invoice payment status
|
|
18
18
|
|
|
19
19
|
Use when reconciling payment status from an external gateway or manual entry (e.g. mark paid after bank confirmation).`,
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$invoicesVoidInvoice: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "void-invoice",
|
|
15
15
|
description: `Void invoice
|
|
16
16
|
|
|
17
17
|
Use when cancelling an invoice (e.g. order cancelled or duplicate). Only unpaid invoices can be voided.`,
|