Skip to main content
Glama

files.get

Retrieve a specific file using its unique identifier from the Ryft MCP server for financial resource management.

Instructions

Get a file by id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
accountIdNo

Implementation Reference

  • The handler implementation for the 'files.get' tool, which uses the Ryft client to fetch a file by its ID.
    registerTool(
      'files.get',
      'Get a file by id.',
      getFileSchema.shape,
      async (args) => {
        const { id, accountId } = getFileSchema.parse(args);
        return client.get(`/files/${id}`, accountId ? { accountId } : undefined);
      },
    );
  • The Zod schema definition for input validation for the 'files.get' tool.
    const getFileSchema = z.object({
      id: z.string().min(1),
      accountId: z.string().optional(),
    });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bkawk/ryft-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server