Skip to main content
Glama

Impressions needed for a click target

impressions_needed_for_clicks
Read-onlyIdempotent

Calculates how many impressions a click target needs at a CTR you choose (clicks ÷ CTR). Use it to size a goal; project_clicks_at_ctr goes the other way. The result is a modelled value. With a CTR of 0 there is no answer, and the result gives the reason instead of a number.

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": {
      "clicks": "<clicks>",
      "ctrPercent": "<ctrPercent>"
    },
    "name": "impressions_needed_for_clicks"
  }
}

Input Schema

NameRequiredDescriptionDefault
clicksYesThe click target, a whole number.
ctrPercentYesCTR as a percentage from 0 to 100: 3 means 3%, 0.5 means 0.5%. Not a fraction.

Output Schema

NameRequiredDescriptionDefault
inputsYes
versionsYes
impressionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: the output is a modelled value, and a CTR of 0 yields a reason rather than a number — a non-obvious response shape. Return structure itself is covered by the output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the calculation and formula, then the sibling routing, then the edge case. No filler and nothing repeated from structured fields.

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 two-parameter pure calculation with full schema coverage, an output schema, and complete annotations, everything an agent needs is present: what it computes, when to pick it over the sibling, and how the CTR=0 failure surfaces.

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%, and the schema already clarifies that ctrPercent is a percentage, not a fraction. The description's formula (clicks ÷ CTR) reinforces the relationship between the two parameters but adds no syntax or format detail the schema lacks. Baseline 3 applies when the schema carries the parameter documentation.

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 ('calculates how many impressions a click target needs') and even supplies the formula (clicks ÷ CTR). It explicitly distinguishes itself from the sibling project_clicks_at_ctr by direction, so an agent can choose between them without opening a schema.

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?

States the intent ('use it to size a goal') and names the concrete alternative plus how it differs ('project_clicks_at_ctr goes the other way'). It also covers the degenerate case (CTR of 0) so the agent knows not to expect a number there.

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.