We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sbroenne/mcp-server-excel'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
ExcelRangePrompts.cs•722 B
using System.ComponentModel;
using Microsoft.Extensions.AI;
using ModelContextProtocol.Server;
namespace Sbroenne.ExcelMcp.McpServer.Prompts;
/// <summary>
/// MCP prompts for teaching LLMs about Excel range operations,
/// particularly number formatting with locale-awareness.
/// </summary>
[McpServerPromptType]
public static class ExcelRangePrompts
{
[McpServerPrompt(Name = "excel_range_number_formatting_guide")]
[Description("Guide for number formatting: When to use SetNumberFormat (locale-aware) vs SetNumberFormatCustom (raw format codes)")]
public static ChatMessage NumberFormattingGuide()
{
return new ChatMessage(ChatRole.User, MarkdownLoader.LoadPrompt("excel_range.md"));
}
}