Skip to main content
Glama

apply_adapt_framework

Refine any base prompt with the ADAPT framework by specifying audience, document type, accuracy, purpose, and tone, ensuring precise output.

Instructions

[PRO] Apply the ADAPT framework to any base prompt for precision output. ADAPT: Audience, Document type, Accuracy level, Purpose, Tone. Add any combination of layers to sharpen any prompt in this library or your own.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
base_promptYes
audienceNo
document_typeNo
accuracy_levelNo
purposeNo
toneNo
additional_modifiersNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The main handler function for the 'apply_adapt_framework' tool. It takes base_prompt and up to 6 optional ADAPT modifier parameters (audience, document_type, accuracy_level, purpose, tone, additional_modifiers), builds an ADAPT layers string, and returns the enhanced prompt with power modifier suggestions.
    @mcp.tool()
    def apply_adapt_framework(
        base_prompt: str,
        audience: str = "",
        document_type: str = "",
        accuracy_level: str = "",
        purpose: str = "",
        tone: str = "",
        additional_modifiers: str = ""
    ) -> str:
        """
        [PRO] Apply the ADAPT framework to any base prompt for precision output.
        ADAPT: Audience, Document type, Accuracy level, Purpose, Tone.
        Add any combination of layers to sharpen any prompt in this library or your own.
        """
        layers = []
        if audience:
            layers.append(f"Write for {audience}.")
        if document_type:
            layers.append(f"Format as a {document_type}.")
        if accuracy_level:
            layers.append(f"Use {accuracy_level} accuracy/terminology level.")
        if purpose:
            layers.append(f"The purpose is to {purpose}.")
        if tone:
            layers.append(f"Tone: {tone}.")
        if additional_modifiers:
            layers.append(additional_modifiers)
    
        adapt_layers = "\n".join(layers) if layers else "No additional modifiers applied."
    
        return f"""ADAPT-ENHANCED PROMPT:
    
    {base_prompt}
    
    ─── ADAPT MODIFIERS ───
    {adapt_layers}
    
    ─── POWER MODIFIERS AVAILABLE ───
    Add any of these to further refine output:
    - "Limit your response to [X] words."
    - "Write at a [medical professional / 8th grade] reading level."
    - "Provide 3 alternative versions with different tones."
    - "Build on the previous response to add a [SECTION]."
    - "Revise your previous response to be 20% shorter without losing key data."
    - "For each edit you make, briefly explain why."
    - "Write in the style of papers published in [NEJM / JAMA / Blood]."
    - "If you are uncertain about any fact, mark it with [VERIFY]." """
  • server.py:913-914 (registration)
    The tool is registered via the @mcp.tool() decorator on line 913, which makes the function an MCP tool callable by AI agents.
    @mcp.tool()
    def apply_adapt_framework(
  • The function signature defines the input schema: base_prompt (required str) and six optional string parameters (audience, document_type, accuracy_level, purpose, tone, additional_modifiers). The return type is str.
    def apply_adapt_framework(
        base_prompt: str,
        audience: str = "",
        document_type: str = "",
        accuracy_level: str = "",
        purpose: str = "",
        tone: str = "",
        additional_modifiers: str = ""
    ) -> str:
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states the tool applies the ADAPT framework but does not disclose behavioral traits such as whether it validates parameters, if it modifies the prompt in-place, or what the return format is. Minimal insight beyond the transformation action.

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 extremely concise (two sentences) and front-loaded with the purpose. Every sentence is necessary and provides the acronym breakdown. No wasted words.

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?

Given the presence of an output schema, return values need not be detailed. However, the tool has 7 parameters and the description only mentions the layers; it lacks guidance on how parameters interact or what the output format is. Adequate but not fully complete for a complex transformation tool.

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 0%, so the description must compensate. It lists the ADAPT layers and additional_modifiers but provides no detailed explanation or examples for each parameter. Parameter names are somewhat self-explanatory, but the description offers limited semantic help beyond naming.

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 the tool applies the ADAPT framework to any base prompt for precision output, listing the five layers (Audience, Document type, Accuracy level, Purpose, Tone). It distinguishes itself from sibling tools that provide specific prompt templates.

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 description implies usage for enhancing any prompt, but does not explicitly contrast with siblings or state when to use this tool versus them. The phrase 'sharpen any prompt in this library or your own' gives context but is not explicit about alternatives.

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

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/pubspro/medwriter-mcp'

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