Skip to main content
Glama

Airlok

Замер скорости у посетителей

set_speed_insights
Idempotent

Включить или выключить замер скорости у посетителей сайта: Airlok дописывает на страницы маленький скрипт без cookies, он присылает показатели Web Vitals. На хостинге начинает работать в течение 15 секунд, на своём сервере — в течение пары минут (скрипт дописывает nginx сервера, нужен свежий агент), без публикации. На сервере в строгом режиме замер недоступен. Меняйте, только если пользователь попросил.

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": {
      "app": "<app>",
      "enabled": "<enabled>"
    },
    "name": "set_speed_insights"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesid приложения, его имя или «сервер/имя»
enabledYes

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (idempotent, non-destructive write), the description discloses substantial side effects and timing: nginx on the customer's server is modified, a fresh agent is required, activation takes 15 seconds on hosting versus a couple of minutes on self-hosted servers, no publication is needed, and the injected script is cookieless. These are exactly the operational facts an agent needs before flipping the toggle.

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 action and its object are front-loaded, and each clause carries operational signal (script behavior, activation latency, strict-mode exclusion, change caution). It is a dense single paragraph that could be split into bullet points for faster scanning, but nothing is 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 two-parameter toggle with no output schema, the definition covers preconditions, side effects, timing, and change discipline. The only gap is that it never indicates what the call returns on success, which an agent confirming the toggle would want to know.

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?

The schema documents 'app' but leaves 'enabled' bare at 50% coverage; the description's 'включить или выключить' framing supplies the meaning of that boolean. It adds nothing further about app identifier formats beyond what the schema already states.

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 opens with a specific verb pair and resource: enable or disable visitor speed measurement, then explains concretely what that means (Airlok injects a small cookieless script that reports Web Vitals). This clearly separates it from readers like check_speed or get_speed, though it never names a sibling explicitly.

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?

It supplies an explicit caution ('Меняйте, только если пользователь попросил') and a hard precondition ('На сервере в строгом режиме замер недоступен'), which tells the agent both when to act and when the toggle will not work. It stops short of naming an alternative tool for reading existing measurements.

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