Skip to main content
Glama

Get one logged request in full

get_api_log
Read-onlyIdempotent

Get one logged request in full

Returns one logged request of your API keys in full: method, path, status, error message, timing, the request headers and the request and response bodies. Keys, tokens and passwords are already removed. Use it to inspect a single call after finding it with list_api_logs, which gives the id; for totals and error rates use get_api_log_stats. Read only. 404 when the entry does not belong to your keys.

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": {
      "id": "<id>"
    },
    "name": "get_api_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesid

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds value beyond them by disclosing that secrets (keys, tokens, passwords) are stripped from headers and bodies before returning, and that a 404 occurs when the entry is outside your API key scope. It stops short of describing payload size, truncation, or retention limits for large bodies/headers, which would matter for an inspection tool.

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?

Dense and front-loaded: purpose, returned fields, sourcing the id, alternatives, safety, and error case in three sentences. The only waste is the opening clause repeating the title verbatim before the colon'd field list, a minor redundancy rather than a clarity problem.

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

Completeness5/5

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

With one required param, no output schema, and no nested objects, the description carries its weight: it enumerates the return payload, notes redaction, states the scoping constraint, and specifies the failure mode. An agent has everything needed to call it correctly and interpret the 404.

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 coverage is 100% but the schema describes `id` only as "id", so the description does real work by explaining that the identifier comes from `list_api_logs`. It does not state the type/format constraints, though the schema covers that, so this is a modest but genuine addition.

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?

States a specific verb and resource (retrieve one logged request) and immediately enumerates the returned fields: method, path, status, error, timing, headers, bodies. It explicitly distinguishes itself from `list_api_logs` (which returns many and supplies the id) and `get_api_log_stats` (totals and error rates), so an agent can route without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives the exact workflow: find the call with `list_api_logs`, then use this tool with the resulting `id`, and redirects aggregate questions to `get_api_log_stats`. It also names when the call fails (404 when the entry does not belong to your keys), which is the main edge case for an id-scoped lookup.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.