Skip to main content
Glama

Form4API — SEC Insider Trading

API usage history

get_usage_history
Read-onlyIdempotent

Daily request counts for the authenticated key over a trailing window. Returns a daily time series of request counts for the authenticated API key over the trailing N days — one data point per calendar day (UTC). Use this to plot usage trends or check rate-limit headroom over time. For a single current-day snapshot (today's count, plan limit, reset time) use GET /v1/keys/usage instead; for a raw request-by-request log use GET /v1/keys/usage/activity. Requires a valid X-Api-Key (401 without one). Limited to 30 requests per minute per API key, shared with the other /v1/keys/usage routes (429 KEY_USAGE_RATE_LIMIT).

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_usage_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoNumber of trailing days to include, ending today (UTC). Defaults to 30, maximum 90.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, so safety is covered; the description goes further by disclosing the auth requirement (X-Api-Key, 401 without one), a concrete rate limit (30 req/min shared across the /v1/keys/usage routes) with the 429 KEY_USAGE_RATE_LIMIT error, and the UTC day boundary. These are operational facts the annotations cannot convey and they directly affect how an agent should throttle and parse results.

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?

Front-loaded with the core output shape, then usage guidance, then operational constraints — a sensible ordering. The first and second sentences overlap substantially ('daily request counts over a trailing window' vs. 'daily time series of request counts over the trailing N days'), which is mild redundancy in an otherwise dense, waste-free description.

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?

No output schema exists, but the description compensates by describing the return shape (one count per UTC calendar day over N days). Combined with auth, rate-limit, and alternative-routing details, an agent has everything needed to call this correctly without further discovery.

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?

Schema description coverage is 100% and the single `days` parameter is already documented with default 30 and max 90 in the schema. The description reinforces that the window ends today in UTC and that each point is a calendar day, but adds no format or behavior detail beyond that. Baseline 3 is appropriate when the schema carries the parameter burden.

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?

The opening sentence names a specific resource (request counts), subject (authenticated key), and scope (trailing window), and the second sentence pins the granularity to one data point per UTC calendar day. It also separates itself from a same-day snapshot and a per-request log, so an agent can tell it apart from check_usage and get_key_activity.

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

Usage Guidelines5/5

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

Explicitly states the use case ('plot usage trends or check rate-limit headroom over time') and then names two alternatives with the exact condition that selects each: a single current-day snapshot vs. a raw request-by-request log. The only minor friction is that alternatives are referenced by HTTP path rather than tool name, requiring a small mapping step.

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.