Skip to main content
Glama

Word of Agent

Set which key events count as leads

set_lead_events
Idempotent

Saves the Analytics key events the owner said count as a lead: names from get_lead_events, or an event the site sends that Analytics has not seen yet (it is kept and flagged with what to do: make it fire once, then star it as a key event in Analytics once it shows under Recent events; leads count from then). An empty list clears the choice. Only what the owner decided: never guess which events are leads. Free.

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": {
      "site": "<site>",
      "events": "<events>",
      "by": "<by>"
    },
    "name": "set_lead_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
byYes
siteYes
eventsYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare the write profile (readOnlyHint=false, idempotentHint=true, destructiveHint=false), and the description adds real value on top: an empty list clears state, unknown events are still stored and flagged with a follow-up action, leading only counts from that point, and the call is free. It stops short of stating permissions or what the response contains, but the behavioral picture is well covered.

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 scope, then the fallback case and the clearing rule. The parenthetical about unseen events is dense and slightly run-on, but no sentence is padding.

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?

Output schema exists, so return values need not be described, and the mutation/clearing behavior is spelled out. The gap is the undocumented site and by parameters, which an agent must infer from the sibling's conventions.

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 0%, so the description carries the load for the three parameters and only partially does so: it explains the semantics of events (valid names, new events tolerated, empty clears) but never explains site or by. Two of three required parameters remain undefined across both schema and description.

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 resource ('Saves the Analytics key events ... that count as a lead') and scopes it to owner-declared events only. It also points at the sibling get_lead_events as the source of valid names, so an agent can tell it apart from read-side siblings right away.

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 clear conditions: pass names obtained from get_lead_events, pass an empty list to clear the choice, and never guess which events are leads. It does not contrast with check_lead_event or explain what to do if the owner disagrees, but the usage context is otherwise unambiguous.

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