Skip to main content
Glama

Repolog

get_fix_prompt

Get a ready-to-use prompt describing what to fix in the code, built from a completed scan's report.

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": {
      "scanId": "<scanId>"
    },
    "name": "get_fix_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
scanIdYesUUID of a completed scan.
sectionNoReport section to build the prompt from. Defaults to top-fixes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does convey that the output is a synthesized prompt rather than raw report data, which is useful behavioral context. However, it says nothing about read-only safety, what happens if the scan is not yet complete, or whether the returned prompt is plain text or structured.

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?

A single well-formed sentence with the output type front-loaded ('ready-to-use prompt') followed by its source ('completed scan's report'). No filler or redundancy beyond a mild overlap between 'ready-to-use' and 'prompt'.

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?

For a two-parameter read-style tool with no output schema, the description covers what is produced and from what source, which is the essential core. It leaves gaps around the return format and the failure mode when the referenced scan is incomplete, which matter because the output has no schema to explain itself.

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 both scanId (UUID of a completed scan) and section (enum defaulting to top-fixes) are already documented in the schema. The description echoes the 'completed scan' constraint but adds no meaning about section selection or how section changes the generated prompt. 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?

States a specific verb and resource: it produces a ready-to-use remediation prompt derived from a completed scan's report. The phrase 'what to fix in the code' makes the output's intent concrete. It stops short of naming how it differs from siblings like get_scan, which also reads scan data.

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?

The phrase 'built from a completed scan's report' implicitly states the prerequisite (a finished scan) and use case (acting on results), but there is no explicit when-to-use, when-not-to-use, or contrast with get_scan or other report readers. The agent must infer that this tool is chosen when the goal is remediation rather than inspection.

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.