Skip to main content
Glama

runway_getOrg

Retrieve organization details including credit balance and usage information to monitor account resources and track API consumption.

Instructions

Returns details like credit balance, usage details, and organization information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Inline handler function for the 'runway_getOrg' tool. Fetches organization details from Runway API using callRunway helper and returns the JSON stringified response.
    async () => { const org = await callRunway("/organization"); return { content: [{ type: "text", text: JSON.stringify(org) }] }; }
  • src/index.ts:210-218 (registration)
    Registration of the 'runway_getOrg' tool using server.tool, including name, description, empty input schema, and inline handler.
    server.tool( "runway_getOrg", "Returns details like credit balance, usage details, and organization information.", {}, async () => { const org = await callRunway("/organization"); return { content: [{ type: "text", text: JSON.stringify(org) }] }; } );
  • Empty input schema (zod validation) for the 'runway_getOrg' tool, indicating no parameters required.
    {},
  • Helper function used by the tool handler to make authenticated API requests to the RunwayML backend.
    async function callRunway( path: string, opts: Partial<RequestInit> = {} ): Promise<unknown> { const res = await fetch(`${API_BASE}${path}`, { ...opts, headers: { Authorization: `Bearer ${SECRET}`, "X-Runway-Version": RUNWAY_VERSION, "Content-Type": "application/json", ...(opts.headers || {}), }, } as RequestInit); if (!res.ok) throw new Error(`Runway ${res.status}: ${await res.text()}`); return res.json(); }

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/runwayml/runway-api-mcp-server'

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