Skip to main content
Glama

Costory: Your Finops MCP

get_alert_message_execution

Read-only

Get a condensed summary of one alert message run: status, frozen channel and destinations, scheduledFor/sentAt, and per-widget summaries (the ALERT body included). Use when the user asks what an alert notified, or wants to inspect a past alert message. Take the executionId from a firing row's messageExecutionId in get, or list runs via the API. Widgets with drillDown expand via get_alert_message_execution_widget (pass returnImage there for a stored GRAPH_SNAPSHOT PNG). Read-only. Effects: Read-only retrieval or computation; does not change saved resources or send messages. Scope: Authorized Costory workspace only. EXAMPLE: { alertId: "clx…", executionId: "clx…" }

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": {
      "alertId": "<alertId>",
      "executionId": "<executionId>"
    },
    "name": "get_alert_message_execution"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNoOrganization slug. Omit to auto-detect from your account (fails if you belong to multiple orgs).
alertIdYesCost alert id (from search / list_alerts / get).
contextNoOptional context used only for analytics; it does not affect tool execution. Omit it by default. Do not include conversation text, personal information, or workspace data.
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
executionIdYesAlert message execution id — e.g. a firing row's `messageExecutionId` from `get`.
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as \"a customer\". Do not quote the user or include names, emails, or other personal details."New value: +"Optional context used only for analytics; it does not affect tool execution. Omit it by default. Do not include conversation text, personal information, or workspace data."
    • changedInput schema / required
      Previous value: -[
      -  "alertId",
      -  "executionId",
      -  "context"
      -]New value: +[
      +  "alertId",
      +  "executionId"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\""New value: +"A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as \"a customer\". Do not quote the user or include names, emails, or other personal details."
    • changedInput schema / required
      Previous value: -[
      -  "alertId",
      -  "executionId",
      -  "context",
      -  "llm_model"
      -]New value: +[
      +  "alertId",
      +  "executionId",
      +  "context"
      +]
  3. Changed4 schema fields changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\"",
      +  "type": "string"
      +}
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "The model identifier you are running as, for example \"claude-opus-4-8\" or \"gpt-5.2\". Pass \"unknown\" if you are not certain. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "alertId",
      -  "executionId"
      -]New value: +[
      +  "alertId",
      +  "executionId",
      +  "context",
      +  "llm_model"
      +]
  4. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so 'Read-only' is largely a restatement; the added value is the explicit statement that it does not change saved resources or send messages, and the scope restriction to an authorized Costory workspace. It also discloses the shape of what comes back (frozen channel, per-widget ALERT body), which annotations cannot express. Missing are error/not-found behavior and any limits on payload size for large alerts.

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-loads the purpose, then usage, then alternatives, then a compact example — a sensible order. Slight redundancy between 'Read-only.' in the body and the 'Effects: Read-only retrieval...' line, and the example restates two required params already implied, but nothing is seriously wasteful.

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 six-parameter read tool with no output schema, the description adequately covers purpose, id sourcing, drill-down routing, and the contents of the response. Gaps remain around failure modes (invalid or expired executionId) and whether per-widget summaries are truncated, which matter given the absent output schema.

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 six parameters, including the analytics-only context/llm_model/conversation_id, are already documented in the schema. The description's provenance note for executionId and the example object largely duplicate what the schema fields already say. Baseline 3 is appropriate; it does not add syntax or semantics beyond the schema.

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 ('Get a condensed summary of one alert message run') and enumerates the returned fields: status, frozen channel and destinations, scheduledFor/sentAt, per-widget summaries. It also distinguishes itself from the sibling that handles deeper drill-down, so an agent can tell the two apart 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use triggers ('what an alert notified', 'inspect a past alert message'), tells where the required executionId comes from (a firing row's messageExecutionId from get, or listing runs via the API), and routes to get_alert_message_execution_widget for widgets with drillDown. That is when, where-from, and the alternative in three sentences.

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.

Resources