Skip to main content
Glama

Store the Bing Webmaster API key

set_bing_key
DestructiveIdempotent

Tests the Bing Webmaster Tools API key against Bing (GetUserSites) and, only if Bing accepts it, stores it for the Organiq account (one key per account; it serves every property with a Bing site set by set_bing_site). The key is generated by the user in Bing Webmaster Tools under Settings → API access ("Configurações → Acesso à API") and pasted in the chat; it is stored encrypted, never returned by any tool and not logged. Format: 16–128 letters, digits, "-" or "_". Bing refuses the key → bing_key_invalid and the previously stored key, if any, stays; Bing down or slow → upstream_unavailable and nothing is stored (retry in a few minutes). Only an owner or admin of the account can store it (insufficient_scope otherwise). Returns { set, setAt, bingSites }: bingSites are the site URLs Bing lists for the key, to check the value given to set_bing_site. Needs the write scope (mcp:write). Use it after set_bing_site, or when get_bing_performance / check_connection report the key missing. Guide: https://organiqgeo.com/connect/bing. / Testa a chave da API do Bing no próprio Bing e só grava, cifrada, se ele aceitar; chave recusada não substitui a anterior.

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": {
      "key": "<key>"
    },
    "name": "set_bing_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesAPI key generated in Bing Webmaster Tools (Settings → API access) and pasted by the user.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=true, idempotentHint=true) by disclosing the validate-before-write flow, encryption at rest, that the key is never returned or logged, one-key-per-account semantics, and precise failure modes (bing_key_invalid preserves the previous key; upstream_unavailable stores nothing, retry later). Minor gap: it does not state plainly that a successful store replaces the existing key, though 'one key per account' plus the preservation clause implies it.

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?

Dense but front-loaded: the validate-then-store core comes first, followed by provenance, failure modes, permissions, and return shape in a logical order. The trailing Portuguese sentence restates content already given in English, which is minor waste for an agent reader.

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?

For a single-parameter mutation with no output schema, the description covers everything needed: side effects, error codes, permission requirement, idempotency, replacement semantics, and even the return shape ({ set, setAt, bingSites }) with how bingSites relates to set_bing_site.

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 real meaning beyond the schema: the expected character class and tighter length bound (16–128 vs. the schema's 1–200) and the provenance of the value (pasted from Bing's API access page). The tighter bound is a de facto server-side constraint the schema alone would not convey.

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 compound action: validates the Bing Webmaster API key against Bing via GetUserSites, then stores it encrypted for the Organiq account. It explicitly distinguishes the resource from the sibling set_bing_site (which sets a Bing site per property) and from the getters that report a missing key.

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

Usage Guidelines5/5

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

Gives explicit timing guidance: 'Use it after set_bing_site, or when get_bing_performance / check_connection report the key missing,' plus the prerequisite that the key must first be generated in Bing's Settings → API access. It also states the authorization precondition (owner or admin, mcp:write scope).

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.