Skip to main content
Glama
gokapi-mcp

gokapi-mcp

by arr-mcps

Gokapi Logs

gokapi_logs

Retrieve Gokapi server logs, check system status, reset traffic statistics, or delete old log entries by specifying the desired log operation and its parameters.

Instructions

gokapi logs operations on Gokapi. Pass operation and an arguments dict matching that operation's parameters.

  • gokapi_logs_delete(timestamp=None) - Delete log entries (DELETE /api/logs/delete, admin only). timestamp is the cutoff unix epoch - older entries are deleted; omit to delete all.

  • gokapi_logs_get(timestamp=None) - Get server logs (GET /api/logs/get). timestamp optionally filters to entries newer than a unix epoch.

  • gokapi_logs_resettraffic() - Reset the traffic statistic (DELETE /api/logs/resetTraffic, admin only).

  • gokapi_logs_systemstatus() - Get server status information (GET /api/logs/systemStatus).

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": {
      "operation": "<operation>"
    },
    "name": "gokapi_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
argumentsNo
operationYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description must carry the full behavioral burden, and it does disclose the important traits: delete and resettraffic are admin-only, and omitting the timestamp deletes all entries, which is a clear destructive-scope warning. It stops short of stating irreversibility or what a non-admin call returns, but the safety-relevant behavior is surfaced.

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 dispatch convention is front-loaded in one sentence and each operation gets a single scannable bullet. The only waste is the tautological first clause, which restates the tool name rather than adding information.

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 dispatcher over four operations with an output schema present, the description covers operation selection, per-operation arguments, and authorization requirements, which is what an agent needs to invoke it. Minor gaps are transport-level details like failure behavior for non-admin callers, which are largely outside scope.

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?

Schema description coverage is 0%, so the description must compensate, and it does: it explains that `operation` selects one of four named operations and that `arguments` must match that operation's parameters. It further defines `timestamp` as a unix epoch used as a cutoff (older-deleted vs newer-returned) and marks it optional per operation.

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 opening line is circular ("gokapi logs operations on Gokapi"), but the four bullets name concrete verbs and resources: delete log entries, get server logs, reset traffic statistic, get server status. An agent can distinguish the sub-operations from one another, though nothing in the text separates this tool from siblings like gokapi_info or gokapi_requests.

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?

Each operation carries useful selection context: HTTP endpoint, admin-only restrictions on delete and resettraffic, and the meaning/optionality of `timestamp`. However, there is no guidance on when to prefer this tool over sibling tools in the gokapi_* family, nor any when-not-to-use case.

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