@vitrion/zentria-mcp 1.1.0 → 1.2.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 CHANGED
@@ -13,7 +13,7 @@ This server uses the official **public REST API** at `/api/public`. Paths and re
13
13
 
14
14
  ## Features
15
15
 
16
- - **88 tools** covering discovery, to-dos, sales (people, deals, notes, activities, organizations, pipelines, forms, submissions), customers, CRM, Speed to Lead, Google Business Profiles, webhooks, members, settings, and integrations
16
+ - **90 tools** covering discovery, to-dos, sales (people, deals, notes, activities, organizations, pipelines, forms, submissions), customers, CRM, Speed to Lead, Google Business Profiles, webhooks, members, settings, and integrations
17
17
  - Team-bound **Personal Access Token** auth (`Authorization: Bearer`)
18
18
  - Automatic rate-limit retry (429 + `Retry-After`)
19
19
  - Stdio transport (Cursor, Claude Desktop, Claude Code)
@@ -91,7 +91,7 @@ Set `ZENTRIA_API_KEY` in your shell environment or MCP host config.
91
91
  | **Customers** | `list-customers`, `create-customer`, `archive-customer`, `list-customer-contacts` |
92
92
  | **CRM** | `list-crm-leads`, `approve-crm-lead`, `reject-crm-lead` |
93
93
  | **Speed to Lead** | `list-stl-flows`, `list-stl-sms-templates`, `list-stl-leads` |
94
- | **Business Profiles** | `list-business-profile-locations`, `list-business-profile-reviews`, `approve-business-profile-review-reply`, `accept-business-profile-change`, `create-business-profile-post` (scopes `business-profiles:read` / `business-profiles:write`, only when the module is on) |
94
+ | **Business Profiles** | `list-business-profile-locations`, `list-business-profile-reviews`, `approve-business-profile-review-reply`, `accept-business-profile-change`, `create-business-profile-post`, `get-location-performance`, `list-location-search-keywords` (scopes `business-profiles:read` / `business-profiles:write`, only when the module is on) |
95
95
  | **Webhooks** | `list-webhooks`, `create-webhook` (secret returned once) |
96
96
  | **Members** | `list-members`, `invite-member`, `change-member-role` |
97
97
  | **Settings** | `get-settings`, `get-integrations` |
@@ -188,4 +188,40 @@ export function registerBusinessProfileTools(server, client) {
188
188
  method: "DELETE",
189
189
  path: `${BASE}/posts/${encodePathSegment(input.id)}`,
190
190
  }));
191
+ registerJsonTool(server, "get-location-performance", {
192
+ description: "Results of a Business Profile location: views, calls, website clicks, direction requests, conversations and bookings with the previous period, the views split (search, maps, mobile, desktop) and a time series (GET /api/public/business-profiles/locations/{locationId}/performance). Google reports these numbers 2 to 3 days late, see latestDate in the response. Google does not link search terms to calls, so calls cannot be traced back to a keyword. Scope: business-profiles:read.",
193
+ annotations: { readOnlyHint: true },
194
+ inputSchema: z.object({
195
+ locationId: z.number().int().positive().describe("Location id."),
196
+ period: z
197
+ .enum(["last_7", "last_28", "last_90", "this_month", "last_month", "custom"])
198
+ .optional()
199
+ .describe("Period preset. Default last_28. Use custom together with from and to."),
200
+ from: z.string().optional().describe("Start date (YYYY-MM-DD), for period custom."),
201
+ to: z.string().optional().describe("End date (YYYY-MM-DD), for period custom."),
202
+ granularity: z
203
+ .enum(["day", "week"])
204
+ .optional()
205
+ .describe("Series buckets. Default day, or week for periods over 62 days."),
206
+ }),
207
+ }, async (input) => client.request({
208
+ path: `${BASE}/locations/${encodePathSegment(input.locationId)}/performance`,
209
+ query: query({}, { period: input.period, from: input.from, to: input.to, granularity: input.granularity }),
210
+ }));
211
+ registerJsonTool(server, "list-location-search-keywords", {
212
+ description: "List the search terms that showed a Business Profile location in one month, most used first (GET /api/public/business-profiles/locations/{locationId}/search-keywords). Rare terms have no count but a threshold: the term was used fewer than that many times. Data is 2 to 3 days late and Google does not link search terms to calls. Scope: business-profiles:read.",
213
+ annotations: { readOnlyHint: true },
214
+ inputSchema: z.object({
215
+ ...paginationSchema,
216
+ locationId: z.number().int().positive().describe("Location id."),
217
+ month: z
218
+ .string()
219
+ .regex(/^\d{4}-\d{2}$/)
220
+ .optional()
221
+ .describe("Month as YYYY-MM. Default: the newest month with data."),
222
+ }),
223
+ }, async (input) => client.request({
224
+ path: `${BASE}/locations/${encodePathSegment(input.locationId)}/search-keywords`,
225
+ query: query(input, { month: input.month }),
226
+ }));
191
227
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrion/zentria-mcp",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true