Skip to main content
Glama

client_history

Read-onlyIdempotent

Track device join, leave, and IP-change events per client to identify which devices keep dropping off the network and when; routers keep no such log, so history is sampled by the server.

Instructions

Join / leave / IP-change events recorded by this server (routers keep no such log). Shows which device keeps dropping off the network and when. Each device has its own history. Sampled every TPLINK_PRESENCE_INTERVAL seconds (default 60) while the server runs.

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

Input Schema

NameRequiredDescriptionDefault
macNo
limitNo
deviceNoName of a device from devices.toml (see the 'devices' command); omit for the default device.
since_hoursNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • addedInput schema / properties / device
      Added value: +{
      +  "default": "",
      +  "description": "Name of a device from devices.toml (see the 'devices' command); omit for the default device.",
      +  "title": "Device",
      +  "type": "string"
      +}
  2. First observedv0.2.0

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already establish read-only, idempotent, and non-open-world behavior. The description adds important behavioral context beyond that: events are sampled every TPLINK_PRESENCE_INTERVAL seconds (default 60) and only while the server runs, which warns the agent that the history is incomplete by design.

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?

The description is front-loaded with the event types and stays compact at four sentences. Most sentences carry useful information, though the sampling caveat could be integrated more tightly.

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

Completeness3/5

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

The purpose and sampling limitation are clear, and the output schema covers return values. But with four parameters and only 25% schema coverage, the description leaves key filtering parameters undocumented, so it is only partially complete for an agent configuring the call.

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

Parameters2/5

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

Schema description coverage is only 25%, with just the device parameter described in the schema. The description does not explain mac, limit, or since_hours, nor does it clarify how device filtering relates to mac filtering or what the time window controls.

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

Purpose5/5

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

The description names specific event types (join, leave, IP-change) and the resource (client history), and distinguishes it from router logs by noting routers keep no such log. An agent can tell this is server-recorded client connectivity history rather than a router log.

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?

It implies a diagnostic use case—showing which device keeps dropping off the network—and contrasts with router logs by saying routers keep no such log. However, it does not explicitly state when to use this versus alternatives like router_logs or find_client, nor does it name a sibling tool.

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