Skip to main content
Glama
Grok2API MCP Server

Grok2API MCP Server

by wousp112

grok_stats

Returns runtime call counters for the MCP process, including tool calls, retries, and error code distribution so you can monitor usage and diagnose failures.

Instructions

Return runtime call counters for this MCP process (tool calls, retries, error code distribution).

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": "grok_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the burden: it usefully scopes the counters to "this MCP process," implying per-session runtime state rather than persisted history. However, it doesn't say whether counters are cumulative since startup, whether reading them has side effects, or whether they reset, which matters for interpreting the numbers.

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?

One sentence, front-loaded with the verb and resource, with the parenthetical listing exactly the returned metrics. Nothing is redundant.

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 a zero-parameter, non-destructive read with no output schema, the description adequately tells the agent what comes back by naming the three counter categories. It could be more complete by stating the counting window or reset behavior, but nothing essential to invoking it is missing.

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

Parameters4/5

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

The schema has zero parameters, so there is no parameter meaning to add; the baseline of 4 applies. The description correctly implies the tool takes no input by describing only returned data.

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 names a specific verb and resource ("Return runtime call counters") and enumerates the content (tool calls, retries, error code distribution), which is enough to separate it from the only sibling, grok_web_search. It doesn't explicitly contrast with a sibling, so it stops short of 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 Guidelines2/5

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

There is no statement of when to call this tool versus anything else, and no mention of conditions such as debugging a failing run versus routine monitoring. Usage is only inferable from the fact that counters are diagnostic data.

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

Deploy Server

Other Tools