Skip to main content
Glama

List cards

list_cards
Read-only

Use this when the user wants to see, find or check their cards, and before update_cards or delete_cards. Returns whole cards and editable sources, newest first, by deck or search text, with authenticated media URLs (GET with the connector Bearer token; never speak URLs or markup). Sources show cloze answers, so quiz with start_study_session. Edits to a shared source reach its sibling_card_ids. Page with next_cursor as before_card_id while has_more; trust has_more, not the count.

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": "list_cards"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckNoFilter to one deck by name.
limitNoCards per page, 1-500; 50 when omitted.
searchNoSubstring search over fronts and backs.
before_card_idNoFor the next page: the next_cursor the previous page returned.

Output Schema

NameRequiredDescriptionDefault
cardsYes
has_moreYes
next_cursorYes
total_countYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedOutput schema / $defs / CardOut / required
      Previous value: -[
      -  "card_id",
      -  "deck_id",
      -  "ord",
      -  "front_html",
      -  "back_html",
      -  "source",
      -  "media"
      -]New value: +[
      +  "card_id",
      +  "deck_id",
      +  "ord",
      +  "cloze_index",
      +  "type_answer",
      +  "front_html",
      +  "back_html",
      +  "source",
      +  "media"
      +]
    • changedOutput schema / $defs / SourceOut / required
      Previous value: -[
      -  "note_type",
      -  "front_html",
      -  "back_html",
      -  "tags",
      -  "sibling_card_ids"
      -]New value: +[
      +  "read_only_reason",
      +  "note_id",
      +  "note_type",
      +  "front_html",
      +  "back_html",
      +  "tags",
      +  "sibling_card_ids"
      +]
    • changedOutput schema / required
      Previous value: -[
      -  "cards",
      -  "total_count",
      -  "has_more"
      -]New value: +[
      +  "cards",
      +  "total_count",
      +  "next_cursor",
      +  "has_more"
      +]
  2. Changed2 schema fields changed
    • addedInput schema / properties / before_card_id / description
      Added value: +"For the next page: the next_cursor the previous page returned."
    • addedInput schema / properties / limit / description
      Added value: +"Cards per page, 1-500; 50 when omitted."
  3. Changed19 schema fields changed
    • addedInput schema / properties / before_card_id
      Added value: +{
      +  "format": "int64",
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • removedOutput schema / $defs / CardOut / properties / back
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / $defs / CardOut / properties / back_html
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / $defs / CardOut / properties / cloze_index
      Added value: +{
      +  "format": "uint32",
      +  "minimum": 0,
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • addedOutput schema / $defs / CardOut / properties / deck_id
      Added value: +{
      +  "format": "int64",
      +  "type": "integer"
      +}
    • removedOutput schema / $defs / CardOut / properties / front
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / $defs / CardOut / properties / front_html
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / $defs / CardOut / properties / media
      Added value: +{
      +  "items": {
      +    "$ref": "#/$defs/MediaOut"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / $defs / CardOut / properties / ord
      Added value: +{
      +  "format": "uint32",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / $defs / CardOut / properties / source
      Added value: +{
      +  "$ref": "#/$defs/SourceOut"
      +}
    • removedOutput schema / $defs / CardOut / properties / tags
      Removed value: -{
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / $defs / CardOut / properties / type_answer
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / $defs / CardOut / required
      Previous value: -[
      -  "card_id",
      -  "front",
      -  "back",
      -  "tags"
      -]New value: +[
      +  "card_id",
      +  "deck_id",
      +  "ord",
      +  "front_html",
      +  "back_html",
      +  "source",
      +  "media"
      +]
    • addedOutput schema / $defs / MediaOut
      Added value: +{
      +  "properties": {
      +    "filename": {
      +      "type": "string"
      +    },
      +    "media_id": {
      +      "format": "int64",
      +      "type": "integer"
      +    },
      +    "mime": {
      +      "type": "string"
      +    },
      +    "size": {
      +      "format": "uint64",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "url": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "media_id",
      +    "url",
      +    "mime",
      +    "filename",
      +    "size"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / $defs / SourceOut
      Added value: +{
      +  "properties": {
      +    "back_html": {
      +      "type": "string"
      +    },
      +    "front_html": {
      +      "type": "string"
      +    },
      +    "note_id": {
      +      "format": "int64",
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "note_type": {
      +      "type": "string"
      +    },
      +    "read_only_reason": {
      +      "description": "Non-null when a legacy import lacks a lossless editable source.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "sibling_card_ids": {
      +      "items": {
      +        "format": "int64",
      +        "type": "integer"
      +      },
      +      "type": "array"
      +    },
      +    "tags": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "note_type",
      +    "front_html",
      +    "back_html",
      +    "tags",
      +    "sibling_card_ids"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / has_more
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / next_cursor
      Added value: +{
      +  "format": "int64",
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / total_count
      Added value: +{
      +  "format": "uint32",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "cards"
      -]New value: +[
      +  "cards",
      +  "total_count",
      +  "has_more"
      +]
  4. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare it is a safe, closed read; the description goes well beyond that with sort order, media URL authentication requirements ('GET with the connector Bearer token; never speak URLs or markup'), the side-effect fact that edits to a shared source reach sibling_card_ids, and a pagination contract ('trust has_more, not the count'). It stops short of describing error or empty-result behavior, which keeps it out of the top band.

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 usage trigger, then return shape, then pagination, with essentially no filler. The middle sentences are dense and pack several distinct contracts (media auth, cloze answers, sibling propagation) into short clauses, which is efficient but requires careful reading.

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?

Returns are covered by an output schema and the description still adds the parts an agent must know operationally: ordering, filter modes, pagination loop, and the side effect that edits propagate to sibling cards. Nothing needed to call this correctly appears to be 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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: it frames deck/search as alternative filters and explains how paging works by feeding the previous page's next_cursor into before_card_id, and that has_more rather than a count governs continuation. That clarifies a parameter interaction the schema alone does not express.

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 uses a specific verb-and-resource framing ('see, find or check their cards') and states the exact return shape: whole cards and editable sources, newest first, filtered by deck or search text. It distinguishes itself from mutation siblings (update_cards, delete_cards) and from quizzing (start_study_session), so an agent can place it precisely without opening the schema.

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?

Explicit when-to-use trigger ('when the user wants to see, find or check their cards'), explicit sequencing rule ('before update_cards or delete_cards'), and an explicit redirect for the adjacent quiz case ('Sources show cloze answers, so quiz with start_study_session'). Both the selecting condition and the alternatives are named.

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.