Skip to main content
Glama

get_optimization_plan

Create a prioritized markdown plan that surfaces untested specs, severity-ranked quality issues, and drifted specs to direct next fixes.

Instructions

Three-layer coach output that integrates coverage / quality / drift signals into one prioritized markdown plan. Layer 1 surfaces untested + thin-coverage specs; Layer 2 ranks specs by severity-weighted quality findings; Layer 3 surfaces drifted + stranded specs. Use this when a user asks 'what should we fix next' / 'show me the weekly plan' / 'review the suite'. Toggle layers via include_coverage / include_quality / include_drift booleans (all default true). top_n caps per-layer detail rows (default 10). Returns {specs_total, *_count, *[], markdown}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
include_coverageNo
include_qualityNo
include_driftNo
top_nNo
Behavior4/5

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

With no annotations, the description carries full burden. It discloses the return structure '{specs_total, *_count, *[], markdown}', explains layers and how toggles work, and implies a read-only nature. It does not mention destructive traits or auth needs, which is acceptable for a reporting 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?

The description is a single dense paragraph but front-loads the key purpose. Every sentence adds value, though it could be more scannable with bullet points. It is appropriately sized for the complexity.

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?

Given the complexity (3 layers, 4 params, no output schema), the description covers the output structure and layer behavior. It does not detail the markdown format, but that is acceptable. The tool is well-placed among siblings that handle individual signals.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, but the description fully compensates by explaining each parameter: include_coverage/quality/drift booleans (default true) toggle layers, top_n integer (default 10) caps rows. It adds context beyond the schema types, making parameter usage clear.

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 description clearly states it provides a 'Three-layer coach output' that integrates coverage/quality/drift signals into a prioritized markdown plan, with specific use cases like 'what should we fix next'. This distinguishes it from sibling tools that focus on individual signals (e.g., get_coverage_matrix, get_drift_report).

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 explicitly gives usage scenarios: 'when a user asks what should we fix next / show me the weekly plan / review the suite'. It also explains how to toggle layers via booleans. However, it does not mention when not to use or provide alternatives (e.g., for individual signals).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kao273183/mk-spec-master'

If you have feedback or need assistance with the MCP directory API, please join our Discord server