Skip to main content
Glama

etf_trading_cost

Read-onlyIdempotent

What it costs to trade one ETF: IQ Liquidity Score (fixed 0 to 100), the issuer's Rule 6c-11 bid-ask spread and premium or discount, ETFIQ's own premium from NAV and closes with its window, and why where a number is not published. Lead sentence quoted from the fund's trading page.

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": {
      "ticker": "<ticker>"
    },
    "name": "etf_trading_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
tickerYesOne fund's ticker, such as JEPI.

Output Schema

NameRequiredDescriptionDefault
dataYesThe answer; null on a refusal.
errorNoRefusal only: what is not published.
reasonNoRefusal only: why.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed42 schema fields changed
    • removedOutput schema / additionalProperties
      Removed value: -true
    • removedOutput schema / properties / as_of
      Removed value: -{
      -  "description": "Date of the newest number in the answer.",
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / citation
      Removed value: -{
      -  "description": "A ready citation string with the as-of date and the page address.",
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / data / additionalProperties
      Removed value: -true
    • changedOutput schema / properties / data / description
      Previous value: -"The answer, or null when ETFIQ refuses (then error and reason say why)."New value: +"The answer; null on a refusal."
    • removedOutput schema / properties / data / properties / as_of / type
      Removed value: -[
      -  "null",
      -  "string"
      -]
    • removedOutput schema / properties / data / properties / cross_source / additionalProperties
      Removed value: -true
    • removedOutput schema / properties / data / properties / cross_source / properties
      Removed value: -{
      -  "apart": {
      -    "type": [
      -      "null",
      -      "number"
      -    ]
      -  },
      -  "basis": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "days": {
      -    "type": [
      -      "null",
      -      "number"
      -    ]
      -  },
      -  "maxGap": {
      -    "type": [
      -      "null",
      -      "number"
      -    ]
      -  },
      -  "medianGap": {
      -    "type": [
      -      "null",
      -      "number"
      -    ]
      -  },
      -  "worst": {
      -    "additionalProperties": true,
      -    "type": [
      -      "null",
      -      "object"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / data / properties / cross_source / type
      Removed value: -[
      -  "null",
      -  "object"
      -]
    • removedOutput schema / properties / data / properties / lead / type
      Removed value: -[
      -  "null",
      -  "string"
      -]
    • removedOutput schema / properties / data / properties / lines / items
      Removed value: -{
      -  "type": [
      -    "null",
      -    "string"
      -  ]
      -}
    • removedOutput schema / properties / data / properties / lines / type
      Removed value: -[
      -  "array",
      -  "null"
      -]
    • removedOutput schema / properties / data / properties / liquidity_score / additionalProperties
      Removed value: -true
    • removedOutput schema / properties / data / properties / liquidity_score / properties
      Removed value: -{
      -  "scale": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "score": {
      -    "type": [
      -      "null",
      -      "number"
      -    ]
      -  },
      -  "status": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "tier": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / data / properties / liquidity_score / type
      Removed value: -[
      -  "null",
      -  "object"
      -]
    • removedOutput schema / properties / data / properties / method / type
      Removed value: -[
      -  "null",
      -  "string"
      -]
    • removedOutput schema / properties / data / properties / name / type
      Removed value: -[
      -  "null",
      -  "string"
      -]
    • removedOutput schema / properties / data / properties / not_published_because / additionalProperties
      Removed value: -true
    • removedOutput schema / properties / data / properties / not_published_because / properties
      Removed value: -{
      -  "premiumHistory": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "premiumIssuer": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / data / properties / not_published_because / type
      Removed value: -[
      -  "null",
      -  "object"
      -]
    • removedOutput schema / properties / data / properties / page / type
      Removed value: -[
      -  "null",
      -  "string"
      -]
    • removedOutput schema / properties / data / properties / premium / additionalProperties
      Removed value: -true
    • removedOutput schema / properties / data / properties / premium / properties
      Removed value: -{
      -  "daysOver1": {
      -    "type": [
      -      "null",
      -      "number"
      -    ]
      -  },
      -  "last": {
      -    "additionalProperties": true,
      -    "type": [
      -      "null",
      -      "object"
      -    ]
      -  },
      -  "median": {
      -    "type": [
      -      "null",
      -      "number"
      -    ]
      -  },
      -  "navSource": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "navTiming": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "navTimingBasis": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "p95": {
      -    "type": [
      -      "null",
      -      "number"
      -    ]
      -  },
      -  "priceSource": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "window": {
      -    "additionalProperties": true,
      -    "type": [
      -      "null",
      -      "object"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / data / properties / premium / type
      Removed value: -[
      -  "null",
      -  "object"
      -]
    • removedOutput schema / properties / data / properties / premium_history / type
      Removed value: -"null"
    • removedOutput schema / properties / data / properties / premium_issuer / additionalProperties
      Removed value: -true
    • removedOutput schema / properties / data / properties / premium_issuer / properties
      Removed value: -{
      -  "asOf": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "basis": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "days": {
      -    "type": [
      -      "null",
      -      "number"
      -    ]
      -  },
      -  "from": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "last": {
      -    "type": [
      -      "null",
      -      "number"
      -    ]
      -  },
      -  "median": {
      -    "type": [
      -      "null",
      -      "number"
      -    ]
      -  },
      -  "source": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "url": {
      -    "type": "null"
      -  }
      -}
    • removedOutput schema / properties / data / properties / premium_issuer / type
      Removed value: -[
      -  "null",
      -  "object"
      -]
    • removedOutput schema / properties / data / properties / spread / additionalProperties
      Removed value: -true
    • removedOutput schema / properties / data / properties / spread / properties
      Removed value: -{
      -  "asOf": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "median30": {
      -    "type": [
      -      "null",
      -      "number"
      -    ]
      -  },
      -  "source": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "text": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "url": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / data / properties / spread / type
      Removed value: -[
      -  "null",
      -  "object"
      -]
    • removedOutput schema / properties / data / properties / ticker / type
      Removed value: -[
      -  "null",
      -  "string"
      -]
    • removedOutput schema / properties / data / properties / units / type
      Removed value: -[
      -  "null",
      -  "string"
      -]
    • removedOutput schema / properties / disclaimer_required
      Removed value: -{
      -  "description": "True when the answer carries numbers that need the not-advice line.",
      -  "type": "boolean"
      -}
    • changedOutput schema / properties / error / description
      Previous value: -"Present only on a refusal: what ETFIQ does not publish."New value: +"Refusal only: what is not published."
    • removedOutput schema / properties / lag_days
      Removed value: -{
      -  "description": "Days between as_of and today (America/New_York).",
      -  "type": [
      -    "number",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / provenance
      Removed value: -{
      -  "description": "Where each number came from: field, source, as_of, source_uri.",
      -  "items": {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • changedOutput schema / properties / reason / description
      Previous value: -"Present only on a refusal: why, and what to change."New value: +"Refusal only: why."
    • removedOutput schema / properties / source
      Removed value: -{
      -  "description": "Who publishes the data.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / tried
      Removed value: -{
      -  "description": "Present only on a refusal: what was looked up.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / warnings
      Removed value: -{
      -  "description": "Caveats to show with the answer.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "data",
      -  "provenance",
      -  "warnings",
      -  "disclaimer_required",
      -  "citation",
      -  "source"
      -]New value: +[
      +  "data"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "as_of": {
      +      "description": "Date of the newest number in the answer.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "citation": {
      +      "description": "A ready citation string with the as-of date and the page address.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "data": {
      +      "additionalProperties": true,
      +      "description": "The answer, or null when ETFIQ refuses (then error and reason say why).",
      +      "properties": {
      +        "as_of": {
      +          "type": [
      +            "null",
      +            "string"
      +          ]
      +        },
      +        "cross_source": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "apart": {
      +              "type": [
      +                "null",
      +                "number"
      +              ]
      +            },
      +            "basis": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "days": {
      +              "type": [
      +                "null",
      +                "number"
      +              ]
      +            },
      +            "maxGap": {
      +              "type": [
      +                "null",
      +                "number"
      +              ]
      +            },
      +            "medianGap": {
      +              "type": [
      +                "null",
      +                "number"
      +              ]
      +            },
      +            "worst": {
      +              "additionalProperties": true,
      +              "type": [
      +                "null",
      +                "object"
      +              ]
      +            }
      +          },
      +          "type": [
      +            "null",
      +            "object"
      +          ]
      +        },
      +        "lead": {
      +          "type": [
      +            "null",
      +            "string"
      +          ]
      +        },
      +        "lines": {
      +          "items": {
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "type": [
      +            "array",
      +            "null"
      +          ]
      +        },
      +        "liquidity_score": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "scale": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "score": {
      +              "type": [
      +                "null",
      +                "number"
      +              ]
      +            },
      +            "status": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "tier": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            }
      +          },
      +          "type": [
      +            "null",
      +            "object"
      +          ]
      +        },
      +        "method": {
      +          "type": [
      +            "null",
      +            "string"
      +          ]
      +        },
      +        "name": {
      +          "type": [
      +            "null",
      +            "string"
      +          ]
      +        },
      +        "not_published_because": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "premiumHistory": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "premiumIssuer": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            }
      +          },
      +          "type": [
      +            "null",
      +            "object"
      +          ]
      +        },
      +        "page": {
      +          "type": [
      +            "null",
      +            "string"
      +          ]
      +        },
      +        "premium": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "daysOver1": {
      +              "type": [
      +                "null",
      +                "number"
      +              ]
      +            },
      +            "last": {
      +              "additionalProperties": true,
      +              "type": [
      +                "null",
      +                "object"
      +              ]
      +            },
      +            "median": {
      +              "type": [
      +                "null",
      +                "number"
      +              ]
      +            },
      +            "navSource": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "navTiming": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "navTimingBasis": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "p95": {
      +              "type": [
      +                "null",
      +                "number"
      +              ]
      +            },
      +            "priceSource": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "window": {
      +              "additionalProperties": true,
      +              "type": [
      +                "null",
      +                "object"
      +              ]
      +            }
      +          },
      +          "type": [
      +            "null",
      +            "object"
      +          ]
      +        },
      +        "premium_history": {
      +          "type": "null"
      +        },
      +        "premium_issuer": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "asOf": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "basis": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "days": {
      +              "type": [
      +                "null",
      +                "number"
      +              ]
      +            },
      +            "from": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "last": {
      +              "type": [
      +                "null",
      +                "number"
      +              ]
      +            },
      +            "median": {
      +              "type": [
      +                "null",
      +                "number"
      +              ]
      +            },
      +            "source": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "url": {
      +              "type": "null"
      +            }
      +          },
      +          "type": [
      +            "null",
      +            "object"
      +          ]
      +        },
      +        "spread": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "asOf": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "median30": {
      +              "type": [
      +                "null",
      +                "number"
      +              ]
      +            },
      +            "source": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "text": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "url": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            }
      +          },
      +          "type": [
      +            "null",
      +            "object"
      +          ]
      +        },
      +        "ticker": {
      +          "type": [
      +            "null",
      +            "string"
      +          ]
      +        },
      +        "units": {
      +          "type": [
      +            "null",
      +            "string"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "disclaimer_required": {
      +      "description": "True when the answer carries numbers that need the not-advice line.",
      +      "type": "boolean"
      +    },
      +    "error": {
      +      "description": "Present only on a refusal: what ETFIQ does not publish.",
      +      "type": "string"
      +    },
      +    "lag_days": {
      +      "description": "Days between as_of and today (America/New_York).",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "provenance": {
      +      "description": "Where each number came from: field, source, as_of, source_uri.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "reason": {
      +      "description": "Present only on a refusal: why, and what to change.",
      +      "type": "string"
      +    },
      +    "source": {
      +      "description": "Who publishes the data.",
      +      "type": "string"
      +    },
      +    "tried": {
      +      "description": "Present only on a refusal: what was looked up.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "warnings": {
      +      "description": "Caveats to show with the answer.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "data",
      +    "provenance",
      +    "warnings",
      +    "disclaimer_required",
      +    "citation",
      +    "source"
      +  ],
      +  "type": "object"
      +}
  3. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: it discloses that some numbers may be unpublished and explains why, and it notes that the ETFIQ premium is tied to a calculation window and that the lead sentence is quoted verbatim from the fund's page — these are data-quality traits an agent could not infer from structured fields.

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?

It is compact and front-loads the returned data, but the phrasing is a comma-spliced fragment and the clause 'and why where a number is not published' is grammatically broken, costing clarity. The trailing sentence about the quoted lead line is oddly separated from the rest of the content list.

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-value structure need not be described, and the description instead supplies provenance and missing-data rationale, which is the right allocation of effort for a one-parameter read tool. What is missing is only sibling routing, not anything required to call the tool correctly.

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?

There is a single parameter at 100% schema description coverage, and the schema already gives the meaning plus an example (JEPI). The description only reinforces that exactly one fund is in scope ('one ETF'), adding no syntax, format, or validation detail beyond the schema, so the baseline 3 applies.

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 description names a specific resource (trading cost for one ETF) and enumerates the exact components returned: IQ Liquidity Score, Rule 6c-11 bid-ask spread, premium/discount, ETFIQ NAV premium with its window, and the lead sentence from the fund's trading page. That is far more specific than a generic 'get trading data', though it never contrasts itself with near-neighbors such as etf_profile or etf_compare.

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?

Usage is only implied: 'one ETF' and the single ticker parameter signal a single-fund lookup rather than a comparison or screen. There is no explicit statement of when to reach for this versus etf_profile, etf_compare, or etf_screen, and no prerequisites or exclusions are given.

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