Skip to main content
Glama

Get file

codecks_get_file
Read-onlyIdempotent

Retrieve a single Codecks file by ID with optional field selection and relation expansion, returning markdown or JSON for inspection or structured processing.

Instructions

Get a single file by ID with optional field selection.

Available fields: createdAt, deletedAt, isDeleted, meta, name, selfHosted, size, url Relations: account, deletedBy, uploader

Example selection: ["createdAt", "deletedAt", "isDeleted"]

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

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

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is covered. The description adds the useful detail that field/relation selection is optional and enumerates what can be requested, but says nothing about behavior on a missing ID, permission requirements, or relation-expansion fallback beyond what the include_relations schema text already states.

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 action, then compact lists of fields and relations, then a short example. Everything earns its place, though the example array is marginally redundant given the field list.

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?

For a simple read-by-ID tool with full schema coverage, rich annotations, and no output schema, the description supplies the missing piece an agent actually needs: which fields and relations are selectable. Only error/edge-case behavior is absent, which is minor here.

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 would be 3; the description earns above baseline by enumerating the concrete selectable fields and relations and giving a literal example selection array, which the schema only describes generically as 'Selection array (fields/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?

States a specific verb and resource ('Get a single file by ID'), and the word 'single' implicitly distinguishes it from the sibling codecks_list_file. It is clear what the tool returns, though it never names an 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 implied by 'by ID' – an agent knows to use this when it already has a file identifier and wants one record rather than a list. No explicit when-to-use/when-not guidance or named alternative (e.g., list_file for browsing) is given.

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