Skip to main content
Glama

Get accountRole

codecks_get_account_role
Read-onlyIdempotent

Retrieve a single account role by ID, with optional field selection and relation expansion, to inspect role details, timestamps, account, or user data.

Instructions

Get a single accountRole by ID with optional field selection.

Available fields: createdAt, lastChangedAt, role, roleAsPrio Relations: account, user

Example selection: ["createdAt", "lastChangedAt", "role"]

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_account_role"
  }
}

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.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds genuinely useful context about which fields and relations exist and what selection accepts, but says nothing about behavior when an ID is missing or invalid, or what happens to unselected fields.

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 core operation, followed by the field/relation lists and a single illustrative example — all earning their place. Minor redundancy in restating 'optional field selection' before listing the fields.

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?

A four-parameter, single-record read tool with full schema coverage and rich annotations. The description supplies the one thing the schema cannot: the enumerated field and relation vocabulary for the untyped selection array. Nothing essential for correct invocation is 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 baseline is 3, and the description exceeds it by enumerating valid selection values (createdAt, lastChangedAt, role, roleAsPrio) and relation names (account, user) that the schema leaves as an untyped array, plus a concrete example. It does not, however, explain the interaction between selection and include_relations.

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?

Names a specific verb and resource ('Get a single accountRole by ID') and states the scope as singular-by-identifier, which implicitly separates it from the list sibling. It stops short of naming codecks_list_account_role explicitly, so differentiation is inferable rather than stated.

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?

The 'single ... by ID' phrasing implies the lookup use case and the field-selection option implies the sparse-fetch use case, but there is no explicit when-to-use/when-not guidance and no named alternative for retrieving many records or for other accountRole operations.

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