Skip to main content
Glama

Brainy Prices — UAE Cost of Living

fx_rates

Read-onlyIdempotent

Dated CBUAE AED exchange rates. Not bank quotes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fx_rates"
  }
}

Input Schema

NameRequiredDescriptionDefault
currencyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  3. Changed7 schema fields changed
    • removedOutput schema / $defs / FxRates
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "base": {
      -      "const": "AED"
      -    },
      -    "provenance": {
      -      "$ref": "#/$defs/Provenance"
      -    },
      -    "published_label": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "rates": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "aed_per_unit": {
      -            "type": "number"
      -          },
      -          "currency": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "currency",
      -          "aed_per_unit"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "rates_on": {
      -      "type": "string"
      -    },
      -    "unit": {
      -      "const": "AED per 1 unit of currency"
      -    }
      -  },
      -  "required": [
      -    "base",
      -    "unit",
      -    "rates_on",
      -    "published_label",
      -    "rates",
      -    "provenance"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / $defs / FxRatesResponse
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "data": {
      -      "anyOf": [
      -        {
      -          "$ref": "#/$defs/FxRates"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "links": {
      -      "$ref": "#/$defs/Links"
      -    },
      -    "meta": {
      -      "$ref": "#/$defs/ResponseMeta"
      -    }
      -  },
      -  "required": [
      -    "meta",
      -    "data",
      -    "links"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / $defs / Links
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "docs": {
      -      "type": "string"
      -    },
      -    "next": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "open_in_browser": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "self": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "self",
      -    "next",
      -    "open_in_browser",
      -    "docs"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / $defs / Provenance
      Removed value: -{
      -  "additionalProperties": true,
      -  "required": [
      -    "source_id",
      -    "license_id",
      -    "source_url",
      -    "observed_on",
      -    "observed_at",
      -    "published_on",
      -    "published_at",
      -    "retrieved_at",
      -    "stale",
      -    "status",
      -    "paused_since",
      -    "flags"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / $defs / ResponseMeta
      Removed value: -{
      -  "additionalProperties": true,
      -  "required": [
      -    "api_version",
      -    "content_language",
      -    "generated_at",
      -    "currency",
      -    "attribution",
      -    "disclaimer",
      -    "dataset",
      -    "page"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / $defs / ToolFailure
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "error": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "code": {
      -          "type": "string"
      -        },
      -        "message": {
      -          "type": "string"
      -        },
      -        "retry_after_s": {
      -          "type": [
      -            "integer",
      -            "null"
      -          ]
      -        },
      -        "retryable": {
      -          "type": "boolean"
      -        }
      -      },
      -      "required": [
      -        "code",
      -        "message",
      -        "retryable",
      -        "retry_after_s"
      -      ],
      -      "type": "object"
      -    },
      -    "request_id": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    }
      -  },
      -  "required": [
      -    "error",
      -    "request_id"
      -  ],
      -  "type": "object"
      -}
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/$defs/FxRatesResponse"
      -  },
      -  {
      -    "$ref": "#/$defs/ToolFailure"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "data": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "base": {
      +                "const": "AED"
      +              },
      +              "provenance": {
      +                "additionalProperties": true,
      +                "required": [
      +                  "source_id",
      +                  "license_id",
      +                  "source_url",
      +                  "observed_on",
      +                  "observed_at",
      +                  "published_on",
      +                  "published_at",
      +                  "retrieved_at",
      +                  "stale",
      +                  "status",
      +                  "paused_since",
      +                  "flags"
      +                ],
      +                "type": "object"
      +              },
      +              "published_label": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "rates": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "aed_per_unit": {
      +                      "type": "number"
      +                    },
      +                    "currency": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "currency",
      +                    "aed_per_unit"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "rates_on": {
      +                "type": "string"
      +              },
      +              "unit": {
      +                "const": "AED per 1 unit of currency"
      +              }
      +            },
      +            "required": [
      +              "base",
      +              "unit",
      +              "rates_on",
      +              "published_label",
      +              "rates",
      +              "provenance"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "links": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "docs": {
      +            "type": "string"
      +          },
      +          "next": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "open_in_browser": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "self": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "self",
      +          "next",
      +          "open_in_browser",
      +          "docs"
      +        ],
      +        "type": "object"
      +      },
      +      "meta": {
      +        "additionalProperties": true,
      +        "required": [
      +          "api_version",
      +          "content_language",
      +          "generated_at",
      +          "currency",
      +          "attribution",
      +          "disclaimer",
      +          "dataset",
      +          "page"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "meta",
      +      "data",
      +      "links"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "retry_after_s": {
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          },
      +          "retryable": {
      +            "type": "boolean"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message",
      +          "retryable",
      +          "retry_after_s"
      +        ],
      +        "type": "object"
      +      },
      +      "request_id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "error",
      +      "request_id"
      +    ],
      +    "type": "object"
      +  }
      +]
  4. Added

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuine provenance context (CBUAE-sourced, dated, not bank quotes), which matters for trust in the numbers. It still omits rate freshness/cadence and whether one row or many are returned, but the output schema covers the return shape.

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?

Two short, front-loaded sentences with no filler; the source and the 'not bank quotes' caveat come immediately. It is efficient, though the brevity crosses into under-specification rather than being tight.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With rich annotations and an output schema, the description only needs to cover provenance, currency scope and default behavior. It handles provenance but leaves the optional currency parameter's semantics and the base currency/date dimension unstated.

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

Parameters2/5

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

Schema description coverage is 0% for the single optional currency parameter, and the description says nothing about it. An agent cannot tell from the text whether omitting currency returns all rates, what the default is, or which ISO codes are supported (the ^[A-Z]{3}$ pattern is only in the schema).

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?

Names a specific resource (CBUAE AED exchange rates) and adds two differentiating qualifiers: the rates are dated and come from the central bank rather than commercial banks. The verb is only implied, but no sibling tool competes in this space, so an agent can still identify it unambiguously.

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?

'Not bank quotes' is a partial exclusion that hints when not to rely on it, but there is no positive guidance on when to call it, no mention of alternatives for bank-specific or historical conversions, and no prerequisites. Usage must be inferred entirely.

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