Skip to main content
Glama

Get corpus size and freshness

get_corpus_stats
Read-only

Return live statistics about the Workers' Rights corpus: total number of collected court records in the research corpus, number of public attorney listings, number of monitored legal data sources, the date the corpus was last updated, and the distribution of reportable outcomes before the employment browse filter. Use this to establish scale/credibility or to answer 'how much data do you have / how current is it'.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
_attributionNoSource and disclaimer for this result: Workers' Rights, its URL, the attribution line, and that the result is educational information, not legal advice.
last_updatedNoWhen the corpus was last updated.
rulings_totalNoCourt records in the research corpus.
attorneys_totalNoPublic attorney listings.
monitored_sourcesNoMonitored legal data sources.
employers_profiledNoEmployers with enough history to profile.
outcome_distributionNoCounts of reportable outcomes.
federal_dockets_totalNoFederal docket records on file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "_attribution": {
      +      "description": "Source and disclaimer for this result: Workers' Rights, its URL, the attribution line, and that the result is educational information, not legal advice.",
      +      "properties": {
      +        "disclaimer": {
      +          "type": "string"
      +        },
      +        "line": {
      +          "type": "string"
      +        },
      +        "source": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "attorneys_total": {
      +      "description": "Public attorney listings.",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "employers_profiled": {
      +      "description": "Employers with enough history to profile.",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "federal_dockets_total": {
      +      "description": "Federal docket records on file.",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "last_updated": {
      +      "description": "When the corpus was last updated.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "monitored_sources": {
      +      "description": "Monitored legal data sources.",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "outcome_distribution": {
      +      "description": "Counts of reportable outcomes.",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "rulings_total": {
      +      "description": "Court records in the research corpus.",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description still adds real context beyond them: the statistics are 'live', and the outcome distribution is reported 'before the employment browse filter', which warns the agent the numbers will not match a filtered browse view.

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 sentences, front-loaded with the verb and the payload, with no filler or marketing language. The first sentence is a long enumeration, but each listed item corresponds to a distinct returned metric, so nothing is padding.

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?

An output schema exists, so return values need not be explained, yet the description still names the headline metrics an agent would want to cite. With zero parameters and full annotation coverage, nothing needed for correct invocation is missing.

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?

The tool takes no parameters, so there is no parameter meaning to convey; baseline for a zero-parameter tool is 4. The description correctly implies a single global, unparameterized snapshot rather than suggesting any filtering options exist.

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 ('Return live statistics about the Workers' Rights corpus') and then enumerates exactly what is returned: record count, attorney listings, monitored source count, last-updated date, and outcome distribution. That level of specificity makes it unmistakably distinct from the record-lookup siblings in the catalog.

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?

Explicitly names the use case — establishing scale/credibility or answering 'how much data do you have / how current is it'. It gives clear positive guidance but no exclusions or named alternatives for cases where an agent instead needs per-record data.

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