Skip to main content
Glama

Get cardOrderInDeck

codecks_get_card_order_in_deck
Read-onlyIdempotent

Retrieve a card's position within a Codecks deck by ID, with optional field selection or related card, changer, and deck details.

Instructions

Get a single cardOrderInDeck by ID with optional field selection.

Available fields: sortIndex Relations: card, changer, deck

Example selection: ["sortIndex"]

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": {
      "id": "<id>"
    },
    "name": "codecks_get_card_order_in_deck"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesModel ID
selectionNoSelection array (fields/relations)
response_formatNoOutput format: 'markdown' for human-readable or 'json' for structured datamarkdown
include_relationsNoAttempt safe first-level relation expansion with guarded fallback

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds useful detail about which fields and relations can be requested, but says nothing about error behavior for an unknown ID or what include_relations does when the guarded fallback triggers.

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?

The definition is short and front-loaded with the core operation, then the field/relation inventory, then a concrete example. The example line repeats 'sortIndex' already listed above, which is mild redundancy but serves as a syntax illustration.

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?

With no output schema, the description should ideally convey what a cardOrderInDeck record looks like beyond sortIndex and what happens on a missing ID. It covers selectable fields and relations adequately for a simple getter but leaves the return shape and failure mode implicit.

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 would be 3, but the description goes further by enumerating the only selectable field (sortIndex) and the available relations (card, changer, deck), which the schema does not do because 'selection' is an untyped array. That is real meaning added beyond the structured fields.

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: 'Get a single cardOrderInDeck by ID.' The word 'single' plus 'by ID' implicitly distinguishes it from the list sibling codecks_list_card_order_in_deck, though it never names that alternative 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?

Usage is only implied by 'single ... by ID'; there is no explicit statement of when to prefer this over codecks_list_card_order_in_deck or codecks_get_card_order, and no preconditions or exclusions are given. An agent can infer the fetch-one-by-key case but gets no routing guidance.

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

Deploy Server

Other Tools