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 / 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?
With no annotations, the description carries the full burden. It does disclose the return shape ('directives and keys'), which is useful behavioral context, but says nothing about how malformed CSP input is handled, error behavior, or the wallet/payment requirement beyond a trial note.
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?
Front-loaded with the core verb and resource in a single efficient sentence. The emoji and trial-call promo add minor noise but occupy little space.
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?
For a simple parser with no output schema, the description conveys purpose and result shape adequately. However, the three-parameter ambiguity and absence of any error or auth detail leave it short of fully self-sufficient.
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?
Schema description coverage is 0% across three undocumented string parameters (csp, input, header), none required. The description only implies the input is a CSP string and does not disambiguate which of the three overlapping parameters to use, leaving a real gap the schema does not fill.
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?
States a specific verb ('Parses') and resource ('Content-Security-Policy string') plus the output shape ('directive-to-value map'). It is distinguishable from siblings like x402-http-headers or x402-hsts-check, though it does not explicitly contrast itself with any of them.
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 when-to-use guidance, no mention of alternatives, and no indication of which of the three parameters to supply. The trailing '5 free trial calls per signed wallet' is pricing/marketing, not usage guidance.
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.