Skip to main content
Glama

nexus_get_repository_size

Measure a repository's total on-disk size and return asset and component counts to assess storage usage.

Instructions

Return total on-disk size (bytes/KiB/MiB/GiB) plus asset and component counts for a repository.

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": {
      "repository_name": "<repository_name>"
    },
    "name": "nexus_get_repository_size"
  }
}

Input Schema

NameRequiredDescriptionDefault
repository_nameYesName of the repository to measure

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does disclose the shape of the result (size units plus asset and component counts), which is useful, but it says nothing about whether the call is read-only, whether counting is expensive or cached, whether permissions are required, or how an unknown repository name is handled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One sentence, front-loaded with the primary result and following with the secondary counts. Every clause adds information and there is no filler or repetition of the tool name.

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 simple single-parameter read tool with no output schema, the description covers both the metric and its units plus the ancillary counts, which is enough for an agent to call it correctly. The remaining gap is behavioral context that annotations would normally supply, such as read-only status and error behavior.

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 required parameter with 100% schema description coverage, so the schema already explains repository_name. The phrase 'for a repository' adds nothing beyond that, which is the baseline case for a well-documented one-parameter tool.

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 states a specific verb and resource: return total on-disk size plus asset and component counts for a repository. It is unambiguous as a measurement/metrics tool and is naturally distinct from the sibling nexus_get_repository, which would return metadata, though the description never says so explicitly.

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?

When-to-use is only implied by the purpose — an agent can infer it should call this when it needs size or count figures for one repository. There is no statement of when not to use it, no mention of alternatives such as nexus_list_repositories for scanning multiple repositories, and no prerequisites.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.