Skip to main content
Glama

Terraform module review

submit_terraform_module_review
Idempotent

Review a Terraform module for public ACLs, literal credentials, wildcard IAM policies, disabled encryption, publicly accessible resources and security-group ingress open to 0.0.0.0/0, each with the line number. As a fast first pass over a module before a full plan or a policy scan. Do not choose this when you need evaluated plan output or a policy engine such as OPA. Example requests: Review this Terraform module for security problems. | Does this .tf file hardcode any credentials or open a bucket publicly? | Audit my infrastructure-as-code module before I apply it.

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": {
      "inputs": "<inputs>",
      "authorized_by": "<authorized_by>"
    },
    "name": "submit_terraform_module_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsYes
quote_idNoThe quote_id from POST /v1/jobs; required when priced.
buyer_tokenNoThe buyer_token returned with your first purchase. It opens the purchase history for that buyer, including earlier deliverables.
authorized_byYesIdentifier of the human or agent authorizing this job.
accepted_priceNoThe quoted amount, echoed exactly; checked against the quote.
idempotency_keyNoRetry key; the same key returns the same job.
payment_signatureNox402 payment payload; required for a priced capability (see submit_job).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / buyer_token
      Added value: +{
      +  "description": "The buyer_token returned with your first purchase. It opens the purchase history for that buyer, including earlier deliverables.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed5 schema fields changed
    • changedInput schema / properties / accepted_price / description
      Previous value: -"The amount accepted, exactly as quoted (for example \"5.00\" or 5). Checked against the stored quote, so a price that moved between quote and authorize is refused rather than silently absorbed. Optional, but sent to make the acceptance explicit."New value: +"The quoted amount, echoed exactly; checked against the quote."
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Retry key. Re-sending the same key returns the same job instead of running it twice."New value: +"Retry key; the same key returns the same job."
    • changedInput schema / properties / payment_signature / description
      Previous value: -"Base64-encoded x402 payment payload (the value the HTTP interface puts in the PAYMENT-SIGNATURE header), signed for the amount in the payment requirement the first call returned. Required for a priced capability; nothing is charged until the work completes."New value: +"x402 payment payload; required for a priced capability (see submit_job)."
    • changedInput schema / properties / quote_id / description
      Previous value: -"The quote_id returned by POST /v1/jobs. Required to authorize a priced capability; the service rejects a priced job that does not name the quote it issued."New value: +"The quote_id from POST /v1/jobs; required when priced."
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "access_token": {
      -      "description": "Per-job credential. Present it as the X-Job-Token header to read the job or list it. Keep it; it is the only credential for this job.",
      -      "type": "string"
      -    },
      -    "artifacts": {
      -      "type": "array"
      -    },
      -    "capability_id": {
      -      "type": "string"
      -    },
      -    "job_id": {
      -      "type": "string"
      -    },
      -    "quote": {
      -      "type": "object"
      -    },
      -    "state": {
      -      "enum": [
      -        "received",
      -        "rejected",
      -        "quoted",
      -        "authorized",
      -        "executing",
      -        "deferred",
      -        "queued",
      -        "verifying",
      -        "completed",
      -        "failed",
      -        "timed_out",
      -        "cancelled"
      -      ]
      -    },
      -    "verification": {
      -      "description": "Independent verification. verification.ok = false means the job failed, not a partial success.",
      -      "type": "object"
      -    }
      -  },
      -  "required": [
      -    "job_id",
      -    "state"
      -  ],
      -  "type": "object"
      -}New value: +null
  3. Changed2 schema fields changed
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Retry key. Re-sending the same key returns the same job instead of running it twice.",
      +  "type": "string"
      +}
    • addedInput schema / properties / payment_signature
      Added value: +{
      +  "description": "Base64-encoded x402 payment payload (the value the HTTP interface puts in the PAYMENT-SIGNATURE header), signed for the amount in the payment requirement the first call returned. Required for a priced capability; nothing is charged until the work completes.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedOutput schema / properties / state / enum
      Previous value: -[
      -  "received",
      -  "rejected",
      -  "quoted",
      -  "authorized",
      -  "executing",
      -  "deferred",
      -  "verifying",
      -  "completed",
      -  "failed",
      -  "timed_out",
      -  "cancelled"
      -]New value: +[
      +  "received",
      +  "rejected",
      +  "quoted",
      +  "authorized",
      +  "executing",
      +  "deferred",
      +  "queued",
      +  "verifying",
      +  "completed",
      +  "failed",
      +  "timed_out",
      +  "cancelled"
      +]
  5. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, and the description usefully adds that this is static text analysis rather than evaluated plan output, a real behavioral boundary. However, it never discloses that the call submits a billable job requiring a quote_id/buyer_token/payment_signature, nor whether results are synchronous, and it says nothing about false positives or limits of static inspection. With annotations carrying part of the load, this is adequate but incomplete for a priced job-submission tool.

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 substantive part: the enumerated finding classes come first, then the usage boundary. The three example requests are useful for retrieval matching but are somewhat redundant with the sentences that precede them, so it is efficient rather than maximally tight.

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

Completeness3/5

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

There is no output schema, so the description bears the burden of explaining what comes back; it only hints that findings carry line numbers and never describes the result shape, severity, or coverage limits. For a 7-parameter, nested-schema, job-submitting tool the definition is serviceable for selection but thin on delivery behavior.

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 86%, so the schema already documents module input format, size cap, quote_id, buyer_token, authorized_by and idempotency_key. The description adds nothing to parameter meaning beyond the implicit "module text in, findings out"; the 'each with the line number' note is about output, not inputs. Baseline 3 applies.

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 resource ("Review a Terraform module") and immediately enumerates the exact classes of findings: public ACLs, literal credentials, wildcard IAM policies, disabled encryption, publicly accessible resources, and 0.0.0.0/0 ingress, each with a line number. The scope is concrete enough that an agent can distinguish this from a plan evaluator or a policy engine without inspecting the schema.

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

Usage Guidelines5/5

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

Gives an explicit positive condition ("fast first pass over a module before a full plan or a policy scan") and an explicit negative one ("Do not choose this when you need evaluated plan output or a policy engine such as OPA"). The when/when-not pair plus named alternative categories leaves nothing 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