Skip to main content
Glama
modelbrain-mcp

modelbrain-mcp

Official

Summarize tool usage

usage
Read-onlyIdempotent

Summarizes local tool-call logs to report per-session tool calls, empty recalls, saves, and errors by code for troubleshooting activity.

Instructions

Summarize this server's local tool-call log over the last days: calls per session by tool, empty recalls, saves per session and errors by code. The log holds no memory content. Not needed for normal use.

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

Input Schema

NameRequiredDescriptionDefault
daysNoSummarize the last this-many days (1-90; default 7; the log keeps 90).
sessionsNoHow many of the most recently active sessions to break down by tool (0-50).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety bar is low. The description adds genuinely useful context beyond them: the data is a local tool-call log, and crucially "the log holds no memory content," which reassures an agent that querying it will not surface or expose stored memories. It does not state retention limits in the description itself (that lives in the schema) or the cost of the aggregation.

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, front-loaded with what is summarized, then a scope caveat, then a usage hint. Every clause carries information; nothing is padding.

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 compensates by listing the returned aggregates, which is exactly what an agent needs to judge whether calling it will answer its question. Combined with full parameter coverage and rich annotations, only the retention window (90 days) is left to the schema rather than the prose.

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 both `days` and `sessions` are already fully documented with ranges and defaults, making 3 the baseline. The description reinforces that `days` is the summary window and that `sessions` drives the per-tool breakdown, but adds no format or interaction detail beyond the schema text.

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 concrete verb and resource ("summarize this server's local tool-call log") and enumerates the exact metrics returned: calls per session by tool, empty recalls, saves per session, errors by code. That is far more specific than a restatement of the name. It never names a sibling such as `diagnostics`, so an agent cannot fully rule out overlap from the text alone, which keeps it at 4 rather than 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?

"Not needed for normal use" is an explicit when-not-to-use signal that tells the agent this is a telemetry/troubleshooting tool, not part of the recall/remember loop. No named alternative is offered for the diagnostic case (e.g. `diagnostics`), so it stops short of full routing guidance.

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