Skip to main content
Glama

Get detector configuration

stack_get_detector_config
Read-only

Get the account's customization for one detector. Returns 404 when none exists, which means the detector runs on built-in defaults. Available on every plan. A controls feature: with controls off the API answers 402 CONTROLS_REQUIRED, and the owner switches controls on in the Console, at the Billing page. A self-managed install has every controls feature.

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": {
      "detector_key": "<detector_key>"
    },
    "name": "stack_get_detector_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
detector_keyYesDetector key, e.g. "prompt_injection"

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?

Goes well beyond the readOnly/non-destructive annotations: it documents the 404-means-defaults semantics, plan availability, the 402 CONTROLS_REQUIRED failure and its remediation (owner enables controls in the Console Billing page), and that self-managed installs have all controls features. These are exactly the runtime behaviors an agent cannot infer from structured fields.

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?

Four short sentences, all earning their place, with the primary purpose front-loaded and error semantics following. Minor drag from fragment phrasing ('A controls feature: with controls off...') which reads awkwardly but remains parseable.

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 single-parameter read tool with no output schema, it covers availability, entitlement gating, and the empty-result case thoroughly. The one gap is that it never hints at what a successful (non-404) response contains, which matters given no output schema.

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 coverage is 100% for the single detector_key parameter and the schema already supplies an example value. The description adds nothing about key format or naming, so the baseline of 3 is appropriate when the schema does the work.

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 and resource: 'Get the account's customization for one detector.' The scoping to a single detector implicitly distinguishes it from a list-all operation, but no sibling tool (such as the reset/upsert config siblings) is named, so the agent must infer the boundary.

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 clear conditions under which the call applies and the failure modes: 404 means no customization exists and built-in defaults apply. It does not explicitly direct the agent to alternatives (e.g. list configs or upsert config), so guidance is strong on context but silent on routing.

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.