Skip to main content
Glama

test_broadcast_audience

Read-only

Test a JavaScript broadcast audience program against inline fake records and expected attendee IDs or errors. First read get_skill_broadcast_filters. Supply attendees, photos with associations, provider statuses, inbound messages and event settings; all metrics use production resolvers. Returns per-case pass/fail, missing/unexpected IDs, logs and errors synchronously. Run passing tests for every new or changed filter before the live-data preview.

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": {
      "program": "<program>",
      "cases": "<cases>"
    },
    "name": "test_broadcast_audience"
  }
}

Input Schema

NameRequiredDescriptionDefault
casesYesIndependent synthetic datasets and expected audience memberships for the same program.
programYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

The annotations already declare readOnly, non-destructive, closed-world behavior, so the description's real contribution is that execution is synchronous, that results come back per case as pass/fail with missing/unexpected IDs, logs and errors, and that all metrics run through production resolvers. It does not mention the 20-case cap, runtime limits, or cost of running many cases, so it stops short of full disclosure.

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?

Five tight sentences in a deliberate order: what it does, the prerequisite read, the inputs, the return shape, and the workflow rule. Every sentence carries distinct information and the purpose is front-loaded.

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 tool with a deeply nested schema and no output schema, the description covers the prerequisite, the input composition, the synchronous return contents, and the workflow position. Remaining gaps (case-count limit, runtime) are enforced or implied by the schema.

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 50% and the nested schema is very large, but the description compensates by enumerating the categories of fake data the cases must supply (attendees, photos with associations, provider statuses, inbound messages, event settings) and by naming the expected outcomes (expected IDs or errors). It still leaves many individual nested fields such as optedIn, burnedProviders, entryTimestamps and sendingProviderOrder unexplained.

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 names a specific verb (test), a specific resource (a JavaScript broadcast audience program), and the exact input form (inline fake records plus expected attendee IDs or errors), which separates it from the live-data preview siblings. An agent can tell instantly that this is a sandboxed test harness rather than a real preview or send.

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?

It states a hard prerequisite ('First read get_skill_broadcast_filters') and an explicit workflow rule ('Run passing tests for every new or changed filter before the live-data preview'), which routes the agent to the preview tools for live data. This is a clear when-to-use plus a named alternative, not an implied one.

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.