Skip to main content
Glama
WebTrace MCP Server

WebTrace MCP Server

by kings0527

get_hook_logs

Retrieves API call logs captured by configured hooks, with optional filtering by hook ID, API name, and time range for debugging and analysis.

Instructions

获取已设置的Hook收集到的API调用日志。

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

Input Schema

NameRequiredDescriptionDefault
limitNo
filterNo
hookIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it only says that logs are fetched. It does not disclose ordering, whether the default limit of 100 silently truncates results, pagination behavior, or how much data a Hook may have accumulated. Reading is implied but the operational characteristics an agent needs are absent.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though the brevity reflects under-specification rather than disciplined editing.

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

Completeness2/5

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

The tool has three parameters including a nested filter object, no annotations, and no output schema, so the description is the only source of behavioral and return-shape information. It provides none of that: an agent cannot tell what a log entry contains, how results are ordered, or how to express a time range. For this complexity level the definition is substantially incomplete.

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 0% across 3 parameters, including a nested filter object with apiName and a timeRange whose start/end are bare numbers with unspecified units. The description mentions no parameter at all, so an agent gets no help on the meaning or format of hookId, limit, or the time range. Only the self-evident parameter names keep this above 1.

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 states a specific verb and resource: retrieve the API call logs collected by an already-configured Hook. That is concrete enough for an agent to know what comes back (API call logs, not Hook configuration itself). It does not contrast the tool with any sibling such as hook_api, so it stays 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 Guidelines3/5

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

The phrase '已设置的Hook' (an already-configured Hook) implies the precondition that a Hook must exist before this tool is useful, which is meaningful implied usage guidance. However, there is no explicit when-to-use statement, no exclusion, and no named alternative for setting up or configuring the Hook itself.

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