Skip to main content
Glama
security-use

Security-Use MCP Server

by security-use

get_sensor_config

Generate sensor configuration code for FastAPI or Flask applications to detect and block malicious requests through SecurityMiddleware integration.

Instructions

Generate sensor configuration for framework integration. Creates code snippets for adding SecurityMiddleware to FastAPI or Flask applications.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
frameworkNoTarget framework (fastapi, flask). Defaults to fastapi.
block_on_detectionNoWhether to block malicious requests. Defaults to true.
watch_pathsNoSpecific paths to monitor.
api_keyNoDashboard API key for alerting.
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool 'Generates' configuration and 'Creates code snippets', implying a read-only or generation operation, but doesn't clarify if this modifies any state, requires authentication, has side effects, or details output format. For a tool with no annotation coverage, this leaves significant behavioral gaps.

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?

The description is extremely concise with two sentences that directly state the purpose and output. Every word earns its place, and it's front-loaded with the core function. There's no redundancy or unnecessary elaboration.

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?

Given the complexity of generating configuration code and the lack of annotations and output schema, the description is incomplete. It doesn't explain what the generated output looks like (e.g., code format, structure), potential errors, or integration steps. For a tool with no structured behavioral data, this leaves too much unspecified for reliable agent use.

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 fully documents all 4 parameters. The description adds no parameter-specific information beyond implying the 'framework' parameter targets FastAPI or Flask. Since the schema already covers this, the description provides minimal additional value, meeting the baseline for high schema coverage.

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 clearly states the tool's purpose: 'Generate sensor configuration for framework integration' and specifies it 'Creates code snippets for adding SecurityMiddleware to FastAPI or Flask applications.' This is a specific verb+resource combination that tells what the tool produces and for which frameworks. However, it doesn't explicitly differentiate from sibling tools like 'configure_sensor' or 'init_project', which might have overlapping domains.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites, context for integration, or compare it to siblings like 'configure_sensor' or 'init_project'. The agent must infer usage from the purpose alone, which is insufficient for optimal tool selection in a server with multiple security-related tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/security-use/mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server