Skip to main content
Glama

Generate fix prompt

generate_fix_prompt

Prepare a coding-agent prompt from an owned report. One check uses one unit; full uses three. Three units are free once. Then US$0.10 per unit, or included in an active PageAudit plan. Read prompt_allowance first. Only send credit_token after explicit spending authorization; preserve request_id for retries. Use the assembled instructions directly instead of copying findings and writing a prompt yourself, with no model call needed to generate it. Review placeholders and proposed changes before applying them, since evidence comes from the saved audit rather than the repository. Use verification with the same owner to compare fixed and new findings after the change. Free audits already include findings, and the prompt does not edit the site on its own.

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": {
      "id": "<id>",
      "scope": "<scope>",
      "language": "<language>",
      "request_id": "<request_id>"
    },
    "name": "generate_fix_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesOwned saved audit ID.
scopeYescheck or full.
check_idNoID from the report's checks; required for check, absent for full.
languageYesLanguage of the prompt instructions and check names: en for English, pt for Portuguese.
request_idYesNew UUID v4 per generation. Keep it unchanged for retries.
guest_tokenNoPrivate owner token returned by guest creation. Sent in X-Guest-Token; reuse it for this owner's resources.
credit_tokenNoPrepaid cred_… token. Requires explicit user authorization.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / guest_token / description
      Added value: +"Private owner token returned by guest creation. Sent in X-Guest-Token; reuse it for this owner's resources."
  2. Changed1 schema field changed
    • addedInput schema / properties / credit_token
      Added value: +{
      +  "description": "Prepaid cred_… token. Requires explicit user authorization.",
      +  "type": "string"
      +}
  3. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations: unit costs per scope tier, the free allowance, plan inclusion, retry semantics via request_id, credit authorization requirements, and the crucial caveat that evidence comes from the saved audit rather than the repository. It also explicitly states the prompt does not edit the site, which is exactly the kind of non-destructiveness context an agent needs for a write-adjacent billing operation.

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 what the tool does and what it costs, then layered with operational constraints. Every sentence addresses a distinct concern (cost, prerequisite call, retry, review step, verification), but the prose is dense and would read better split into grouped lines.

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?

There is no output schema, so the description carries the burden of explaining the return: it tells the agent the result is assembled instructions usable directly and that placeholders and proposed changes should be reviewed. Billing, authorization, and retry behavior are covered; only the concrete shape of the returned payload is left implicit.

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 coverage is 100%, so the schema already documents id, scope, check_id, language, request_id, guest_token, and credit_token with specifics. The description adds only one genuinely new semantic layer — the unit-cost mapping of check (1 unit) versus full (3 units) to the scope parameter — while retry and authorization notes largely restate the schema text.

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 first sentence states a specific verb and resource: 'Prepare a coding-agent prompt from an owned report.' It also clarifies that the output is assembled instructions needing no model call, which tells an agent what it actually receives rather than leaving 'prompt' ambiguous.

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?

Strong sequencing guidance: read prompt_allowance first, send credit_token only after explicit spending authorization, and use verification with the same owner afterward to compare fixed and new findings. It even steers away from a manual alternative ('instead of copying findings and writing a prompt yourself'). It does not, however, distinguish this tool from the similarly named sibling get_fix_prompt.

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.