Skip to main content
Glama

check_csrf_origin_guard

Probe POST requests with no Origin and with a foreign Origin to detect missing CSRF origin validation; 2xx/3xx responses show the request was processed without a guard.

Instructions

Probe whether a POST without Origin and with a foreign Origin are rejected (401/403/...). 2xx/3xx means the request was processed: missing CSRF guard. The probe sends empty POSTs 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": {
      "url": "<url>"
    },
    "name": "check_csrf_origin_guard"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses that only empty POSTs are sent and how to read the resulting status codes, which is real behavioral context beyond the name. However it omits whether the target must be owned/authorized, whether the probe could trigger side effects on state-changing endpoints, rate/retry behavior, and what the tool actually returns (verdict string vs raw status).

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?

Three short sentences, front-loaded with the action and the interpretation rule, with no filler. The parenthetical 401/403/... is slightly loose but functional.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter, no-output-schema security probe, the result-interpretation rule (2xx/3xx = missing guard) is the key piece and it is present. Still missing are the return shape, permission/authorization expectations, and what happens on network failure or non-POST endpoints, leaving the agent unsure how to consume the result.

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?

One URL parameter with 0% schema description coverage, so the description must compensate. 'The probe sends empty POSTs only' hints that url is the target endpoint receiving the POSTs, but it never states that explicitly, nor any requirements (scheme, must be a POST-accepting route, base URL vs full path).

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 action (probe a POST endpoint) and the exact security property being tested: rejection of requests lacking Origin or carrying a foreign Origin. It also explains what a 2xx/3xx response means, so the agent knows this is a CSRF-guard detector rather than a generic request sender. It does not explicitly contrast itself with the sibling check_* probes, 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?

Usage is implied by the probe framing, but there is no statement of when to pick this tool over sibling checks (e.g. session cookie or header checks), and no prerequisites such as target authorization, reachability of a POST endpoint, or expected environment. The two probe variants are described, which gives partial context.

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