Skip to main content
Glama
sharozdawa

ai-visibility-mcp

get_recommendations

Provides prioritized, actionable suggestions to improve a brand's AI visibility across major platforms based on current performance and industry best practices.

Instructions

Get actionable recommendations to improve a brand's AI visibility. Prioritized suggestions based on current score and industry best practices.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
brandYesThe brand name to get recommendations for
current_scoreNoCurrent visibility score (0-100) if known. If not provided, a quick check will be performed.

Implementation Reference

  • The implementation of the get_recommendations tool, which calculates (or accepts) a visibility score and returns prioritized recommendations.
    server.tool(
      "get_recommendations",
      "Get actionable recommendations to improve a brand's AI visibility. Prioritized suggestions based on current score and industry best practices.",
      {
        brand: z.string().describe("The brand name to get recommendations for"),
        current_score: z
          .number()
          .min(0)
          .max(100)
          .optional()
          .describe(
            "Current visibility score (0-100) if known. If not provided, a quick check will be performed."
          ),
      },
      async ({ brand, current_score }) => {
        let score = current_score;
    
        // If no score provided, do a quick check
        if (score === undefined) {
          const timeBucket = Math.floor(Date.now() / 3600000);
          const results: PlatformResult[] = [];
    
          for (const platformId of PLATFORM_IDS) {
            const rng = seededRandom(
              `${brand}-recscore-${platformId}-${timeBucket}`
            );
            const queries = generateQueries(brand, [], 2, rng);
            const queryResults: QueryResult[] = [];
    
            for (const query of queries) {
              const queryRng = seededRandom(
                `${brand}-recscore-${query}-${platformId}-${timeBucket}`
              );
              const result = simulateCheck(
                brand,
                query,
                platformId,
                [],
                queryRng
              );
              queryResults.push({ query, ...result });
            }
    
            results.push(aggregatePlatformResult(platformId, queryResults));
          }
    
          score = calculateScore(results);
        }
    
        // Select and prioritize recommendations
        const allRecs = RECOMMENDATIONS.map((r) => ({
          ...r,
          recommendation: r.recommendation.replace(/{brand}/g, brand),
          details: r.details.replace(/{brand}/g, brand),
        }));
    
        // More recommendations for lower scores
        let selectedRecs;
        if (score >= 70) {
          selectedRecs = allRecs.filter(
            (r) => r.priority === "low" || r.priority === "medium"
          );
        } else if (score >= 40) {
          selectedRecs = allRecs;
        } else {
          // Low score: prioritize high-priority items first
          selectedRecs = [
            ...allRecs.filter((r) => r.priority === "high"),
            ...allRecs.filter((r) => r.priority === "medium"),
            ...allRecs.filter((r) => r.priority === "low"),
          ];
        }
    
        const output = {
          brand,
          currentScore: score,
          totalRecommendations: selectedRecs.length,
          recommendations: selectedRecs.map((r, i) => ({
            number: i + 1,
            priority: r.priority,
            category: r.category,
            recommendation: r.recommendation,
            details: r.details,
          })),
          summary:
            score >= 70
              ? `${brand} has good AI visibility. Focus on advanced strategies to maintain and extend your lead.`
              : score >= 40
              ? `${brand} has moderate AI visibility. Implementing these recommendations can significantly improve your presence across AI platforms.`
              : `${brand} has low AI visibility. Start with the high-priority recommendations to establish a strong foundation.`,
        };
    
        return {
          content: [
            {
              type: "text" as const,
              text: JSON.stringify(output, null, 2),
            },
          ],
        };
      }
    );
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions 'actionable recommendations' and 'prioritized suggestions', implying a read-only operation that returns advice, but does not disclose critical details like whether it performs a 'quick check' (as hinted in the schema), rate limits, authentication needs, or what happens if the brand is unknown. For a tool with no annotations, this is a significant gap.

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 concise and front-loaded, consisting of two clear sentences that efficiently convey the tool's purpose and prioritization logic. There is no wasted text, though it could be slightly more structured by explicitly mentioning the 'brand' parameter.

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 tool's moderate complexity (2 parameters, no output schema, no annotations), the description is minimally adequate. It covers the core purpose but lacks usage guidelines, behavioral details, and output information. With no annotations to fill gaps, the description should do more to be complete, but it meets a basic threshold.

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 100%, so the schema fully documents both parameters ('brand' and 'current_score'). The description adds no parameter-specific semantics beyond implying that recommendations are based on 'current score and industry best practices', which aligns with the schema but does not provide additional syntax or format details. Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Get actionable recommendations to improve a brand's AI visibility' with 'Prioritized suggestions based on current score and industry best practices.' It specifies the verb ('Get'), resource ('recommendations'), and scope ('improve a brand's AI visibility'), but does not explicitly differentiate from sibling tools like 'check_brand_visibility' or 'get_visibility_score', which focus on assessment rather than improvement suggestions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It mentions 'current score and industry best practices' but does not specify prerequisites, exclusions, or when to choose this over siblings such as 'check_brand_visibility' or 'compare_brands'. This leaves the agent without clear usage context.

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/sharozdawa/ai-visibility'

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