Skip to main content
Glama

Instructions for applying a scan's replacements to a codebase

get_agent_prompt

The step-by-step instructions for applying this scan's package: inspect the project, match each map entry to real files, change one reference at a time, validate, report what is unresolved. Never a blind search-and-replace. Still answered after the scan's files have been deleted. Reads only.

Input Schema

NameRequiredDescriptionDefault
agentNoDefault claude-code.
scan_idYesThe scan's id, from list_website_scans or the web app.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and discloses meaningful behavior: it is read-only and remains available after scan files are deleted. It does not cover permissions or rate limits, but it adds substantial operational context beyond the schema.

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?

The description is front-loaded and compact, with each sentence contributing a distinct fact: purpose, procedural constraints, persistence, and read-only behavior. There is no wasted text.

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?

For a tool with no annotations and no output schema, the description does enough: it explains what the instructions contain, warns against misuse, and states key behavioral traits. It could be slightly more complete by clarifying the return format or how the agent parameter affects output, but overall it is adequate.

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 parameters are already documented in the schema. The description does not add parameter-specific meaning beyond what the schema provides, making 3 the appropriate baseline.

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 clearly states that this tool returns step-by-step instructions for applying a scan's package, with concrete phases (inspect, match, change, validate, report). It is distinguishable from get_replacement_mapping by emphasizing instructions rather than the mapping itself, though it does not explicitly name the sibling.

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?

It establishes clear usage context: use these instructions when applying replacements, and explicitly warns against blind search-and-replace. It does not spell out when to prefer this over get_replacement_mapping, but the workflow guidance is strong.

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