Skip to main content
Glama

get_sec_fails_to_deliver

Read-only

SEC fails-to-deliver: one row per CUSIP per settlement date. quantity_fails is SEC's total balance of undelivered shares as of that date, not one trade. fail_value = quantity_fails x price (null: no price). SEC posts each half-month ~2-3 weeks after it ends. Each query reads the newest max(500, 4 x limit) rows by sort_by, then filters. since/until: YYYY-MM-DD, inclusive, on settlement_date (date sort only). More: keyvex.com/docs/tools/get_sec_fails_to_deliver

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": "get_sec_fails_to_deliver"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo'{YYYY-MM-DD}-{cusip}'.
cusipNo
limitNoDefault 50.
sinceNo
untilNo
tickerNo
sort_byNoDefault settlement_date.
min_valueNoUSD.
sort_orderNoDefault desc.
min_quantityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • removedInput schema / properties / cusip / description
      Removed value: -"Exact CUSIP (preferred for foreign issuers / class shares)."
    • changedInput schema / properties / id / description
      Previous value: -"Direct doc lookup ({YYYY-MM-DD}-{cusip}). Fastest path."New value: +"'{YYYY-MM-DD}-{cusip}'."
    • changedInput schema / properties / limit / description
      Previous value: -"Max records. Default 50, max 500."New value: +"Default 50."
    • removedInput schema / properties / min_quantity / description
      Removed value: -"Inclusive lower bound on quantity_fails (shares). E.g., 100000 surfaces only large failures."
    • changedInput schema / properties / min_value / description
      Previous value: -"Inclusive lower bound on fail_value (dollars). E.g., 1000000 surfaces only $1M+ failures."New value: +"USD."
    • removedInput schema / properties / since / description
      Removed value: -"Inclusive lower bound on settlement_date (YYYY-MM-DD)."
    • changedInput schema / properties / sort_by / description
      Previous value: -"Sort key. Default: settlement_date."New value: +"Default settlement_date."
    • changedInput schema / properties / sort_order / description
      Previous value: -"Default: desc."New value: +"Default desc."
    • removedInput schema / properties / ticker / description
      Removed value: -"Ticker symbol (uppercased automatically)."
    • removedInput schema / properties / until / description
      Removed value: -"Inclusive upper bound on settlement_date (YYYY-MM-DD)."
  2. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already cover read-only, non-destructive, open-world behavior, and the description adds meaningful traits beyond them: the scan-then-filter execution model ('reads the newest max(500, 4 x limit) rows by sort_by, then filters'), publication lag, and null fail_value semantics. This is genuinely valuable behavioral disclosure, though it stops short of describing the returned field set or what happens when the scan window excludes older matches beyond the implicit hint.

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?

Dense and front-loaded — grain first, then measure definitions, then timing, then query mechanics. Every sentence carries information, but the compressed phrasing (e.g. 'max(500, 4 x limit)', 'date sort only') requires a second read to parse.

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?

For a 10-parameter tool with no output schema, this covers the essentials: row grain, measure meaning, freshness, date constraints, and the scan-window caveat. It falls short only on the un-described filter parameters (min_value, min_quantity) and on how id/ticker resolve, which an agent would otherwise have to guess.

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 only 50%, and the description compensates well: it explains quantity_fails as a total balance rather than a single trade, the fail_value derivation and its null case, the since/until format, inclusivity and date-sort-only restriction, and implies sort_by controls the scan window. Gaps remain for min_value, min_quantity, id, and ticker, which are undocumented in both places.

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?

Names the specific dataset ('SEC fails-to-deliver') and its exact grain ('one row per CUSIP per settlement date'), plus defines the two key measures. An agent knows precisely what a returned row represents, which is more than a restatement of the tool name.

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?

Provides useful timing context ('SEC posts each half-month ~2-3 weeks after it ends') that implicitly tells an agent when recent dates will be empty, and constrains since/until to date sorts. However, it never states when to prefer this over a sibling SEC or market-data tool, nor any exclusions.

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