Skip to main content
Glama

Pentest Analyze Response

pentest_analyze_response
Read-onlyIdempotent

Analyze an HTTP response from authorized probing for information leakage, fingerprinting signals, and related exposure. Structured findings cover version disclosures, stack traces, debug headers, internal paths, authentication patterns, CORS configuration, detection signals, remediation, and associated methodology vectors.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pentest_analyze_response"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoFreeform context about the authorized test target — e.g., "login endpoint", "GraphQL API", "file upload handler". Forwarded into applicable follow-up suggestions; does not filter patterns. Max 2,000 characters.
status_codeNoHTTP status code (100–599). Helps classify the response type.
response_bodyNoRaw HTML, JSON, XML, or error response body text. Maximum 10,000 characters.
response_headersNoRaw HTTP response headers, optionally including the status line, or curl -v output, where only "<" response lines are read. Maximum 20,000 characters.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
summaryNoOne-paragraph summary of findings, any skipped header checks, and associated follow-up actions.
findingsNoStructured findings ordered by severity descending (high first).
fingerprintsNoDetected server, framework, language, database, cloud, and other technology signals.
nextToolSuggestionsNoSuggested tools derived from detected fingerprints and findings.
authorized_use_reminderNoReminder that response analysis is for authorized testing only. Rendered first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Freeform context about the authorized test target — e.g., \"login endpoint\", \"GraphQL API\", \"file upload handler\". Narrows the pattern matching to relevant categories. Max 2,000 characters."New value: +"Freeform context about the authorized test target — e.g., \"login endpoint\", \"GraphQL API\", \"file upload handler\". Forwarded into applicable follow-up suggestions; does not filter patterns. Max 2,000 characters."
    • changedInput schema / properties / response_headers / description
      Previous value: -"Raw HTTP response headers, optionally including the status line. Maximum 20,000 characters."New value: +"Raw HTTP response headers, optionally including the status line, or curl -v output, where only \"<\" response lines are read. Maximum 20,000 characters."
    • changedOutput schema / properties / findings / items / properties / category / description
      Previous value: -"Finding category. version_disclosure = server/app version exposed; stack_trace = exception stacktrace leaked; internal_path = filesystem/internal route visible; debug_header = diagnostic header present; technology_fingerprint = framework/language signal; auth_pattern = JWT/cookie/auth mechanism visible; cors_misconfiguration = permissive CORS policy; security_header_missing = CSP/X-Frame-Options absent; interesting_field = non-obvious field worth noting; error_message = application/database error text."New value: +"Finding category. version_disclosure = server/app version exposed; stack_trace = exception stacktrace leaked; internal_path = filesystem/internal route visible; debug_header = diagnostic header present; technology_fingerprint = framework/language/CDN signal; auth_pattern = JWT or credential field visible; cors_misconfiguration = CORS observation requiring request-origin and trust-policy context; security_header_missing = CSP/X-Frame-Options absent; interesting_field = non-obvious field worth noting; error_message = application/database error text."
    • changedOutput schema / properties / findings / items / properties / severity / description
      Previous value: -"Relative impact in an authorized testing context. info = fingerprinting only; low = indirect exposure; medium = useful for chaining; high = directly exploitable."New value: +"Review priority: info = contextual observation; low = indirect exposure; medium = diagnostic disclosure; high = potentially sensitive exposure. A pattern match alone does not establish exploitability."
    • changedOutput schema / properties / fingerprints / properties / cloud_provider / description
      Previous value: -"Detected cloud provider or CDN."New value: +"Cloud or CDN identity evidenced by the response; an edge identity does not establish origin hosting."
    • changedOutput schema / properties / summary / description
      Previous value: -"One-paragraph summary of findings and associated follow-up actions."New value: +"One-paragraph summary of findings, any skipped header checks, and associated follow-up actions."
  2. Changed2 schema fields changed
    • changedOutput schema / properties / findings / items / properties / suggested_vector / description
      Previous value: -"Pentest_guide vector name for follow-up when this finding maps to an attack vector. Absent when no direct vector mapping exists."New value: +"Pentest_get_guide vector name for follow-up when this finding maps to an attack vector. Absent when no direct vector mapping exists."
    • changedOutput schema / properties / nextToolSuggestions / items / properties / toolName / description
      Previous value: -"Suggested tool name (e.g., \"pentest_guide\")."New value: +"Suggested tool name (e.g., \"pentest_get_guide\")."
  3. Changed16 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / response_body / description
      Previous value: -"Response body text. Paste raw HTML, JSON, XML, or error text. Truncate to the first 10,000 characters for very large responses — the first portion carries most leakage signals."New value: +"Raw HTML, JSON, XML, or error response body text. Maximum 10,000 characters."
    • changedInput schema / properties / response_headers / description
      Previous value: -"Raw HTTP response headers (paste from Burp, curl -v, or similar). Include the status line if available. Max 20,000 characters."New value: +"Raw HTTP response headers, optionally including the status line. Maximum 20,000 characters."
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "authorized_use_reminder",
      +      "findings",
      +      "fingerprints",
      +      "summary",
      +      "nextToolSuggestions"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `no_input`: Neither response_headers nor response_body was provided. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "no_input"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / findings / items / properties / detection / description
      Previous value: -"How a defender or SIEM would detect exploitation of this finding."New value: +"Observable signals associated with exploitation of this finding."
    • changedOutput schema / properties / fingerprints / description
      Previous value: -"Technology fingerprinting summary for use in target_context when calling pentest_guide or pentest_map_techniques."New value: +"Detected server, framework, language, database, cloud, and other technology signals."
    • changedOutput schema / properties / nextToolSuggestions / description
      Previous value: -"Suggested next tool calls — typically pentest_guide with fingerprint-populated stack, or pentest_generate_payloads for directly exploitable findings."New value: +"Suggested tools derived from detected fingerprints and findings."
    • changedOutput schema / properties / nextToolSuggestions / items / description
      Previous value: -"A suggested follow-up tool call with pre-filled arguments."New value: +"A suggested tool with arguments derived from the analysis."
    • changedOutput schema / properties / nextToolSuggestions / items / properties / args / description
      Previous value: -"Pre-filled arguments derived from detected fingerprints and findings. Pass directly to the suggested tool."New value: +"Arguments derived from detected fingerprints and findings."
    • changedOutput schema / properties / nextToolSuggestions / items / properties / reason / description
      Previous value: -"Why this tool is the logical next step given the analysis findings."New value: +"Relationship between the analysis findings and the suggested tool."
    • changedOutput schema / properties / nextToolSuggestions / items / properties / toolName / description
      Previous value: -"Tool name to call next (e.g., \"pentest_guide\")."New value: +"Suggested tool name (e.g., \"pentest_guide\")."
    • changedOutput schema / properties / summary / description
      Previous value: -"One-paragraph summary of findings and recommended next steps for the authorized tester."New value: +"One-paragraph summary of findings and associated follow-up actions."
    • removedOutput schema / required
      Removed value: -[
      -  "authorized_use_reminder",
      -  "findings",
      -  "fingerprints",
      -  "summary",
      -  "nextToolSuggestions"
      -]
  4. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already establish this as a read-only, idempotent, non-open-world operation, so the safety profile is covered. The description adds the authorization precondition and enumerates finding categories, but since an output schema exists that enumeration likely restates return values, and nothing is said about limits or failure behavior.

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?

Two sentences, front-loaded with the action and resource, with no filler preamble. The second sentence is a dense nine-item category list that runs a bit long and largely duplicates what the output schema likely covers.

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 low-complexity, zero-required-parameter analysis tool with full schema documentation, complete annotations, and an output schema, the description covers purpose and scope adequately. An agent needs nothing more to call it correctly, though a note on optional-parameter behavior would round it out.

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 each of the four optional parameters is fully documented in the schema itself. The description contributes no additional parameter meaning, which makes the baseline 3 appropriate.

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 names a specific verb and resource ('Analyze an HTTP response') and scopes the input to 'authorized probing,' so the agent can immediately tell this is an inspection tool, distinct from payload-generation or technique-lookup siblings. It never explicitly contrasts with a sibling, which keeps it short of a 5.

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

Usage Guidelines3/5

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

The 'from authorized probing' qualifier implies the legitimate-use context, and the list of finding categories hints at what to feed it, but there is no explicit when-to-use, when-not-to-use, or named alternative. Guidance is implied rather than stated.

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.