Skip to main content
Glama
Webfleet MCP Server

Webfleet MCP Server

by WYRE-AI

webfleet_driver_kpis

Read-onlyIdempotent

Fetches per-driver KPIs—trip, eco, OptiDrive, speeding, driving events, and orders—for a specified date range to analyze driver performance. Read-only.

Instructions

KPIs (trip, eco, OptiDrive, speeding, driving events, orders) per driver. Read-only: WEBFLEET.connect getDriverKPIs (limit 10 requests/minute; calls over the limit are refused locally, and an identical call inside the limit interval is answered from a short cache). Requires a date range.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "kpinames": "<kpinames>"
    },
    "name": "webfleet_driver_kpis"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayNoWhole day (1-31). Requires year and month.
yearNoWhole calendar year. Alternative to range_pattern and rangefrom_string/rangeto_string.
levelNoAggregation: day, month, or range (one KPI for the whole range; default).
monthNoWhole month (1-12). Requires year.
drivernoNoDriver number, unique within the account, case-sensitive. Alternative to driveruid.
kpinamesYesKPI groups to return (sent comma-separated).
driveruidNoUnique, unchangeable driver identifier. Alternative to driverno.
columnfilterNoComma-separated result column names to return (case-sensitive). Reduces response size; unknown names are ignored by Webfleet.
range_patternNoRelative date range: d0 today, d-1..d-6 days ago, w0 current week, w-1..w-3 weeks ago, wf0..wf-3 floating 7-day weeks, m0 current month, m-1..m-3 months ago, ud user-defined (needs rangefrom_string and rangeto_string).
rangeto_stringNoEnd of the date range. Use with rangefrom_string. ISO 8601, e.g. 2026-11-01T00:00:00Z.
rangefrom_stringNoStart of the date range. Use with rangeto_string; range_pattern=ud is sent with them. ISO 8601, e.g. 2026-11-01T00:00:00Z.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, yet the description adds genuinely new operational context: the upstream WEBFLEET.connect method, a 10 requests/minute cap, local refusal of over-limit calls, and short-term caching of identical calls. That caching note is consistent with idempotentHint and tells the agent that repeats are cheap; the main gap is that nothing is said about response size or result shape, which matters for a no-output-schema tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three compact sentences, front-loaded with what the tool returns, followed by safety/limit context. The parenthetical rate-limit sentence is long but every clause carries information; the only minor cost is that the opening is a noun phrase rather than an action statement.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter read tool with no output schema, the description covers source API, rate limits, caching, and the date-range prerequisite, which is most of what an agent needs before calling. What remains unaddressed is the relationship among the three mutually exclusive date-range styles and the fact that 'requires a date range' is not enforced by the schema's required list (only kpinames is required).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already explains kpinames, level, columnfilter, and every date-range mechanism in detail. The description contributes only the generic constraint that a date range is required, adding no syntax or precedence detail (e.g. range_pattern vs. year/month/day) beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names the resource (driver KPIs) and enumerates the six KPI groups covered (trip, eco, OptiDrive, speeding, driving events, orders), which lets an agent distinguish this from the object-level KPI sibling by scope. It lacks an explicit verb such as 'retrieve' and never names the object-level alternative, so differentiation is implicit rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Requires a date range' is a real precondition that steers invocation, and 'Read-only' signals this is a fetch operation. However, there is no guidance on when to pick this over webfleet_object_kpis or the event-specific siblings (speeding_events, acceleration_events), which the KPI groups overlap with.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.