veryfront__get_usage_series
Requires account.billing.read.
Access
No external-service connection is required. Use a Veryfront credential with access to the requested resources.
Call type: Read-only.
Arguments
| Field | Type | Required | Description and constraints |
|---|---|---|---|
preset | string | No | Whole local days, defaulting to 30d. Explicit from/to bounds take precedence over preset, including SDK-supplied defaults. Default: "30d". Values: "7d", "30d", "90d". |
from | string | No | Inclusive start. Supply both from and to; these bounds take precedence over preset. Format: date-time. |
to | string | No | Exclusive end, no later than the end of today in timezone. |
timezone | string | No | Provide the timezone. Default: "UTC". |
granularity | string | No | UTC hours, or local calendar days, Monday-based weeks and months. Default: "day". Values: "hour", "day", "week", "month". |
group_by | string[] | No | Grouping dimensions supported by this operation. Repeat the parameter or use a comma-separated list. |
compare | string | No | Compare preceding calendar months for whole-month custom ranges, local days for whole-day ranges and presets, or equal elapsed duration otherwise. Value: "previous_period". |
metric | string | Yes | Usage metric to chart. Values: "credits", "storage", "bandwidth", "api_calls". |
project_reference | string | No | Project ID or slug that narrows the read to one project of the account. A project of another account is not found. Minimum length: 1. |
Example request
Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.
request.json
1{2 "jsonrpc": "2.0",3 "id": 1,4 "method": "tools/call",5 "params": {6 "name": "veryfront__get_usage_series",7 "arguments": {8 "metric": "credits"9 }10 }11}Result
The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.
| Field | Type | Required | Description and constraints |
|---|---|---|---|
metric | string | Yes | Values: "credits", "storage", "bandwidth", "api_calls". |
label | string | Yes | |
unit | string | Yes | |
summary | object | Yes | Structured summary details associated with this tool result. |
timeframe | object | Yes | Structured timeframe details associated with this tool result. |
series | object[] | Yes | List of series associated with this tool result. |
projects | object[] | Yes | List of projects associated with this tool result. |
scope | object | No | |
group_by | string[] | No |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "preset": {5 "type": "string",6 "enum": [7 "7d",8 "30d",9 "90d"10 ],11 "description": "Whole local days, defaulting to 30d. Explicit from/to bounds take precedence over preset, including SDK-supplied defaults.",12 "default": "30d"13 },14 "from": {15 "type": "string",16 "format": "date-time",17 "description": "Inclusive start. Supply both from and to; these bounds take precedence over preset."18 },19 "to": {20 "$ref": "#/properties/from",21 "description": "Exclusive end, no later than the end of today in timezone."22 },23 "timezone": {24 "type": "string",25 "description": "Provide the timezone.",26 "default": "UTC"27 },28 "granularity": {29 "type": "string",30 "enum": [31 "hour",32 "day",33 "week",34 "month"35 ],36 "description": "UTC hours, or local calendar days, Monday-based weeks and months.",37 "default": "day"38 },39 "group_by": {40 "type": "array",41 "items": {42 "type": "string",43 "enum": [44 "project",45 "model",46 "api_key",47 "member"48 ],49 "description": "One group by item supplied to the tool."50 },51 "maxItems": 4,52 "description": "Grouping dimensions supported by this operation. Repeat the parameter or use a comma-separated list."53 },54 "compare": {55 "type": "string",56 "const": "previous_period",57 "description": "Compare preceding calendar months for whole-month custom ranges, local days for whole-day ranges and presets, or equal elapsed duration otherwise."58 },59 "metric": {60 "type": "string",61 "enum": [62 "credits",63 "storage",64 "bandwidth",65 "api_calls"66 ],67 "description": "Usage metric to chart."68 },69 "project_reference": {70 "type": "string",71 "minLength": 1,72 "description": "Project ID or slug that narrows the read to one project of the account. A project of another account is not found."73 }74 },75 "required": [76 "metric"77 ],78 "additionalProperties": false,79 "description": "Arguments for the get_usage_series tool.",80 "$schema": "http://json-schema.org/draft-07/schema#"81}output-schema.json
1{2 "type": "object",3 "properties": {4 "metric": {5 "type": "string",6 "enum": [7 "credits",8 "storage",9 "bandwidth",10 "api_calls"11 ]12 },13 "label": {14 "type": "string"15 },16 "unit": {17 "type": "string"18 },19 "summary": {20 "type": "object",21 "properties": {22 "value": {23 "type": "number"24 },25 "previous": {26 "type": "object",27 "properties": {28 "value": {29 "type": "number"30 }31 },32 "required": [33 "value"34 ],35 "additionalProperties": false36 }37 },38 "required": [39 "value"40 ],41 "additionalProperties": false,42 "description": "Structured summary details associated with this tool result."43 },44 "timeframe": {45 "type": "object",46 "properties": {47 "from": {48 "type": "string",49 "format": "date-time",50 "description": "Inclusive start."51 },52 "to": {53 "type": "string",54 "format": "date-time",55 "description": "Exclusive end."56 },57 "timezone": {58 "type": "string"59 },60 "granularity": {61 "type": "string",62 "enum": [63 "hour",64 "day",65 "week",66 "month"67 ]68 },69 "bucket_count": {70 "type": "integer",71 "minimum": 072 },73 "previous": {74 "type": "object",75 "properties": {76 "from": {77 "$ref": "#/properties/timeframe/properties/from",78 "description": "The from returned by the tool."79 },80 "to": {81 "$ref": "#/properties/timeframe/properties/to",82 "description": "The to returned by the tool."83 },84 "timezone": {85 "$ref": "#/properties/timeframe/properties/timezone",86 "description": "The timezone returned by the tool."87 },88 "granularity": {89 "$ref": "#/properties/timeframe/properties/granularity",90 "description": "The granularity returned by the tool."91 },92 "bucket_count": {93 "$ref": "#/properties/timeframe/properties/bucket_count",94 "description": "The bucket count returned by the tool."95 }96 },97 "required": [98 "from",99 "to",100 "timezone",101 "granularity",102 "bucket_count"103 ],104 "additionalProperties": false105 }106 },107 "required": [108 "from",109 "to",110 "timezone",111 "granularity",112 "bucket_count"113 ],114 "additionalProperties": false,115 "description": "Structured timeframe details associated with this tool result."116 },117 "series": {118 "type": "array",119 "items": {120 "type": "object",121 "properties": {122 "bucket_start": {123 "type": "string"124 },125 "value": {126 "type": "number"127 },128 "projects": {129 "type": "array",130 "items": {131 "type": "object",132 "properties": {133 "project_id": {134 "anyOf": [135 {136 "type": "string",137 "format": "uuid",138 "description": "Project identifier associated with this result."139 },140 {141 "type": "null",142 "description": "Project identifier associated with this result."143 }144 ],145 "description": "Project identifier associated with this result."146 },147 "project_name": {148 "type": "string"149 },150 "project_slug": {151 "type": [152 "string",153 "null"154 ]155 },156 "value": {157 "type": "number"158 }159 },160 "required": [161 "project_id",162 "project_name",163 "project_slug",164 "value"165 ],166 "additionalProperties": false167 },168 "description": "List of projects associated with this tool result."169 },170 "groups": {171 "type": "array",172 "items": {173 "type": "object",174 "properties": {175 "dimensions": {176 "type": "object",177 "properties": {178 "project_id": {179 "anyOf": [180 {181 "type": "string",182 "format": "uuid",183 "description": "Project identifier associated with this result."184 },185 {186 "type": "null",187 "description": "Project identifier associated with this result."188 }189 ],190 "description": "Project identifier associated with this result."191 },192 "model": {193 "type": [194 "string",195 "null"196 ],197 "description": "AI model id associated with this tool result."198 },199 "model_provider": {200 "type": [201 "string",202 "null"203 ]204 },205 "api_key_id": {206 "anyOf": [207 {208 "type": "string",209 "format": "uuid"210 },211 {212 "type": "null",213 "description": "The api key id returned by the tool."214 }215 ]216 },217 "api_key_kind": {218 "type": "string",219 "enum": [220 "api_key",221 "no_api_key",222 "other_keys",223 "deleted_keys",224 "unattributed"225 ],226 "description": "Key-listing reports distinguish named keys, other/deleted keys, keyless and unattributed usage."227 },228 "member_id": {229 "anyOf": [230 {231 "type": "string",232 "format": "uuid"233 },234 {235 "type": "null",236 "description": "The member id returned by the tool."237 }238 ]239 },240 "member_kind": {241 "type": "string",242 "enum": [243 "member",244 "former_member",245 "deleted_users",246 "automations",247 "unattributed"248 ],249 "description": "Project-member reports distinguish named people, deleted users, automations and unattributed usage."250 }251 },252 "additionalProperties": false,253 "description": "Structured dimensions details associated with this tool result."254 },255 "value": {256 "type": "number"257 }258 },259 "required": [260 "dimensions",261 "value"262 ],263 "additionalProperties": false264 }265 }266 },267 "required": [268 "bucket_start",269 "value",270 "projects"271 ],272 "additionalProperties": false273 },274 "description": "List of series associated with this tool result."275 },276 "projects": {277 "type": "array",278 "items": {279 "$ref": "#/properties/series/items/properties/projects/items",280 "description": "One project item returned by the tool."281 },282 "description": "List of projects associated with this tool result."283 },284 "scope": {285 "type": "object",286 "properties": {287 "kind": {288 "type": "string",289 "const": "account"290 },291 "account_id": {292 "type": "string",293 "format": "uuid"294 },295 "project_id": {296 "anyOf": [297 {298 "type": "string",299 "format": "uuid",300 "description": "Project identifier associated with this result."301 },302 {303 "type": "null",304 "description": "Project identifier associated with this result."305 }306 ],307 "description": "Project identifier associated with this result."308 }309 },310 "required": [311 "kind",312 "account_id",313 "project_id"314 ],315 "additionalProperties": false316 },317 "group_by": {318 "type": "array",319 "items": {320 "type": "string",321 "enum": [322 "project",323 "model",324 "api_key",325 "member"326 ]327 }328 }329 },330 "required": [331 "metric",332 "label",333 "unit",334 "summary",335 "timeframe",336 "series",337 "projects"338 ],339 "additionalProperties": false,340 "description": "Structured result returned by the get_usage_series tool.",341 "$schema": "http://json-schema.org/draft-07/schema#"342}