Skip to main content
Glama
This connector has been deprecated

This listing duplicates LexQ (io.lexq/lexq), which follows the official MCP Registry entry. Use that listing instead.

Execution Statistics

lexq_history_stats
Read-only

Get execution KPIs: total executions, success/failure counts, success rate, and average latency. Without dates the window is the last 30 days through today, in the organization time zone. At most 31 days per call; a longer range is rejected with AN-039. startDate alone runs through today.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lexq_history_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
endDateNoEnd date, yyyy-MM-dd, a whole calendar day in the organization time zone (tenantTimezone in whoami), not UTC. Inclusive: the whole day counts.
groupIdNoFilter by policy group
startDateNoStart date, yyyy-MM-dd, a whole calendar day in the organization time zone (tenantTimezone in whoami), not UTC. Inclusive.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / endDate / description
      Previous value: -"End date (yyyy-MM-dd)"New value: +"End date, yyyy-MM-dd, a whole calendar day in the organization time zone (tenantTimezone in whoami), not UTC. Inclusive: the whole day counts."
    • changedInput schema / properties / startDate / description
      Previous value: -"Start date (yyyy-MM-dd)"New value: +"Start date, yyyy-MM-dd, a whole calendar day in the organization time zone (tenantTimezone in whoami), not UTC. Inclusive."
  2. Changed3 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / groupId / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  3. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds useful non-annotation behavior: the default rolling window, the 31-day cap, and the specific error code AN-039 for over-long ranges. It stops short of describing result shape or what happens when endDate precedes startDate.

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

Conciseness5/5

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

Three short sentences, zero filler, and the most decision-relevant facts (what KPIs, default window, range cap) are front-loaded. Nothing needs re-reading.

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?

With no output schema, the description correctly takes on the burden of naming the returned metrics, and it covers the temporal edge cases an agent is most likely to hit. It is nearly complete for a read-only stats tool; the only gap is clarifying the result type of the aggregate fields or ordering behavior, which is minor here.

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 all three parameters (startDate, endDate, groupId) are already documented, including the time-zone semantics the description restates. What the description genuinely adds is the defaulting behavior when dates are omitted and the cross-parameter 31-day span constraint, which is not expressible in the schema — modest but real added meaning.

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 description opens with a specific verb and resource ("Get execution KPIs") and enumerates the exact metrics returned: total executions, success/failure counts, success rate, and average latency. It does not explicitly distinguish itself from aggregate-adjacent siblings like lexq_history_list or lexq_logs_list, which keeps it from a 5.

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

Usage Guidelines4/5

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

It gives clear operating context: with no dates the default window is the last 30 days through today in the organization time zone, and startDate alone runs through today. It also states the hard limit (31 days per call) and the rejection behavior (AN-039), though it never points to an alternative sibling for longer ranges or raw per-execution data.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources