Skip to main content
Glama

Random cards

random_references
Read-only

Draw random cards again on each call, with optional filters.

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

Input Schema

NameRequiredDescriptionDefault
kindNokind ids from list_facets.
langNoText language (default en).
pickNoEditorial pick id from list_facets.
tagsNoRequire all tag ids from list_facets.
toneNotone ids from list_facets.
countNoHow many cards (1-10).
sectorNosector ids from list_facets.
patternNoPattern id from list_facets.
categoryNoCategory id from list_facets.

Output Schema

NameRequiredDescriptionDefault
gapNo
goalNo
boardNo
queryYes
totalYes
filtersYes
resultsYes
warningsNo
fit_summaryYes
next_cursorNo
suggestionsNo
total_closeYes
corrected_queryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / lang / description
      Previous value: -"Language of the returned text: \"en\" (default) or \"pt\"."New value: +"Text language (default en)."
  2. Changed11 schema fields changed
    • changedInput schema / properties / category / description
      Previous value: -"Only cards in this category."New value: +"Category id from list_facets."
    • removedInput schema / properties / category / enum
      Removed value: -[
      -  "sites",
      -  "motion",
      -  "three",
      -  "components",
      -  "skills",
      -  "galleries",
      -  "data",
      -  "media-ai",
      -  "agents",
      -  "guides",
      -  "prompts"
      -]
    • addedInput schema / properties / kind
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  ],
      +  "description": "kind ids from list_facets."
      +}
    • addedInput schema / properties / pattern
      Added value: +{
      +  "description": "Pattern id from list_facets.",
      +  "type": "string"
      +}
    • addedInput schema / properties / pick
      Added value: +{
      +  "description": "Editorial pick id from list_facets.",
      +  "type": "string"
      +}
    • addedInput schema / properties / sector
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  ],
      +  "description": "sector ids from list_facets."
      +}
    • changedInput schema / properties / tags / description
      Previous value: -"Only cards that have ALL of these tags (e.g. free, open-source)."New value: +"Require all tag ids from list_facets."
    • removedInput schema / properties / tags / items / enum
      Removed value: -[
      -  "free",
      -  "open-source",
      -  "paid",
      -  "award-winning",
      -  "webgl",
      -  "scroll",
      -  "typography",
      -  "generative",
      -  "cursor-fx",
      -  "react",
      -  "figma",
      -  "no-code",
      -  "mcp",
      -  "claude-code",
      -  "cli",
      -  "learning"
      -]
    • removedInput schema / properties / tags / uniqueItems
      Removed value: -true
    • addedInput schema / properties / tone
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  ],
      +  "description": "tone ids from list_facets."
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "board": {
      +      "type": "string"
      +    },
      +    "corrected_query": {
      +      "type": "string"
      +    },
      +    "filters": {
      +      "properties": {
      +        "category": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "kind": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "pattern": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "pick": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "sector": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "since": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "sort": {
      +          "type": "string"
      +        },
      +        "tags": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "tone": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "category",
      +        "tags",
      +        "pattern",
      +        "pick",
      +        "kind",
      +        "sector",
      +        "tone",
      +        "sort",
      +        "since"
      +      ],
      +      "type": "object"
      +    },
      +    "fit_summary": {
      +      "properties": {
      +        "hidden_weak": {
      +          "type": "integer"
      +        },
      +        "nothing_close": {
      +          "type": "boolean"
      +        },
      +        "partial": {
      +          "type": "integer"
      +        },
      +        "strong": {
      +          "type": "integer"
      +        },
      +        "weak": {
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "strong",
      +        "partial",
      +        "weak",
      +        "hidden_weak",
      +        "nothing_close"
      +      ],
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "gap": {
      +      "properties": {
      +        "cards": {
      +          "type": "integer"
      +        },
      +        "label": {
      +          "type": "string"
      +        },
      +        "scope": {
      +          "enum": [
      +            "pages"
      +          ],
      +          "type": "string"
      +        },
      +        "sector": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "sector",
      +        "label",
      +        "cards",
      +        "scope"
      +      ],
      +      "type": "object"
      +    },
      +    "goal": {
      +      "properties": {
      +        "cards": {
      +          "type": "integer"
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "label": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "label"
      +      ],
      +      "type": "object"
      +    },
      +    "next_cursor": {
      +      "type": "string"
      +    },
      +    "query": {
      +      "type": "string"
      +    },
      +    "results": {
      +      "items": {
      +        "properties": {
      +          "added_on": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "category": {
      +            "type": "string"
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "intents": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "kind": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "sector": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "tone": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "url": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name",
      +          "url",
      +          "category"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "suggestions": {
      +      "items": {
      +        "properties": {
      +          "arguments": {
      +            "type": "object"
      +          },
      +          "tool": {
      +            "type": "string"
      +          },
      +          "why": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "tool",
      +          "arguments",
      +          "why"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "total": {
      +      "type": "integer"
      +    },
      +    "total_close": {
      +      "type": "integer"
      +    },
      +    "warnings": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "query",
      +    "filters",
      +    "total",
      +    "total_close",
      +    "fit_summary",
      +    "results"
      +  ],
      +  "type": "object"
      +}
  3. Changed3 schema fields changed
    • changedInput schema / properties / category / description
      Previous value: -"Only references in this category."New value: +"Only cards in this category."
    • changedInput schema / properties / count / description
      Previous value: -"How many references (1-10)."New value: +"How many cards (1-10)."
    • changedInput schema / properties / tags / description
      Previous value: -"Only references that have ALL of these tags (e.g. free, open-source)."New value: +"Only cards that have ALL of these tags (e.g. free, open-source)."
  4. First observed

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false and idempotentHint=false, so the safety profile is covered. The description usefully reinforces the non-idempotent behavior ("again on each call"), which explains what that hint means in practice. It stops short of stating what happens when filters match fewer than `count` items, or whether draws are with or without replacement.

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?

A single short sentence with no padding, and the core behavior (random, repeated) is front-loaded. It is lean to the point of thinness for a nine-parameter tool, but nothing in it is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 shape need not be restated, and the schema documents the facets. Still, for a tool with nine filter parameters and zero required ones, the description does not clarify how filters combine or what a no-match result looks like, leaving meaningful gaps for an agent deciding whether to call it.

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?

Schema description coverage is 100%, so every one of the nine parameters already carries a description, including where facet ids come from. The description adds only "optional filters", which does not extend meaning beyond the schema. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Draw random cards" gives a specific verb and resource, and "again on each call" signals randomness rather than lookup. However, it never differentiates itself from the many reference-lookup siblings (search_references, similar_references, show_references); the reader must infer that this is random sampling rather than filtered listing. The word "cards" also drifts from the tool name's "references".

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no exclusion of alternatives, and no mention of prerequisites such as needing ids from list_facets. "With optional filters" is the only usage hint, and it does not tell an agent when random sampling beats search_references or similar_references.

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