Skip to main content
Glama

get_methods_section_prompt

Draft a manuscript Methods section aligned with CONSORT for RCTs or STROBE for observational studies, covering study design, patient eligibility, treatment arms, endpoints, and statistical analysis.

Instructions

[PRO] Draft a manuscript Methods section. CONSORT aligned for RCTs, STROBE for observational studies. Covers design, eligibility, treatment arms, endpoints, and statistical analysis.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
study_designYes
drugYes
populationYes
treatment_armsYes
primary_secondary_endpointsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The actual MCP tool handler/function. Decorated with @mcp.tool(), accepts parameters (study_design, drug, population, treatment_arms, primary_secondary_endpoints), constructs a prompt string formatted for generating a manuscript Methods section.
    @mcp.tool()
    def get_methods_section_prompt(
        study_design: str,
        drug: str,
        population: str,
        treatment_arms: str,
        primary_secondary_endpoints: str
    ) -> str:
        """
        [PRO] Draft a manuscript Methods section.
        CONSORT aligned for RCTs, STROBE for observational studies.
        Covers design, eligibility, treatment arms, endpoints, and statistical analysis.
        """
        return f"""Write a Methods section for a {study_design} study of {drug} in {population}.
    
    Subsections:
    - Study design and setting
    - Patient eligibility (inclusion/exclusion criteria)
    - Treatment arms: {treatment_arms}
    - Primary and secondary endpoints: {primary_secondary_endpoints}
    - Statistical analysis plan overview
    
    Use past tense. Follow CONSORT/STROBE guidelines as appropriate.
    
    Pro tip: For observational studies specify STROBE. For RCTs specify CONSORT."""
  • server.py:981-982 (registration)
    Registration entry in the pro_tools list that maps the tool name to its description 'Draft manuscript Methods section'.
    ("get_methods_section_prompt", "Draft manuscript Methods section"),
    ("get_results_section_prompt", "Draft Results section narrative from approved data"),
Behavior3/5

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

No annotations provided, so description must disclose behavior. It describes output coverage (design, eligibility, etc.) but does not mention any side effects, permissions, or limitations. Adequate but not comprehensive.

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?

Single sentence with clear front-loading ('[PRO] Draft a manuscript Methods section'). Efficient, though the [PRO] prefix may add noise.

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?

Adequate for a prompt generation tool with 5 required parameters and an output schema. Lacks details on how parameters map to output or examples, but sufficient for basic understanding.

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

Parameters2/5

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

Schema coverage 0%, so description must compensate. It maps some parameters (study_design, population, treatment_arms, endpoints) but omits 'drug'. Partial coverage leaves ambiguity.

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?

Description clearly states the tool drafts a manuscript Methods section and specifies alignment with CONSORT and STROBE guidelines, which distinguishes it from siblings for other sections.

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?

Description provides context for when to use CONSORT vs STROBE based on study design, and mentions coverage of key elements. Does not explicitly exclude alternatives or state when not to use, but given sibling tools, the usage is clear.

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