Skip to main content
Glama

Legis-Link

Generate RAMS (Pro)

generate_rams
Read-onlyIdempotent

[PRO] Generates a complete Risk Assessment and Method Statement (RAMS) document — called a Job Hazard Analysis (JHA) in the USA or Safe Work Method Statement (SWMS) in Australia. Use this tool when a foreman or PM needs a formal safety document before a high-risk task. Output includes: Section 1 — Hazard Register (tabular, with severity/likelihood/risk rating/controls/regulations), Section 2 — Method Statement (numbered sequential steps), Section 3 — Required Qualifications and Certifications. The document is formatted for printing or inclusion in a site safety file. This tool produces a longer output than other tools — expect 800-1500 words. Example tasks: 'Electrical switchboard installation in commercial building NSW', 'Gas line installation in residential kitchen UK', 'Roof framing timber frame residential NSW'.

Input Schema

NameRequiredDescriptionDefault
roleNoRole of the person generating the RAMS. Foreman or PM recommended.Foreman
taskYesFull description of the task requiring the RAMS. Include: what work, where, at what height or voltage, any confined space, any hot work. The more detail, the more accurate the hazard register.
tradeYesThe trade performing the work.
regionYesUse the state, province or country where the user works; if they have not said, ask them - never assume NSW or Australia. Jurisdiction. Determines applicable WHS/CDM/OSHA legislation cited in the document.
api_keyNoPro API key required.
company_nameNoOptional. Company name to include in the document header.
site_addressNoOptional. Site address to include in the document header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations by disclosing output size (800-1500 words, longer than other tools), exact document structure, print/site-file formatting intent, and that the region drives which WHS/CDM/OSHA legislation is cited. The [PRO] marker signals the api_key gating requirement. Nothing here contradicts the readOnlyHint, since generation has no side effects.

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?

Front-loaded with the artifact definition, then use-case, then output structure, then examples — a logical order an agent can parse quickly. The three example tasks add length but each demonstrates a different trade/region pairing, so they earn their place; the section enumeration is slightly verbose but maps directly to the return value.

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?

There is no output schema, and the description fully compensates by describing the three output sections and expected length. Combined with 100% schema coverage on the 7 parameters, an agent has everything needed to decide to call it and to construct correct arguments.

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 coverage is 100%, so the baseline is 3, but the description adds real signal by giving three concrete example task strings that illustrate the expected granularity for the `task` parameter and the region/trade combination. It also implicitly reinforces that region must not be assumed, matching the schema's explicit warning.

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?

States a specific verb and artifact: 'Generates a complete Risk Assessment and Method Statement (RAMS) document', and even maps the artifact to regional names (JHA, SWMS). The enumerated output sections (Hazard Register, Method Statement, Qualifications) make it unmistakably distinct from siblings like generate_safety_checklist or check_compliance.

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?

Gives a clear trigger condition: 'Use this tool when a foreman or PM needs a formal safety document before a high-risk task.' The regional-jurisdiction note further narrows appropriate use. It stops short of naming when NOT to use it or pointing to the sibling checklist/compliance tools for lighter-weight needs.

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.