Skip to main content
Glama

get_credit_cost

Check how many credits a maskr.io service costs.

Returns the credit cost for a specific image processing service based on
the image dimensions. Also returns your current credit balance.

Args:
    service: The service to check pricing for.
    image_width: Image width in pixels.
    image_height: Image height in pixels.

Returns:
    A text summary of the credit cost and your balance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serviceYesThe service to check pricing for. One of: background_removal, image_upscaling_2x, image_upscaling_4x
image_widthYesWidth of the image in pixels. Required for cost calculation. For upscaling, provide the INPUT dimensions — the output size is calculated automatically from the scale factor.
image_heightYesHeight of the image in pixels. Required for cost calculation.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations provided, the description carries the full disclosure burden. It clarifies the dual return (credit cost + current balance) and identifies the return format as 'a text summary.' However, it omits operational traits: whether the call consumes credits (likely not), idempotency guarantees, rate limits, or permission requirements. Basic behavioral context is present but safety/operational details are sparse.

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 follows a clear docstring structure (summary, Args, Returns) with the main purpose front-loaded in the first sentence. While the Args section duplicates information already present in the 100%-covered schema, the formatting is efficient and every sentence earns its place by clarifying inputs or outputs. Length is appropriate for a three-parameter tool.

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 high schema coverage (100%), clearly defined enums in the schema (mapping to sibling operations), and existence of an output schema, the description is sufficiently complete. It adds necessary domain context ('maskr.io') and clarifies the return type. It appropriately does not replicate detailed return value documentation since an output schema exists.

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?

Input schema has 100% description coverage, establishing a baseline of 3. The Args section in the description lists the three parameters but essentially mirrors the schema content without adding syntactic nuances (e.g., it repeats 'The service to check pricing for' from the schema and omits the schema's crucial upscaling dimension note: 'provide the INPUT dimensions'). Since schema coverage is complete, the description serves as readable documentation but adds minimal semantic value beyond structured data.

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 opens with 'Check how many credits a maskr.io service costs' — a specific verb (check) + resource (credit cost) + domain context (maskr.io). It clearly distinguishes from siblings: unlike 'remove_background' or 'upscale' (which perform processing), this queries pricing; unlike 'get_account_balance' (which only returns balance), this calculates service-specific costs based on dimensions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The description implies usage context by mentioning 'image dimensions' and 'service,' hinting it precedes processing calls. However, it lacks explicit guidance such as 'use this before calling remove_background/upscale' or 'use get_account_balance if you only need your balance without cost calculation.' No when-not-to-use or alternative specifications are provided.

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