Skip to main content
Glama

Scale objects from credit card

scale_objects_from_credit_card

Scale object pixel dimensions using a standard CR80 credit card reference.

Args:
    image_id: Caller-defined source identifier; no image is uploaded.
    credit_card_pixel_width: Caller-supplied pixel width of a CR80-size card.
    objects: Objects to scale. Each object needs pixel_width and pixel_height;
        label, pixel_area, pixel_perimeter, and input confidence are optional.
    credit_card_pixel_height: Optional caller-supplied height for distortion check.
    payment_ref: Optional paid escrow reference consumed by the gateway.
    request_id: Optional retry-safe idempotency key (maximum 128 characters).

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": {
      "image_id": "<image_id>",
      "credit_card_pixel_width": "<credit_card_pixel_width>",
      "objects": "<objects>"
    },
    "name": "scale_objects_from_credit_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
objectsYesObjects to scale, each with its pixel dimensions.
image_idYesYour id for the source image. The image itself is not uploaded.
request_idNoOptional. Your id for this call. Repeat it to retry safely: the same request_id is never charged twice.
payment_refNoOptional. A paid credit or payment reference, used only after the free daily calls. Leave it out to use the free tier or a seat.
credit_card_pixel_widthYesWidth of the CR80 card in the image, in pixels.
credit_card_pixel_heightNoOptional. Height of the card in pixels, to check the scale.

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
fieldNo
resultNo
statusYes
messageNo
timestampNo
constraintNo
error_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / credit_card_pixel_height / description
      Added value: +"Optional. Height of the card in pixels, to check the scale."
    • addedInput schema / properties / credit_card_pixel_width / description
      Added value: +"Width of the CR80 card in the image, in pixels."
    • addedInput schema / properties / image_id / description
      Added value: +"Your id for the source image. The image itself is not uploaded."
    • addedInput schema / properties / objects / description
      Added value: +"Objects to scale, each with its pixel dimensions."
    • addedInput schema / properties / payment_ref / description
      Added value: +"Optional. A paid credit or payment reference, used only after the free daily calls. Leave it out to use the free tier or a seat."
    • addedInput schema / properties / request_id / description
      Added value: +"Optional. Your id for this call. Repeat it to retry safely: the same request_id is never charged twice."
  2. Changed9 schema fields changed
    • addedOutput schema / description
      Added value: +"Stable result envelope advertised directly through MCP outputSchema."
    • removedOutput schema / properties / constraint / default
      Removed value: -null
    • removedOutput schema / properties / data / default
      Removed value: -null
    • removedOutput schema / properties / error / default
      Removed value: -null
    • removedOutput schema / properties / error_type / default
      Removed value: -null
    • removedOutput schema / properties / field / default
      Removed value: -null
    • removedOutput schema / properties / message / default
      Removed value: -null
    • removedOutput schema / properties / result / default
      Removed value: -null
    • removedOutput schema / properties / timestamp / default
      Removed value: -null
  3. Changed14 schema fields changed
    • addedInput schema / properties / payment_ref
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Payment Ref"
      +}
    • addedInput schema / properties / request_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Request Id"
      +}
    • addedOutput schema / properties / constraint
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Constraint"
      +}
    • addedOutput schema / properties / data
      Added value: +{
      +  "default": null,
      +  "title": "Data"
      +}
    • addedOutput schema / properties / error
      Added value: +{
      +  "default": null,
      +  "title": "Error"
      +}
    • addedOutput schema / properties / error_type
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Error Type"
      +}
    • addedOutput schema / properties / field
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Field"
      +}
    • addedOutput schema / properties / message
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Message"
      +}
    • addedOutput schema / properties / result / default
      Added value: +null
    • removedOutput schema / properties / result / type
      Removed value: -"string"
    • addedOutput schema / properties / status
      Added value: +{
      +  "title": "Status",
      +  "type": "string"
      +}
    • addedOutput schema / properties / timestamp
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Timestamp"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "result"
      -]New value: +[
      +  "status"
      +]
    • changedOutput schema / title
      Previous value: -"scale_objects_from_credit_cardOutput"New value: +"FleetToolResult"
  4. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations only declare the generic profile (readOnly=false, idempotent=false, destructive=false, openWorld=false); the description adds real behavior: no image is uploaded, payment_ref is a paid escrow reference consumed by the gateway only after free calls, and request_id is a retry-safe idempotency key capped at 128 characters. The one tension is that idempotentHint=false while the text promises retry safety, though this reads as opt-in idempotency via request_id rather than a contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The one-line purpose is front-loaded and strong, but the Args block largely restates the input schema field-for-field instead of spending the words on usage or behavior. It is organized and readable, just partly redundant.

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?

An output schema exists, so return values need not be explained, and the description covers billing, upload behavior, idempotency, and object sub-fields. What is missing is any statement about what happens when the optional height suggests distortion, or whether that case errors or is merely reported.

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, but the description adds meaning the schema lacks: the sub-fields each object needs (pixel_width, pixel_height) versus the optional label, pixel_area, pixel_perimeter, and confidence, plus that credit_card_pixel_height exists specifically for a distortion check. That materially clarifies the untyped objects array.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence states a specific verb and resource: scale object pixel dimensions, using a CR80 card as the real-world reference. It is clear what the tool computes, though it never contrasts itself with the sibling credit_card_photo_instructions, which likely covers the card-detection half of the workflow.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no prerequisite stating that a CR80 pixel width must already be measured from the photo (presumably via the photo-instructions sibling). The Args block is a field inventory, not routing guidance.

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.