Skip to main content
Glama

nevent_switch_tenant

Switch the active tenant for this session. All subsequent queries (analytics, segments, campaigns, paid media) will use the specified tenant's data. SUPERADMIN: this mutates your user record in the database — the switch PERSISTS. Always call nevent_reset_tenant when cross-tenant work is done to avoid leaving your account pointing at another tenant. OWNER/ADMIN/STAFF: session-scoped only; you can only switch to tenants in your hierarchy subtree (max 3 levels deep). Use nevent_list_tenants to discover available tenant IDs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tenant_idYesThe tenant ID to activate for this MCP session. All subsequent analytics, segmentation, campaign, and paid media queries will use this tenant's data. Use nevent_list_tenants to discover available tenant IDs. SUPERADMIN: this mutates your user record in the database; call nevent_reset_tenant when done. OWNER/ADMIN/STAFF: session-scoped only (can only switch to descendants in your tenant hierarchy).

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already carry readOnlyHint=false/destructiveHint=false, so the description's job was to add real behavioral context—and it overdelivers. It discloses that SUPERADMIN invocations mutate the user record and PERSIST, that the same call is session-scoped for other roles, that reset is mandatory to avoid lingering state, and that OWNER/ADMIN/STAFF can only reach descendants within 3 hierarchy levels. This transforms a 'switch context' tool from potentially surprising to fully predictable. No annotation contradiction detected.

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?

Purpose first, effect scope second, then role-specific behavior in priority order, then the cleanup mandate, then the discovery pointer. Every sentence carries distinct, non-redundant information and the most safety-critical facts (persistence, reset) are front-loaded. Dense but not bloated.

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 single-parameter, no-output-schema state mutation tool, nothing needed by a caller is missing: the action, the side effects, the role conditions, the depth limit, the cleanup requirement, and the way to obtain valid IDs. The lack of an output schema is acceptable since a switch tool's return value is near-irrelevant next to the behavioral caveats the description already exhaustively covers.

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%—the tenant_id param already restates session scoping, persistence warning, role limits, and the list_tenants pointer. With that coverage the baseline is 3. The description earns one additional point by supplying the 'max 3 levels deep' subtree constraint, which is absent from the schema and which materially affects whether a call will succeed.

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 ('Switch the active tenant for this session') and immediately defines the blast radius ('All subsequent queries... will use the specified tenant's data'). It separates the tool from siblings by naming nevent_reset_tenant and nevent_list_tenants and by clarifying exactly which tenant-refining behavior it introduces—a session-wide context change rather than a one-off query param.

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?

Gives explicit when-to-use and when-done guidance: 'Always call nevent_reset_tenant when cross-tenant work is done' and 'Use nevent_list_tenants to discover available tenant IDs.' Role-based conditions (SUPERADMIN vs OWNER/ADMIN/STAFF) read like a decision rule, so the agent knows not only when to call it but what to do before and after. This is the gold standard.

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.6/5.0
Disambiguation3/5

Most domain groups are distinct, but the campaign reporting cluster has three tools returning overlapping engagement metrics (get_campaign, get_campaign_metrics, campaign_report), and paid_ads_status vs paid_ads_health have fuzzy boundaries. The detailed descriptions mitigate but do not eliminate the risk of an agent calling the wrong tool.

Naming Consistency3/5

All names use the nevent_ prefix and snake_case, and most CRUD operations follow verb_noun. However, several tools reverse the order or drop the verb entirely (segment_preview, segment_execute, campaign_report, paid_ads_status, analytics_query), making the convention mixed but still readable.

Tool Count1/5

With 59 tools, this is far above the 25+ 'too many' threshold and falls into the 50+ extreme range. The broad domain coverage explains some of the size, but for an agent the set is likely to be overwhelming and harder to navigate than a more focused server.

Completeness3/5

The core marketing workflow (segments, templates, campaign creation, quote, schedule, metrics) is covered, but there is no way to update, cancel, or delete a campaign, and templates and segments lack delete operations. These are notable lifecycle gaps that agents will hit when users want to change or clean up resources.