Skip to main content
Glama
Firenook

Firenook

Official

eventarc_publish

Destructive

Publish a custom CloudEvent to an Eventarc channel, defaulting to the Firebase channel, to trigger matching functions and report which received it and how each call ended.

Instructions

Publish a custom CloudEvent to an Eventarc channel (default the project's Firebase channel), as getEventarc().channel().publish() does; every matching function runs, and the report says which received it and how each call ended (after waiting about 3 s at most). To deliver a received event again, use eventarc_replay_event.

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": {
      "type": "<type>"
    },
    "name": "eventarc_publish"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNoEvent data as JSON
textNoEvent data as plain text (instead of data)
typeYesCloudEvent type, e.g. com.example.order.shipped
sourceNoCloudEvent source; default firenook-mcp
channelNoFull channel name or google; default projects/<project>/locations/us-central1/channels/firebase
subjectNoCloudEvent subject
attributesNoExtension attributes (lowercase names, string values)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and not-readOnly; the description adds real behavior beyond them: fan-out ('every matching function runs'), a bounded latency ('waiting about 3 s at most'), and what the report contains. The main gap is that it never states the triggering is irreversible or what happens to functions that time out.

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 action and target, followed by a short alternative pointer. The parenthetical asides make the first sentence dense but every clause carries information; nothing is filler.

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?

For a seven-parameter mutation tool with no output schema, the description covers side effects, latency bound, and return contents, which is the information an agent most needs. It could say more about failure modes or whether repeated publishes duplicate deliveries, but the core is covered.

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 coverage is 100%, so all seven parameters are already documented, including the channel default and the data-vs-text distinction. The description adds only the default Firebase channel framing, which largely restates the schema, so baseline 3 applies.

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 ('Publish a custom CloudEvent to an Eventarc channel') plus the default channel target, and explicitly names the sibling it is not (eventarc_replay_event). An agent can distinguish this from replay without opening either 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?

Gives an explicit routing rule for the closest alternative: 'To deliver a received event again, use eventarc_replay_event.' It does not address when to prefer pubsub_publish over eventarc_publish, nor when a non-default channel should be chosen, so guidance is clear but not exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.