Skip to main content
Glama

fire_billing_event

DestructiveIdempotent

Fire a billing event when acting on a sponsored result. Call at each funnel stage (context, shortlist, recommendation, or purchase).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenYesBid token from sponsored_search results that authorizes billing
event_typeYesStage of engagement: context_inclusion (shown), shortlist (saved), recommendation (mentioned), or purchase (bought)
order_valueNoFinal order value in USD (used for purchase event to calculate affiliate fee)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successNo
brand_idNo
timestampNoISO 8601 timestamp of billing event
charge_usdNoAmount charged for this event
event_typeNo
product_idNo
receipt_idNoUnique billing receipt identifier
campaign_idNo

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the side-effect nature is covered. The description adds the behavioral nuance that it fires at each funnel stage (implying multiple calls), which is useful but does not go beyond that. No contradiction with annotations.

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?

Two sentences with zero filler. The first sentence states the purpose and trigger; the second lists the exact stages. All information is front-loaded and each word earns its place.

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 an output schema present, return details are not needed. The description covers when to call and the trigger context, and the schema covers parameter semantics. It is missing only an explicit note that order_value is relevant for purchase events, but that is inferable from the schema. Given the tool's simplicity, this is adequate.

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% — all three parameters (token, event_type, order_value) are already described clearly in the schema. The description does not add extra meaning beyond what the schema provides, so it meets the baseline.

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 description states a specific verb ('fire'), a resource ('billing event'), and the exact context ('when acting on a sponsored result'). It lists the funnel stages (context, shortlist, recommendation, purchase), making the purpose unambiguous and distinct from sibling tools like sponsored_search, which likely generates results rather than billing.

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?

The description explicitly says 'Call at each funnel stage' and enumerates the stages, giving clear when-to-use guidance. It does not explicitly state when not to use it or mention alternatives, but the context is tightly scoped to sponsored result interactions, so the usage window is well defined.

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.

TDQS

A3.7/5.0
Disambiguation5/5

Each tool targets a distinct function: sponsored search, skin profiling, routine building, brand content, billing, and preference retrieval. There is no overlap or ambiguity between them, and each a clear purpose.

Naming Consistency3/5

Names mix conventions: some follow verb_noun (fire_billing_event, get_shopper_prefs), while others are noun phrases (brand_spotlight, routine_builder, skin_match, sponsored_search). The pattern is not fully consistent, but still readable and understandable.

Tool Count5/5

With 6 tools, the set is well-scoped for a beauty advertising server. Each tool serves a distinct step in the sponsored content pipeline, and the count feels appropriate without being excessive or thin.

Completeness4/5

The server covers the core lifecycle of sponsored beauty recommendations: search, profile building, routine creation, brand content, billing, and user preferences. Minor gaps exist (e.g., no update/delete for preferences), but the surface is largely complete for its purpose.

Resources