Skip to main content
Glama

Costory: Your Finops MCP

get_dashboard_widget_image

Read-only

Render a saved Costory dashboard widget as a PNG using its saved query and dashboard filters. Use when the user requests an image of that widget. Applies the same dashboard conditionsCel merge as get_dashboard_widget_data. Returns a temporary chart URL and, by default, also attaches the PNG as inline base64 when available. Set includeBinaryImage: false for the URL only. Link to the dashboard instead if the user wants the live chart. Does NOT work for text or table-only widgets (returns UNSUPPORTED_WIDGET). For an ad-hoc explorer chart (not a saved widget), use query with returnGraphImage: "link" or "base64" instead. Effects: Read-only retrieval of the saved widget. Renders a temporary PNG for the response without modifying the saved dashboard or widget or sending a message. Scope: Authorized Costory workspace data only; the chart URL is returned to the caller, not posted or sent to a recipient. EXAMPLE: "Show my EC2 cost widget as an image" (after get returned widgetId "wid_123") → { dashboardId: "clx9abc", widgetId: "wid_123" }

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": {
      "dashboardId": "<dashboardId>",
      "widgetId": "<widgetId>"
    },
    "name": "get_dashboard_widget_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNoOrganization slug. Omit to auto-detect from your account (fails if you belong to multiple orgs).
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.
widgetIdYesWidget id (from get).
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.
dashboardIdYesDashboardV2 id.
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.
includeBinaryImageNoReturn a temporary PNG URL. If true (default), also attach the PNG as inline base64 when available. This does not change the saved dashboard or widget.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 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 / properties / includeBinaryImage / description
      Previous value: -"If true (default), the response includes a base64-encoded PNG image block in addition to the share/image URLs. Set to false to receive URLs only (smaller payload for clients that don't display inline images)."New value: +"Return a temporary PNG URL. If true (default), also attach the PNG as inline base64 when available. This does not change the saved dashboard or widget."
    • changedInput schema / required
      Previous value: -[
      -  "dashboardId",
      -  "widgetId",
      -  "context"
      -]New value: +[
      +  "dashboardId",
      +  "widgetId"
      +]
  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: -[
      -  "dashboardId",
      -  "widgetId",
      -  "context",
      -  "llm_model"
      -]New value: +[
      +  "dashboardId",
      +  "widgetId",
      +  "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: -[
      -  "dashboardId",
      -  "widgetId"
      -]New value: +[
      +  "dashboardId",
      +  "widgetId",
      +  "context",
      +  "llm_model"
      +]
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond readOnlyHint/destructiveHint=false and openWorldHint=false, it discloses concrete behavior: the same conditionsCel merge as get_dashboard_widget_data, a temporary chart URL returned plus inline base64 by default, the includeBinaryImage: false escape hatch, the UNSUPPORTED_WIDGET failure mode, and an explicit 'renders a temporary PNG without modifying the saved dashboard' scope statement.

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?

Content is front-loaded and information-dense, with the core purpose, alternatives, and constraints in the first few sentences. It is somewhat longer than needed and repeats the temporary-URL return in both the opening paragraph and the Effects/Scope block, which is minor redundancy rather than a readability problem.

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?

With no output schema, the description steps in to describe return values (temporary URL, optional inline base64), the error case (UNSUPPORTED_WIDGET), and side-effect scope. For a 7-parameter read-only render tool this covers everything an agent needs to call it correctly.

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%, so the baseline is 3. The description goes beyond it by explaining the includeBinaryImage trade-off ('Set includeBinaryImage: false for the URL only') and by supplying a worked example wiring dashboardId and widgetId to a real request, though it says nothing about slug or the analytics-only params such as llm_model and conversation_id.

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 and resource ('Render a saved Costory dashboard widget as a PNG using its saved query and dashboard filters') and immediately distinguishes itself from get_dashboard_widget_data and from query with returnGraphImage. An agent can identify the tool without opening the 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?

It names explicit when-to-use ('when the user requests an image of that widget'), when-not ('Does NOT work for text or table-only widgets'), and routes to alternatives for both related needs: get_dashboard_widget_data for data, query with returnGraphImage for ad-hoc charts, and the live dashboard link when the user does not need a static image.

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