Skip to main content
Glama

Shieldbook – EU Cyber Resilience Act (CRA), SBOM

Generate a security.txt file

security_txt_generate
Read-onlyIdempotent

Generates a security.txt file (RFC 9116): the standard file at /.well-known/security.txt on a website that tells security researchers where to report the vulnerabilities (security bugs) they find. Takes contact URIs (mailto:, https:, tel:), an optional expiry date and optional fields (PGP encryption key, disclosure policy, acknowledgments, languages, canonical URL, hiring). Returns the file text, or a message per invalid field. Does not write a full vulnerability disclosure policy or check a live website.

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": {
      "contact": "<contact>"
    },
    "name": "security_txt_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
hiringNohttps URL of security job openings.
policyNohttps URL of your vulnerability disclosure policy (VDP or coordinated vulnerability disclosure policy).
contactYesSecurity contact where researchers send vulnerability reports: mailto: e-mail address, https: web form or tel: phone URIs, most preferred first.
expiresNoExpiry date YYYY-MM-DD (UTC). Default: about one year from today, as RFC 9116 recommends.
canonicalNohttps URL where this file will be published, e.g. https://example.com/.well-known/security.txt.
encryptionNohttps URL of your OpenPGP (PGP) public key for encrypted reports.
acknowledgmentsNohttps URL of your security acknowledgments page.
preferred_languagesNoComma-separated language tags, e.g. "en, de".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / contact / description
      Previous value: -"Where to send vulnerability reports: mailto:, https: or tel: URIs, most preferred first."New value: +"Security contact where researchers send vulnerability reports: mailto: e-mail address, https: web form or tel: phone URIs, most preferred first."
    • changedInput schema / properties / encryption / description
      Previous value: -"https URL of your OpenPGP key."New value: +"https URL of your OpenPGP (PGP) public key for encrypted reports."
    • changedInput schema / properties / policy / description
      Previous value: -"https URL of your vulnerability disclosure policy."New value: +"https URL of your vulnerability disclosure policy (VDP or coordinated vulnerability disclosure policy)."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety and side-effect profile is covered. The description adds genuine behavior beyond that: it describes the return value ("the file text, or a message per invalid field") and the default expiry behavior implied by the optional expiry date, which the annotations do not carry.

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 sentences, front-loaded with the artifact and RFC number, then inputs, then return behavior and exclusions. The parenthetical enumeration of optional fields partly duplicates the schema and could be trimmed, but nothing is padding.

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

Completeness5/5

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

With 8 parameters, a single required field, 100% schema coverage and no output schema, the description supplies exactly what is missing: what the file is, where it goes, what comes back on success vs. per-field failure, and what the tool deliberately does not do. An agent has enough to call it correctly and interpret the result.

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

Parameters4/5

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

Schema description coverage is 100%, so baseline is 3; the description goes slightly beyond by spelling out the accepted contact URI schemes (mailto:, https:, tel:) and by grouping the optional fields by purpose (PGP key, disclosure policy, acknowledgments, languages, canonical URL, hiring). It does not add syntax or format detail that the schema lacks, so it is an incremental rather than substantial gain.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description pairs a specific verb ("Generates") with a specific artifact ("a security.txt file (RFC 9116)") and even states the publication path /.well-known/security.txt and its intent. None of the sibling tools (cra_*, sbom_*) produce a security.txt file, so the tool is unambiguously distinguishable.

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

Usage Guidelines4/5

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

It gives clear scope-setting context ("tells security researchers where to report the vulnerabilities they find") and explicit exclusions: it does not write a full vulnerability disclosure policy and does not check a live website. It stops short of naming a sibling alternative for the excluded jobs (e.g., the policy or live-site checking case), leaving the agent to infer routing.

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.

Resources