Skip to main content
Glama

Add AI visibility prompts

add_visibility_prompts

Makes prompts Active for a site, the same as confirming the prompts on the AI Visibility page: the Suggested prompts of selectedPromptIds (from the suggestions section of get_visibility) and the prompts the user writes in customPrompts, each with its topic. A custom text that matches an Archived prompt makes that prompt Active again. Refusals: active_prompt_limit_reached (the Active prompts pass the plan’s Active limit), setup_branded_limit_exceeded (the call adds more than one prompt that names the brand, or one when the market already tracks one), prompt_not_found (a selectedPromptId that is not a selectable Suggested prompt of the market), saved_prompt_limit_reached (the market has its most saved prompts) and check_running (a check runs now). The result gives every Active prompt of the market and the custom prompts the tool skipped, with the reason (already_active, paused, or edit: a Suggested prompt that a prompt edit made, which only update_visibility_prompt can change). It starts no check and reserves no observations. Pass at least one prompt.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "projectId": "<projectId>"
    },
    "name": "add_visibility_prompts"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectIdYesSite to act on, from list_sites.
customPromptsNoPrompts the user writes, each with its topic.
selectedPromptIdsNoSuggested prompts to make Active, by promptId.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), it enumerates the exact failure modes (active_prompt_limit_reached, setup_branded_limit_exceeded, prompt_not_found, saved_prompt_limit_reached, check_running) and the side effects it does not cause ("starts no check and reserves no observations"). It also describes the return payload and the skip reasons (already_active, paused, edit), which is unusually rich disclosure for a mutation tool.

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?

Front-loaded with the core action and the primary routing fact, and nearly every clause carries operational content. The refusal enumeration makes the single paragraph dense and slightly run-on, which costs it the top score, but there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description takes on the job of describing the result (all Active prompts of the market plus skipped custom prompts and reasons) and it does so explicitly. Combined with the named preconditions and error codes, an agent has enough to call it correctly and interpret outcomes.

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

Parameters4/5

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

Schema coverage is 100%, so per-property docs already exist; the description still adds meaning by explaining that selectedPromptIds must be 'a selectable Suggested prompt of the market' and that a customPrompts text matching an Archived prompt re-activates it. That's real semantic value beyond maxLength/topic constraints, though array-level ordering/dedup behavior is not addressed.

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?

States a specific verb and effect ("Makes prompts Active for a site") plus the two input channels it acts on, and ties the behavior to the AI Visibility page's confirmation action. It also names the sibling that owns the adjacent operation ("only update_visibility_prompt can change"), so the agent can separate this from update_visibility_prompt without inspecting schemas.

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?

Gives a concrete precondition ("Pass at least one prompt"), points at get_visibility's suggestions section as the source of selectedPromptIds, and routes the edit case to update_visibility_prompt. It stops short of an explicit when-not-to-use statement or a clear 'use start_visibility_check instead' alternative, which keeps it below a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources