liara_get_plan
Retrieve details for a specific cloud infrastructure plan by providing its ID to manage resources on the Liara platform.
Instructions
Get details of a specific plan
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| planId | Yes | The plan ID |
Implementation Reference
- src/services/plans.ts:23-28 (handler)The core handler implementation for the 'liara_get_plan' MCP tool. This function takes a LiaraClient and planId, then fetches the specific plan details from the Liara API endpoint /v1/plans/{planId}. Matches the tool signature and logic.export async function getPlan( client: LiaraClient, planId: string ): Promise<Plan> { return await client.get<Plan>(`/v1/plans/${planId}`); }
- src/api/types.ts:312-320 (schema)TypeScript interface defining the Plan object structure returned by the liara_get_plan tool. Used in the function signature and API responses.export interface Plan { _id: string; name: string; cpu: number; memory: number; // in MB disk: number; // in GB price: number; type: 'app' | 'database' | 'vm'; }