Skip to main content
Glama

Summarize security context

get_security_context
Read-only

Summarize a project's security setup before writing security-sensitive code: detected web frameworks, auth decorators and middleware, security headers, rate limiting, input validation, and the Skylos YAML policy file.

Instructions

Summarize a project's security setup: detected web frameworks, auth decorators and middleware, security headers, rate limiting, input validation and a supported Skylos YAML policy file.

Use it before reviewing or writing security-sensitive code to learn the project's conventions. Returns JSON. Read-only and local.

Requires SKYLOS_API_KEY: this tool returns an authentication error unless the MCP server is started with SKYLOS_API_KEY set. Without a key, analyze works (5 calls/day) and the local map tools (change_map and the graph_* tools) work with no limit. The local CLI needs no key: skylos verify <file> and skylos agent install-hooks.

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": {
      "path": "<path>"
    },
    "name": "get_security_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesProject directory. A relative path resolves against the MCP server's working directory.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv4.49.0
    • addedInput schema / properties / path / description
      Added value: +"Project directory. A relative path resolves against the MCP server's working directory."
  2. Addedv4.10.0

TDQS

A4.4/5.0
Behavior4/5

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

Above and beyond the readOnly/openWorld/destructive annotations, the description adds that it returns JSON, is local, and requires SKYLOS_API_KEY, plus the exact failure mode (authentication error) and degraded alternatives when the key is absent. The only minor gap is that features specific to the returned summary are not explained, which is acceptable given that an output schema exists.

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?

It is front-loaded: the first sentence defines the tool, the second defines when to use it, and the rest describes authentication prerequisites. The final sentence about the local CLI (`skylos verify`, `skylos agent install-hooks`) is somewhat tangential to this MCP tool and keeps the description from being fully tight. No sentence is redundant with the annotations.

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?

For a single-parameter, read-only summarization tool with an output schema and full annotations, nothing needed to call it correctly is missing: it states inputs of interest, when to invoke it, its return format, and its authentication prerequisite. The degraded-mode information lets the agent plan around a missing key instead of failing blindly.

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?

The only parameter, `path`, is already fully documented in the schema, including how a relative path resolves against the MCP server's working directory. The description restates the resource being summarized but does not add constraints, formats, or defaults for the parameter. Schema coverage is 100%, so the baseline of 3 applies.

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?

The description gives a specific verb ("Summarize") and enumerated resource contents — detected frameworks, auth decorators and middleware, security headers, rate limiting, input validation, and a Skylos YAML policy file — that let an agent tell this apart from a scanning or fixing sibling. The specificity of the enumerated outputs makes clear this is a reporting/inspection tool, not an analyze/scan/fix tool.

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?

It states explicitly when to use it ("before reviewing or writing security-sensitive code to learn the project's conventions") and names the conditions under which it fails or is superseded, including which other capabilities work without an API key (analyze at 5 calls/day, change_map, graph_*) and what the local CLI alternatives are. The alternatives and exclusions are called out with their own budgets rather than left to inference.

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