Skip to main content
Glama

get_stock_activity

Read-onlyIdempotent

Get institutional buying/selling activity trend for a stock over multiple quarters. Shows how many institutions are buying vs selling, net share changes, and value flows — useful for detecting accumulation or distribution patterns. Plan limits: Free/keyless access covers the latest 13F quarter only; the multi-quarter trend requires Pro. Omit quarters to get the most your plan allows. structuredContent carries the exact net shares/values. Each quarter carries ko.io's comparability state (comparable / split_adjusted with its split factor / not_comparable / first_reported): a null share or value flow means UNKNOWN (withheld), never zero.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tickerYesStock ticker symbol
quartersNoNumber of quarters to return. Omit for the plan default (Pro: 8 = 2 years; Free/keyless: the latest quarter only). An explicit value above what your plan allows returns a plan-limit error.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
trendYes
latestYes
tickerYes
plan_noteYesSet when the plan limited how many quarters were returned
plan_limitYesThe Free/keyless plan limits ko.io applied to this answer (null for paid callers)
quarters_returnedYes
quarters_requestedYesnull = the plan default was used

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedOutput schema / properties / latest / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "changes": {
      -        "additionalProperties": false,
      -        "description": "equity_filer_baseline: common stock only (option legs excluded); one holder per filer CIK; only filers with a usable prior-quarter baseline are classified. Same names/values as ko.io REST `changes`. Absent when ko.io did not send it.",
      -        "properties": {
      -          "added": {
      -            "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      -          },
      -          "basis": {
      -            "description": "\"equity_filer_baseline\"",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "exited": {
      -            "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      -          },
      -          "holders": {
      -            "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      -          },
      -          "net_shares": {
      -            "$ref": "#/properties/latest/anyOf/0/properties/changes/properties/shares_added"
      -          },
      -          "net_value": {
      -            "$ref": "#/properties/latest/anyOf/0/properties/changes/properties/shares_added"
      -          },
      -          "new": {
      -            "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      -          },
      -          "no_baseline": {
      -            "anyOf": [
      -              {
      -                "$ref": "#/properties/quarters_requested/anyOf/0"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ],
      -            "description": "Filers with no usable prior-quarter baseline: not classified as new/added/..."
      -          },
      -          "shares_added": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "shares_removed": {
      -            "$ref": "#/properties/latest/anyOf/0/properties/changes/properties/shares_added"
      -          },
      -          "trimmed": {
      -            "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      -          },
      -          "unchanged": {
      -            "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      -          },
      -          "value_added": {
      -            "$ref": "#/properties/latest/anyOf/0/properties/changes/properties/shares_added"
      -          },
      -          "value_removed": {
      -            "$ref": "#/properties/latest/anyOf/0/properties/changes/properties/shares_added"
      -          }
      -        },
      -        "required": [
      -          "basis",
      -          "new",
      -          "added",
      -          "trimmed",
      -          "exited",
      -          "unchanged",
      -          "no_baseline",
      -          "holders",
      -          "shares_added",
      -          "shares_removed",
      -          "net_shares",
      -          "value_added",
      -          "value_removed",
      -          "net_value"
      -        ],
      -        "type": "object"
      -      },
      -      "institutions_decreased": {
      -        "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      -      },
      -      "institutions_exited": {
      -        "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      -      },
      -      "institutions_increased": {
      -        "anyOf": [
      -          {
      -            "$ref": "#/properties/quarters_requested/anyOf/0"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "institutions_new": {
      -        "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      -      },
      -      "institutions_total": {
      -        "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      -      },
      -      "net_shares": {
      -        "anyOf": [
      -          {
      -            "pattern": "^-?\\d+(\\.\\d+)?([eE][-+]?\\d+)?$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Exact decimal string as served by ko.io (not rounded); null = unknown"
      -      },
      -      "net_value": {
      -        "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      -      },
      -      "quarter": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "shares_added": {
      -        "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      -      },
      -      "shares_removed": {
      -        "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      -      },
      -      "value_added": {
      -        "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      -      },
      -      "value_removed": {
      -        "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      -      }
      -    },
      -    "required": [
      -      "quarter",
      -      "institutions_increased",
      -      "institutions_decreased",
      -      "institutions_new",
      -      "institutions_exited",
      -      "net_shares",
      -      "net_value",
      -      "institutions_total",
      -      "shares_added",
      -      "shares_removed",
      -      "value_added",
      -      "value_removed"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "changes": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "added": {
      +                "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +              },
      +              "basis": {
      +                "description": "\"equity_filer_baseline\"",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "comparability": {
      +                "$ref": "#/properties/latest/anyOf/0/properties/comparability"
      +              },
      +              "comparability_reason": {
      +                "$ref": "#/properties/latest/anyOf/0/properties/quarter",
      +                "description": "ko.io's prose for the comparability state; null when comparable"
      +              },
      +              "exited": {
      +                "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +              },
      +              "flow_excluded_filers": {
      +                "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased",
      +                "description": "Classified filers left out of share/value flows (implausible row); still counted as holders"
      +              },
      +              "holders": {
      +                "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +              },
      +              "net_shares": {
      +                "$ref": "#/properties/latest/anyOf/0/properties/changes/anyOf/0/properties/split_factor"
      +              },
      +              "net_value": {
      +                "$ref": "#/properties/latest/anyOf/0/properties/changes/anyOf/0/properties/split_factor"
      +              },
      +              "new": {
      +                "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +              },
      +              "no_baseline": {
      +                "anyOf": [
      +                  {
      +                    "$ref": "#/properties/quarters_requested/anyOf/0"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "Filers with no usable prior-quarter baseline: not classified as new/added/..."
      +              },
      +              "null_reason": {
      +                "$ref": "#/properties/latest/anyOf/0/properties/null_reason"
      +              },
      +              "price_corrected": {
      +                "description": "true when values use the holders' median implied price instead of a quarter-end close that was off by > 50%",
      +                "type": [
      +                  "boolean",
      +                  "null"
      +                ]
      +              },
      +              "shares_added": {
      +                "$ref": "#/properties/latest/anyOf/0/properties/changes/anyOf/0/properties/split_factor"
      +              },
      +              "shares_removed": {
      +                "$ref": "#/properties/latest/anyOf/0/properties/changes/anyOf/0/properties/split_factor"
      +              },
      +              "split_factor": {
      +                "description": "split_adjusted only: last quarter's shares were multiplied by this factor before classifying (e.g. 10 = 10-for-1); null otherwise",
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "trimmed": {
      +                "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +              },
      +              "unchanged": {
      +                "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +              },
      +              "value_added": {
      +                "$ref": "#/properties/latest/anyOf/0/properties/changes/anyOf/0/properties/split_factor"
      +              },
      +              "value_removed": {
      +                "$ref": "#/properties/latest/anyOf/0/properties/changes/anyOf/0/properties/split_factor"
      +              }
      +            },
      +            "required": [
      +              "basis",
      +              "new",
      +              "added",
      +              "trimmed",
      +              "exited",
      +              "unchanged",
      +              "no_baseline",
      +              "holders",
      +              "shares_added",
      +              "shares_removed",
      +              "net_shares",
      +              "value_added",
      +              "value_removed",
      +              "net_value"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "equity_filer_baseline: common stock only (option legs excluded); one holder per filer CIK; only filers with a usable prior-quarter baseline are classified. Same names/values as ko.io REST `changes`. A null share/value flow means UNKNOWN (withheld), never zero. null = ko.io could not compute `changes` for this quarter; absent when ko.io did not send it."
      +      },
      +      "comparability": {
      +        "$ref": "#/properties/latest/anyOf/0/properties/quarter",
      +        "description": "comparable | split_adjusted (last quarter's shares x split_factor before classifying) | not_comparable (share and value flows withheld -> null) | first_reported (no 13F filer held it last quarter: no prior-quarter baseline, every holder is new) | unknown (flows could not be recomputed -> null)"
      +      },
      +      "institutions_decreased": {
      +        "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +      },
      +      "institutions_exited": {
      +        "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +      },
      +      "institutions_increased": {
      +        "anyOf": [
      +          {
      +            "$ref": "#/properties/quarters_requested/anyOf/0"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "institutions_new": {
      +        "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +      },
      +      "institutions_total": {
      +        "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +      },
      +      "net_shares": {
      +        "anyOf": [
      +          {
      +            "pattern": "^-?\\d+(\\.\\d+)?([eE][-+]?\\d+)?$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "null = unknown (withheld, see null_reason), never zero"
      +      },
      +      "net_value": {
      +        "anyOf": [
      +          {
      +            "$ref": "#/properties/latest/anyOf/0/properties/net_shares/anyOf/0"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "null = unknown (withheld, see null_reason), never zero"
      +      },
      +      "null_reason": {
      +        "$ref": "#/properties/latest/anyOf/0/properties/quarter",
      +        "description": "Why the share/value flows are null (e.g. share_ratio_not_a_split_factor, price_conflict_insufficient_samples, value_above_sanity_cap, not_recomputable); null when they are not"
      +      },
      +      "quarter": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "shares_added": {
      +        "anyOf": [
      +          {
      +            "$ref": "#/properties/latest/anyOf/0/properties/net_shares/anyOf/0"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Exact decimal string as served by ko.io (not rounded); null = unknown"
      +      },
      +      "shares_removed": {
      +        "$ref": "#/properties/latest/anyOf/0/properties/shares_added"
      +      },
      +      "value_added": {
      +        "$ref": "#/properties/latest/anyOf/0/properties/shares_added"
      +      },
      +      "value_removed": {
      +        "$ref": "#/properties/latest/anyOf/0/properties/shares_added"
      +      }
      +    },
      +    "required": [
      +      "quarter",
      +      "institutions_increased",
      +      "institutions_decreased",
      +      "institutions_new",
      +      "institutions_exited",
      +      "net_shares",
      +      "net_value",
      +      "institutions_total",
      +      "shares_added",
      +      "shares_removed",
      +      "value_added",
      +      "value_removed"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / trend / items / properties / comparability
      Added value: +{
      +  "$ref": "#/properties/latest/anyOf/0/properties/comparability"
      +}
    • changedOutput schema / properties / trend / items / properties / net_value / $ref
      Previous value: -"#/properties/latest/anyOf/0/properties/net_shares"New value: +"#/properties/latest/anyOf/0/properties/net_value"
    • addedOutput schema / properties / trend / items / properties / null_reason
      Added value: +{
      +  "$ref": "#/properties/latest/anyOf/0/properties/null_reason"
      +}
  2. Changed2 schema fields changed
    • changedOutput schema / properties / latest / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "institutions_decreased": {
      -        "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      -      },
      -      "institutions_exited": {
      -        "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      -      },
      -      "institutions_increased": {
      -        "anyOf": [
      -          {
      -            "$ref": "#/properties/quarters_requested/anyOf/0"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "institutions_new": {
      -        "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      -      },
      -      "institutions_total": {
      -        "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      -      },
      -      "net_shares": {
      -        "anyOf": [
      -          {
      -            "pattern": "^-?\\d+(\\.\\d+)?([eE][-+]?\\d+)?$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Exact decimal string as served by ko.io (not rounded); null = unknown"
      -      },
      -      "net_value": {
      -        "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      -      },
      -      "quarter": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "shares_added": {
      -        "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      -      },
      -      "shares_removed": {
      -        "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      -      },
      -      "value_added": {
      -        "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      -      },
      -      "value_removed": {
      -        "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      -      }
      -    },
      -    "required": [
      -      "quarter",
      -      "institutions_increased",
      -      "institutions_decreased",
      -      "institutions_new",
      -      "institutions_exited",
      -      "net_shares",
      -      "net_value",
      -      "institutions_total",
      -      "shares_added",
      -      "shares_removed",
      -      "value_added",
      -      "value_removed"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "changes": {
      +        "additionalProperties": false,
      +        "description": "equity_filer_baseline: common stock only (option legs excluded); one holder per filer CIK; only filers with a usable prior-quarter baseline are classified. Same names/values as ko.io REST `changes`. Absent when ko.io did not send it.",
      +        "properties": {
      +          "added": {
      +            "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +          },
      +          "basis": {
      +            "description": "\"equity_filer_baseline\"",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "exited": {
      +            "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +          },
      +          "holders": {
      +            "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +          },
      +          "net_shares": {
      +            "$ref": "#/properties/latest/anyOf/0/properties/changes/properties/shares_added"
      +          },
      +          "net_value": {
      +            "$ref": "#/properties/latest/anyOf/0/properties/changes/properties/shares_added"
      +          },
      +          "new": {
      +            "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +          },
      +          "no_baseline": {
      +            "anyOf": [
      +              {
      +                "$ref": "#/properties/quarters_requested/anyOf/0"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "description": "Filers with no usable prior-quarter baseline: not classified as new/added/..."
      +          },
      +          "shares_added": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "shares_removed": {
      +            "$ref": "#/properties/latest/anyOf/0/properties/changes/properties/shares_added"
      +          },
      +          "trimmed": {
      +            "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +          },
      +          "unchanged": {
      +            "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +          },
      +          "value_added": {
      +            "$ref": "#/properties/latest/anyOf/0/properties/changes/properties/shares_added"
      +          },
      +          "value_removed": {
      +            "$ref": "#/properties/latest/anyOf/0/properties/changes/properties/shares_added"
      +          }
      +        },
      +        "required": [
      +          "basis",
      +          "new",
      +          "added",
      +          "trimmed",
      +          "exited",
      +          "unchanged",
      +          "no_baseline",
      +          "holders",
      +          "shares_added",
      +          "shares_removed",
      +          "net_shares",
      +          "value_added",
      +          "value_removed",
      +          "net_value"
      +        ],
      +        "type": "object"
      +      },
      +      "institutions_decreased": {
      +        "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +      },
      +      "institutions_exited": {
      +        "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +      },
      +      "institutions_increased": {
      +        "anyOf": [
      +          {
      +            "$ref": "#/properties/quarters_requested/anyOf/0"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "institutions_new": {
      +        "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +      },
      +      "institutions_total": {
      +        "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +      },
      +      "net_shares": {
      +        "anyOf": [
      +          {
      +            "pattern": "^-?\\d+(\\.\\d+)?([eE][-+]?\\d+)?$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Exact decimal string as served by ko.io (not rounded); null = unknown"
      +      },
      +      "net_value": {
      +        "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      +      },
      +      "quarter": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "shares_added": {
      +        "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      +      },
      +      "shares_removed": {
      +        "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      +      },
      +      "value_added": {
      +        "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      +      },
      +      "value_removed": {
      +        "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      +      }
      +    },
      +    "required": [
      +      "quarter",
      +      "institutions_increased",
      +      "institutions_decreased",
      +      "institutions_new",
      +      "institutions_exited",
      +      "net_shares",
      +      "net_value",
      +      "institutions_total",
      +      "shares_added",
      +      "shares_removed",
      +      "value_added",
      +      "value_removed"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / trend / items / properties / changes
      Added value: +{
      +  "$ref": "#/properties/latest/anyOf/0/properties/changes"
      +}
  3. Changed3 schema fields changed
    • removedInput schema / properties / quarters / default
      Removed value: -8
    • changedInput schema / properties / quarters / description
      Previous value: -"Number of quarters to return (default 8 = 2 years)"New value: +"Number of quarters to return. Omit for the plan default (Pro: 8 = 2 years; Free/keyless: the latest quarter only). An explicit value above what your plan allows returns a plan-limit error."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "latest": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "institutions_decreased": {
      +              "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +            },
      +            "institutions_exited": {
      +              "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +            },
      +            "institutions_increased": {
      +              "anyOf": [
      +                {
      +                  "$ref": "#/properties/quarters_requested/anyOf/0"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "institutions_new": {
      +              "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +            },
      +            "institutions_total": {
      +              "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +            },
      +            "net_shares": {
      +              "anyOf": [
      +                {
      +                  "pattern": "^-?\\d+(\\.\\d+)?([eE][-+]?\\d+)?$",
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "Exact decimal string as served by ko.io (not rounded); null = unknown"
      +            },
      +            "net_value": {
      +              "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      +            },
      +            "quarter": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "shares_added": {
      +              "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      +            },
      +            "shares_removed": {
      +              "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      +            },
      +            "value_added": {
      +              "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      +            },
      +            "value_removed": {
      +              "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      +            }
      +          },
      +          "required": [
      +            "quarter",
      +            "institutions_increased",
      +            "institutions_decreased",
      +            "institutions_new",
      +            "institutions_exited",
      +            "net_shares",
      +            "net_value",
      +            "institutions_total",
      +            "shares_added",
      +            "shares_removed",
      +            "value_added",
      +            "value_removed"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "plan_limit": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "continuation": {
      +              "$ref": "#/properties/latest/anyOf/0/properties/quarter"
      +            },
      +            "date_basis": {
      +              "$ref": "#/properties/latest/anyOf/0/properties/quarter"
      +            },
      +            "effective_period": {
      +              "$ref": "#/properties/latest/anyOf/0/properties/quarter"
      +            },
      +            "policy_version": {
      +              "$ref": "#/properties/latest/anyOf/0/properties/quarter"
      +            },
      +            "row_cap": {
      +              "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +            },
      +            "truncated": {
      +              "type": [
      +                "boolean",
      +                "null"
      +              ]
      +            },
      +            "window_end": {
      +              "$ref": "#/properties/latest/anyOf/0/properties/quarter"
      +            },
      +            "window_start": {
      +              "$ref": "#/properties/latest/anyOf/0/properties/quarter"
      +            }
      +          },
      +          "required": [
      +            "policy_version",
      +            "window_start",
      +            "window_end",
      +            "effective_period",
      +            "date_basis",
      +            "row_cap",
      +            "truncated",
      +            "continuation"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "The Free/keyless plan limits ko.io applied to this answer (null for paid callers)"
      +    },
      +    "plan_note": {
      +      "description": "Set when the plan limited how many quarters were returned",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "quarters_requested": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "null = the plan default was used"
      +    },
      +    "quarters_returned": {
      +      "type": "integer"
      +    },
      +    "ticker": {
      +      "type": "string"
      +    },
      +    "trend": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "institutions_decreased": {
      +            "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +          },
      +          "institutions_exited": {
      +            "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +          },
      +          "institutions_increased": {
      +            "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +          },
      +          "institutions_new": {
      +            "$ref": "#/properties/latest/anyOf/0/properties/institutions_increased"
      +          },
      +          "net_shares": {
      +            "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      +          },
      +          "net_value": {
      +            "$ref": "#/properties/latest/anyOf/0/properties/net_shares"
      +          },
      +          "quarter": {
      +            "$ref": "#/properties/latest/anyOf/0/properties/quarter"
      +          }
      +        },
      +        "required": [
      +          "quarter",
      +          "institutions_increased",
      +          "institutions_decreased",
      +          "institutions_new",
      +          "institutions_exited",
      +          "net_shares",
      +          "net_value"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "ticker",
      +    "quarters_requested",
      +    "quarters_returned",
      +    "latest",
      +    "trend",
      +    "plan_note",
      +    "plan_limit"
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations (readOnly, idempotent, non-destructive) already cover the safety profile, yet the description adds substantial behavioral detail beyond them: plan-limit gating (Free = latest quarter only, Pro = multi-quarter), a plan-limit error for oversized `quarters`, and the critical null-means-UNKNOWN-not-zero semantics. It also discloses the per-quarter comparability state machine (comparable / split_adjusted / not_comparable / first_reported), which an agent must handle correctly.

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 is dense but front-loaded with the core purpose, then proceeds through plan limits, structuredContent pointer, and null semantics in a logical order. Every sentence carries non-redundant information, though the final comparability sentence is heavy and could be slightly tightened.

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

Completeness5/5

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

With an output schema present, the description needn't enumerate fields, and instead explains the semantic pitfalls the schema cannot: null vs zero for share/value flows, comparability states per quarter, and plan-gated depth. An agent has everything needed to call it and interpret results correctly.

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 both parameters are already documented; the description still adds meaning by explaining the plan-default behavior when `quarters` is omitted and the plan-limit error raised by an explicit value above the plan allowance, which is not in the schema.

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?

States a specific verb and resource: institutional buying/selling activity trend over multiple quarters, plus the concrete data returned (buying vs selling counts, net share changes, value flows). This is clearly distinguishable from siblings like get_institution_holdings or get_stock_holders, which cover holdings rather than aggregated activity trends.

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

Usage Guidelines4/5

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

Gives use context ('useful for detecting accumulation or distribution patterns') and instructs on plan-gated usage ('Omit `quarters` to get the most your plan allows'), which is actionable invocation guidance. It stops short of naming when to prefer a sibling tool over this one, so it is clear context without explicit alternatives.

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.