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
| Name | Required | Description | Default |
|---|---|---|---|
| csp | No | ||
| input | No | ||
| header | No |
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
| Name | Required | Description | Default |
|---|---|---|---|
| csp | No | ||
| input | No | ||
| header | No |
Changes observed during successful MCP inspections.
Input schema / allOfAdded value: +[
+ {
+ "anyOf": [
+ {
+ "required": [
+ "csp"
+ ]
+ },
+ {
+ "required": [
+ "header"
+ ]
+ },
+ {
+ "required": [
+ "input"
+ ]
+ }
+ ]
+ }
+]Input schema / properties / csp / descriptionRemoved value: -"Csp to process"Input schema / properties / header / descriptionRemoved value: -"Header to process"Input schema / properties / input / descriptionRemoved value: -"Input to process"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.
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.
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.
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.
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.
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.
Add one secure layer between your agents and this server.