Skip to main content
Glama

Track contact event

track_event

Record that a contact did something, such as plan_upgraded. Runearc then applies sync rules (tags, fields, lists) and goals. Returns the event with duplicate=true when the idempotency_key was seen before. Errors: contact_not_found (create the contact first), reserved_event_name, invalid_event_name, invalid_properties, properties_too_large, idempotency_key_reused. Next: list_contact_events to confirm it, or create_sync_rule to react to it.

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": {
      "email": "<email>",
      "name": "<name>"
    },
    "name": "track_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe event name: lowercase letters, digits and _ . : - starting with a letter, such as "plan_upgraded". Built-in names (email.opened, tag.added, ...) are reserved.
emailYesEmail of an existing contact the event is about.
propertiesNoEvent properties as a JSON object, up to 16 KB, such as {"plan": "pro", "amount": 49}.
idempotency_keyNoRepeating the same key returns the first event instead of recording a second one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=false), and the description goes well beyond them: it states the side effects that fire (sync rules and goals), the conditional return flag duplicate=true when an idempotency_key repeats, and an enumerated error taxonomy with remediation for contact_not_found. Note that idempotentHint=false is not contradicted — the per-key replay behavior is conditional, not global idempotency.

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?

Purpose and side effects are front-loaded in the first sentence, then return semantics, then errors, then next steps — a sensible order with no filler prose. The error enumeration is dense but each code earns its place by telling the agent what went wrong; the only trim would be slight redundancy between 'reserved_event_name' and 'invalid_event_name'.

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?

With no output schema, the description carries the return burden and does it adequately: it names the returned object and the duplicate flag, plus every error case. It stops short of describing the full event payload shape (fields on the returned event), which would close the last gap for a mutation tool with side effects.

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 and the schema already explains the name format, email, properties size cap, and idempotency_key. The description still adds meaning by tying idempotency_key to an observable output signal (duplicate=true) and by naming reserved_event_name and properties_too_large as consequences of specific fields.

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?

The opening sentence gives a specific verb and resource ('Record that a contact did something') with a concrete example event name, and it immediately discloses the downstream effects (sync rules, tags, fields, lists, goals). An agent can tell this apart from create_event_definition (defines a name) and list_contact_events (reads) 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?

It routes the agent explicitly: 'Next: list_contact_events to confirm it, or create_sync_rule to react to it,' and the contact_not_found error tells the agent to create the contact first. What's missing is any explicit statement of when NOT to use it (e.g., pre-defining an event name versus recording one), but the forward routing is strong.

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.