Skip to main content
Glama

Write a security.txt file

generate_security_txt
Read-onlyIdempotent

Write a security.txt file (RFC 9116) from a contact, a review date and optional policy, thanks, encryption and canonical addresses, with what the RFC requires flagged. Send today to have the date checked. Answers from what you send alone: nothing is fetched or stored.

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>",
      "expires": "<expires>"
    },
    "name": "generate_security_txt"
  }
}

Input Schema

NameRequiredDescriptionDefault
todayNoToday. To check the review date against. Optional. (YYYY-MM-DD)
policyNoDisclosure policy page Optional.
contactYesWhere to report a vulnerability. An email address or an https:// page with a form.
expiresYesReview this file by. At most a year from now: an expired file is ignored. (YYYY-MM-DD)
canonicalNoThis file's own address Optional.
languagesNoLanguages you read. Codes separated by commas. Optional.
encryptionNoEncryption key. Where your PGP key is published. Optional.
acknowledgmentsNoThanks page Optional.

Output Schema

NameRequiredDescriptionDefault
toolYes
toolUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description nonetheless adds genuine behavioral context beyond that: 'Answers from what you send alone: nothing is fetched or stored' clarifies the pure-function contract, and 'with what the RFC requires flagged' discloses that the output annotates compliance — an agent would not know either from the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the verb and resource, then the input inventory, then the two behavioral facts that matter. No filler and no restatement of the title beyond the necessary RFC reference.

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

Completeness4/5

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

An output schema exists, so return values need not be explained, and the annotations cover mutability and world-access. The description supplies the remaining essentials — stateless operation and RFC-compliance flagging — leaving only the specific shape of the compliance flags to the output schema, which is an acceptable division of labor.

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?

Schema description coverage is 100%, so the schema already documents all eight parameters including format hints (YYYY-MM-DD) and the one-year cap on `expires`. The description's parameter content largely restates the schema; the only added meaning is the instruction that sending `today` triggers a review-date check, which is marginal against a fully documented schema. Baseline 3 applies.

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 opens with a specific verb and resource plus the governing standard: 'Write a security.txt file (RFC 9116)', and enumerates the inputs it consumes (contact, review date, policy, thanks, encryption, canonical). This clearly separates it from validation-style siblings like check_site_security, but it never names an alternative explicitly, so routing relies on the agent recognizing the RFC from the name.

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 rather than stated: the tool is for producing a file, and the agent is told to 'Send `today` to have the date checked', which is a conditional behavior hint. There is no explicit when-to-use vs. when-not framing and no pointer to check_site_security or check_llms_txt for the read/validate side of the workflow, leaving the alternative selection to inference.

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