Skip to main content
Glama
chaandannn

nable (finops-mcp)

slice_costs

Slice cloud costs by custom dimensions, filters, and date ranges. Returns cost data and chart cards for dashboard pinning.

Instructions

Slice cloud cost any way you want. This is the flexible, moldable cost query: group and filter by ANY combination of dimensions, over any date range, instead of a fixed set of canned reports. Returns both the numbers and a card describing how to chart them (which the UI can render and pin to the dashboard).

Dimensions (group by, up to 3): ServiceName, ServiceCategory, ProviderName, RegionId, RegionName, SubAccountId, SubAccountName, ResourceId, ResourceName, ResourceType, ChargeCategory, ChargeDescription, CommitmentDiscountId, CommitmentDiscountType, plus "date" (a time series, use granularity) and "Tags[]" for any tag (e.g. "Tags[team]"). For line-item detail (AWS only, needs CUR + Athena set up): "usage_type", "instance_type", "resource_id" — using any of these auto-routes the query to the CUR pushdown.

filters / exclusions: each is {dimension, op, values}. op is one of eq, in, neq, not_in, contains, regex. filters keep matching rows; exclusions drop matching rows. Example "EC2 by region last 90 days, excluding Savings Plan credits": dimensions=["RegionId"], filters=[{"dimension":"ServiceName","op":"eq","values":["Amazon EC2"]}], exclusions=[{"dimension":"ChargeCategory","op":"in","values":["Credit"]}], metric="EffectiveCost"

metric: BilledCost | EffectiveCost (amortized, default) | ListCost. granularity: TOTAL | DAILY | MONTHLY (only matters when "date" is a dimension). order_by: "metric" (default, descending) or a dimension name. start_date / end_date: YYYY-MM-DD (default last 30 days). provider: aws|azure|gcp (default all). via: "auto" (default; CUR only when a line-item dimension is requested), "focus", or "cur".

This is read-only: it slices and charts cost data. It never changes anything.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
viaNoauto
limitNo
titleNo
metricNoEffectiveCost
filtersNo
end_dateNo
order_byNometric
providerNo
dimensionsNo
exclusionsNo
start_dateNo
granularityNoTOTAL
Behavior4/5

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

With no annotations provided, the description carries the full burden. It explicitly states 'This is read-only: it slices and charts cost data. It never changes anything.' It also describes the return format (numbers and a card for charting). However, it does not cover error handling, rate limits, or prerequisites (e.g., data ingestion), though for a read-only query tool, the provided disclosure is largely sufficient.

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?

The description is long but well-structured: purpose first, then parameter details, then example. Every sentence adds value. It could be slightly more concise (e.g., combining some dimension explanations), but for a tool with 12 parameters and 0% schema coverage, the length is justified.

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?

Given the tool's complexity (12 parameters, no output schema, no annotations), the description is highly complete. It covers all parameters, explains CUR vs focus behavior, and gives a usage example. It doesn't mention potential errors or pagination, but for a cost query tool, the core functionality is well-documented.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate, and it does excellently. It explains each parameter in detail: dimensions (with full list including Tags and line-item ones), filter/exclusion structure (with ops like eq, in, contains), metric options, granularity, order_by, dates, provider, and via. It even provides a concrete example. This adds immense value beyond the bare 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?

The description clearly states the tool's purpose: 'Slice cloud cost any way you want' and describes it as a flexible, moldable cost query. It distinguishes from sibling tools like get_costs_by_service or get_cost_summary by emphasizing it's for ad-hoc queries instead of canned reports. The use of specific verbs ('slice', 'group and filter', 'returns both the numbers and a card') makes the purpose precise.

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?

The description provides explicit guidance: it's for flexible queries 'instead of a fixed set of canned reports'. It explains when to use line-item dimensions (CUR pushdown) and gives an example query. It implies that for specific pre-defined reports, one should use other tools (siblings), but lacks an explicit 'do not use this for X' statement, which would elevate it to 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chaandannn/finopsmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server