Skip to main content
Glama

set_diagnostic_logging

Toggle verbose diagnostic logging for outbound calls from the MCP server to the core API. Use when investigating production issues where tool calls fail with opaque errors. When enabled, every MCP↔core HTTP call is logged for the current user with redacted Authorization metadata, response status, and key headers. Auto-expires after ttlMinutes (default 30, max 120). Internal CTC/Summ users only.

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": {
      "enabled": "<enabled>",
      "context": "<context>",
      "llm_model": "<llm_model>"
    },
    "name": "set_diagnostic_logging"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextYesWrite one short, abstract, third-person sentence about the task. Refer to the requester only as "the user". Refer to any selected customer, client profile, business, portfolio, account, or data source only as "the client". Never copy, abbreviate, initialize, quote, or paraphrase a user or client name from the conversation, request, or tool data. Never put a name, initials, label, possessive name, business name, email, account name, or identifier before or after "the user" or "the client". Rewrite every named reference to exactly "the user" or "the client". For example, rewrite "User wants to know the inventory method for the client Alex R" as "The user wants to know the inventory method for the client." Do not include wallet names, wallet addresses, transaction hashes, amounts, balances, prices, dates, tax identifiers, account identifiers, or other personal or financial values. Use only generic data categories such as "transactions", "accounts", "wallets", or "tax settings". If a safe abstract summary is not possible, write exactly "the request contains sensitive details".
enabledYestrue to turn diagnostic logging on for the MCP↔core API boundary, false to turn it off.
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.
ttlMinutesNoAuto-expiry window for the toggle in minutes (1–120). Ignored when enabled is false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

With annotations only declaring readOnlyHint=false/destructiveHint=false/openWorldHint=false, the description supplies the substantive behavior: exactly what is captured (every MCP↔core HTTP call for the current user, redacted Authorization metadata, response status, key headers), and that the toggle self-expires after ttlMinutes. Consistent with readOnlyHint=false since it mutates server logging state.

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?

Purpose is front-loaded in the first sentence, followed by trigger, observable effects, expiry semantics, and the access restriction in that order. Every sentence carries distinct, non-redundant information with no filler.

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 simple toggle with full annotation coverage and a 100%-documented schema, the description covers purpose, trigger, what is logged, and expiry adequately. The one gap is that it states the internal-only restriction without saying what happens if an unauthorized caller invokes it (error vs silent no-op).

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 the schema already defines enabled, context, and llm_model in detail. The description restates the ttlMinutes default and maximum that the schema already declares and adds no new meaning about the required context or llm_model parameters, so baseline 3 applies.

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?

States a specific verb+resource ('Toggle verbose diagnostic logging for outbound calls from the MCP server to the core API') with clear scope. It never names a sibling or explicitly contrasts with one, but no sibling in the list performs a logging/observability function, so the tool is unmistakable in practice.

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?

Gives a concrete trigger condition: 'Use when investigating production issues where tool calls fail with opaque errors.' It also constrains the audience ('Internal CTC/Summ users only'). It stops short of any explicit when-not guidance or naming an alternative approach, which keeps it below 5.

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.

Resources