Skip to main content
Glama

add_market

Add a market to a client's AI-visibility project: a country and a language (or a language alone) its prompts are scanned in, with its own prompts and competitors. prompts are the reviewed prompt texts (from translate_prompts, edited, or written in that language); without them the market starts empty. Competitors default to the project's list; competitors gives the market its own, against which only its share of voice is measured. The preview states what one scan of the market uses (prompts × runs × the engines' check weights) and when it is first scanned. Requires MCP write actions; without confirm:true it returns a preview. Writes an internal timeline note.

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": {
      "market": "<market>"
    },
    "name": "add_market"
  }
}

Input Schema

NameRequiredDescriptionDefault
marketYesThe new market as a locale: "es-ES", "en-US", or a language alone such as "es".
confirmNoSet true to apply. Omit for a preview. With confirm:true, also pass the preview's previewToken.
promptsNoThe prompts to track in this market, in its language, reviewed by the user. Omit = start without prompts.
clientIdNoClient id — uses the AI-Visibility project its Overview opens in the app (the newest).
projectIdNoAI-Visibility project id.
competitorsNoThe market's own competitor list (brand names). Omit = the project's competitors.
previewTokenNoWith confirm:true: the previewToken from this tool's preview (valid 15 minutes, once, for exactly the previewed arguments).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / prompts / items / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: the preview-then-confirm flow, the cost model revealed by the preview (prompts × runs × engine check weights), first-scan timing, the side effect of writing an internal timeline note, and the consequence of omitting prompts (market starts empty) versus supplying competitors (only that market's share of voice is measured). None of this is derivable from readOnlyHint=false / destructiveHint=false / openWorldHint=false.

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-loads the purpose, then layers defaults, cost preview, and write gating in a dense but orderly block. Every sentence carries information; the density is high enough that an agent must parse carefully, but there is no filler.

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

Completeness4/5

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

For a 7-parameter mutation with no output schema, the description covers the important unknowns: side effects, preview gating, defaults, and the cost preview. It does not say what a successful call returns (e.g., a market id), which is the one remaining gap given the absence of an output schema.

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 the baseline is 3, but the description adds genuine meaning: prompts must be in the market's language and user-reviewed, competitors substitution changes what gets measured, and confirm ties into the preview token flow. It stops short of elaborating the locale format or token lifetime, which the schema already covers.

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?

Names a specific verb and resource (add a market) and immediately defines what a market is: a country+language locale (or language alone) with its own prompts and competitors. This is distinguishable from siblings like translate_prompts and add_tracking_prompt without opening any schema.

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?

States the upstream source for prompts explicitly ("from translate_prompts, edited, or written in that language") and clarifies the default-vs-override decision for competitors. It also states the write prerequisite ("Requires MCP write actions; without confirm:true it returns a preview"). No explicit when-not-to-use guidance, but the decision context is clear.

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