Skip to main content
Glama

kvasir — Open Legal Grounding

get_collection

Read-onlyIdempotent

Read one of the user's collections by name or id → its items as canonical URIs + titles. include="content" also returns the legal objects themselves (text, citation, provenance — as get_legal_object) for up to 50 items, so the collection can serve directly as working context. Items without a URI (e.g. essays) are listed but cannot be resolved.

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": {
      "collection": "<collection>"
    },
    "name": "get_collection"
  }
}

Input Schema

NameRequiredDescriptionDefault
includeNo
collectionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds genuinely non-obvious behavior: a hard 50-item ceiling when include="content" is set, and the caveat that items lacking a URI are listed but unresolvable. It doesn't say what happens to items beyond the 50th (truncation vs. error vs. silent omission), which is the one behavioral unknown left.

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?

Three dense sentences, front-loaded with the primary contract, then the optional mode, then the edge case. No restatement of the tool name or filler.

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?

No output schema exists, so the description must describe returns, and it does (URIs + titles, or full legal objects). The remaining gap is the failure/truncation path for collections larger than the 50-item include cap and what an unresolvable item looks like in the payload.

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?

With 0% schema description coverage, the description carries the full burden and does well: it tells the agent that `collection` accepts either a name or an id, and that `include` takes the literal value "content" (the schema has no enum, so this is undiscoverable otherwise). It stops short of listing other legal `include` values or saying what the default empty string yields.

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 description names a specific verb and resource ("Read one of the user's collections") and states the return shape ("its items as canonical URIs + titles"), which cleanly separates it from list_collections (enumeration) and get_legal_object (single-object fetch). The arrow notation makes input-to-output mapping explicit.

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?

It clearly frames the two modes: default listing versus include="content" which turns the collection into working context, and it implies the bulk-read case is the reason to pick this over repeated per-item calls. What's missing is any explicit statement of when to prefer this over get_legal_objects or list_collections, or a precondition note for unresolved items.

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.