List Versions
list_versionsAll published versions of a package.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Package id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| versions | No | Array of semantic version strings |
list_versionsAll published versions of a package.
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Package id |
| Name | Required | Description | Default |
|---|---|---|---|
| versions | No | Array of semantic version strings |
Changes observed during successful MCP inspections.
Input schema / examplesAdded value: +[
+ {
+ "id": "Newtonsoft.Json"
+ }
+]Output schema / (root)Previous value: -nullNew value: +{
+ "description": "List of all published versions for a package",
+ "properties": {
+ "versions": {
+ "description": "Array of semantic version strings",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+}Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is clear. The description adds no additional behavioral context beyond stating the result is a list of versions. It does not contradict the annotations, but also does not enhance them.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise (4 words) and front-loaded with the key action. Every word adds value, though it could be restructured as a full sentence for clarity. The brevity is acceptable for a simple tool.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (one input, explicit output schema), the description is fairly complete. The annotations cover safety, and the schema covers parameters and return values. However, it omits details like ordering or inclusion of prerelease versions, which might be inferred from the output schema.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has a single parameter 'id' with a description 'Package id', providing 100% coverage. The description adds no additional meaning beyond what the schema already communicates. A score of 3 is appropriate as the schema carries the burden adequately.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states that the tool lists all published versions of a package. It implicitly distinguishes from sibling tools like 'get_package' and 'latest_version' by focusing on 'versions' rather than package metadata or a single version. However, it could be more explicit about the scope (e.g., 'list all' vs 'list filtered').
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives such as 'latest_version' or 'get_package'. There is no mention of prerequisites (e.g., package existence), context of use, or exclusions. The agent must infer usage from the tool name alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.