Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-csp-parse

Csp Parse: Parses a Content-Security-Policy string into a directive-to-value map, returning directives and keys 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
cspNo
inputNo
headerNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / allOf
      Added value: +[
      +  {
      +    "anyOf": [
      +      {
      +        "required": [
      +          "csp"
      +        ]
      +      },
      +      {
      +        "required": [
      +          "header"
      +        ]
      +      },
      +      {
      +        "required": [
      +          "input"
      +        ]
      +      }
      +    ]
      +  }
      +]
  2. Changed3 schema fields changed
    • removedInput schema / properties / csp / description
      Removed value: -"Csp to process"
    • removedInput schema / properties / header / description
      Removed value: -"Header to process"
    • removedInput schema / properties / input / description
      Removed value: -"Input to process"
  3. First observed

TDQS

B3/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 behavioral burden. It does add useful context beyond the schema: the return value is a directive-to-value map, and access is gated by a signed wallet with 5 free trial calls, which tells the agent about auth and quota. It says nothing about malformed/invalid CSP handling, directive normalization, or error shapes, which matters for a parser with no output schema.

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 compact clauses: the operation and return shape are front-loaded, followed by the trial-pricing note. There is little waste, though the emoji-quota tagline is marketing rather than invocation guidance.

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?

The description covers the core operation and a partial return description, which is appropriate since no output schema exists. However, for a three-alias-parameter parser with zero annotation coverage and no output schema, it omits input-alias rules and failure behavior, leaving meaningful gaps an agent would hit on first call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

All three parameters (csp, header, input) have 0% schema description coverage and are structurally aliases selectable via anyOf. The description mentions only an abstract 'CSP string' and never explains that any one of csp/header/input may be supplied or how they differ, so an agent must open the raw schema and still guess at the alias semantics.

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 ('Parses a Content-Security-Policy string') and states the output shape ('directive-to-value map'), which distinguishes it from sibling parsers that handle other formats. It stops short of explicitly contrasting with siblings like x402-url-parse, but the CSP-specific framing is enough for an agent to identify the right tool.

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?

There is no explicit when-to-use or when-not-to-use guidance, no prerequisites, and no mention of alternatives among the many *-parse siblings. Usage is only inferable from the tool name and the phrase 'Parses a ... string', which is the same level of implied guidance as a generic 'update settings' tool.

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.