Skip to content
mcp-server-instructions logo

MCP Server Instructions

mcp-server-instructions

Write effective MCP server instructions for tool compaction support. Use when creating or updating the `instructions` parameter in MaaSProtectedFastMCP server initialization. Helps LLMs understand when to search for tools, workflow patterns, and cross-feature relationships.

SKILL.md

Full skill instructions

MCP Server Instructions

Write workflow-focused server instructions that help LLMs understand your server's capabilities.

What Instructions Are

The instructions field is an optional string in MCP's InitializeResult that gets injected into the LLM's system prompt. It helps models understand:

  • How to use your server's tools together
  • When to search for specific tools (with tool compaction)
  • Operational constraints and patterns

Evidence: In controlled testing, well-written instructions improved task success from 60% to 85% - a 25% improvement.

Template

instructions="""[Server name] for [domain] operations.

KEY WORKFLOWS:
- [Name]: [tool1] -> [tool2] -> [tool3]
- [Name]: [tool1] -> [tool2] (when [condition])

CONSTRAINTS:
- [Limit or behavior users need to know]
- [Input format quirks]
- [Auto-pagination or chunking behavior]"""

What to Include

Focus on what individual tool descriptions don't convey:

IncludeExample
Cross-tool relationships"Always call authenticate before any fetch_* tools"
Operational patterns"Search results expire after 10 minutes"
Constraints"Rate limited to 100 requests/​minute"
Sequencing"Use get_metadata before fetching large content"
Format flexibility"IID accepts: #72, !72, '72', 72"

What to Avoid

AvoidWhyInstead
Repeating tool descriptionsAlready in tool docstringsShow how tools work together
Marketing language"comprehensive", "powerful" add no valueState capabilities factually
Lengthy manualsInstructions should be <500 charsBe concise and actionable
Listing all toolsTools are discoverableOnly mention in workflow context

Bad: "The search tool searches for files" Good: "Use search before read to validate paths. Results expire after 10 min."

Process

  1. Find tools - Read server.py, locate all @app.tool() decorators
  2. Group by workflow - Which tools are used together?
  3. Find dependencies - Which tools need output from others?
  4. Note constraints - Pagination, size limits, rate limits, formats
  5. Identify non-obvious behaviors - Auto-pagination, caching, chunking

Common Patterns

  • Search -> Details: search_X -> get_X
  • List -> Inspect -> Act: list_X -> get_X -> update_X
  • Metadata First: get_X_metadata -> get_X_content (for large content)
  • Two-Step Updates: get_editmeta -> update_X (when schema required)
  • Hierarchical Browse: list_parent -> get_parent -> list_children

Examples

Good

instructions="""GitLab server for repository and CI/​CD operations.

KEY WORKFLOWS:
- Code Review: list_merge_requests -> get_merge_request -> get_merge_request_diffs
- Pipeline Debug: list_pipelines_jobs -> get_job_log_metadata -> get_job_log_paginated
- File Browse: search_repositories -> get_repo_tree -> get_file_contents

CONSTRAINTS:
- MR IID accepts: #72, !72, "72", 72
- Job logs >500KB auto-paginate to last 2000 lines
- Use get_job_log_metadata before fetching large logs"""

Bad

# Too vague - doesn't help LLM understand capabilities
instructions="GitLab MCP Server that validates tokens via Authorization Server introspection"

# Marketing fluff - no actionable information
instructions="""This is a comprehensive GitLab integration server that provides
powerful capabilities for working with GitLab repositories..."""

# Tool listing - just repeats what's already in tool descriptions
instructions="""Available tools: search_repos, list_projects, get_project,
get_file, list_commits, get_commit, list_issues, get_issue..."""

Limitations

Instructions are probabilistic guidance, not deterministic rules. They improve LLM behavior but cannot guarantee it. Don't rely on instructions for security-critical or privacy-sensitive enforcement.

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
Imagica logo
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View