cf_list_routes
List all Cloud Foundry routes in a given space. Provide a space GUID to retrieve routes for that space.
Instructions
List Cloud Foundry routes
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cf_list_routes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_guid | No |
Implementation Reference
- src/tools/cloud-foundry/index.ts:35-37 (handler)The handler for cf_list_routes. Makes a GET request to the CF v3/routes API endpoint with an optional space_guid filter.
server.tool("cf_list_routes", "List Cloud Foundry routes", { space_guid: z.string().optional(), }, async (p) => safeTool(() => client.get(`${base}/v3/routes`, {space_guids:p.space_guid}))); - Input schema for cf_list_routes: accepts an optional space_guid string parameter.
space_guid: z.string().optional(), - src/tools/cloud-foundry/index.ts:35-37 (registration)Registration of the cf_list_routes tool on the MCP server via server.tool().
server.tool("cf_list_routes", "List Cloud Foundry routes", { space_guid: z.string().optional(), }, async (p) => safeTool(() => client.get(`${base}/v3/routes`, {space_guids:p.space_guid}))); - src/server.ts:89-90 (registration)The Cloud Foundry tool registration is invoked in createServer() which registers all Cloud Foundry tools including cf_list_routes.
registerCloudFoundryTools(server, client, config); console.error(` ✓ Cloud Foundry (6 tools)`); - src/config.ts:78-78 (helper)The base URL constant for Cloud Foundry API, used as the endpoint for cf_list_routes requests.
CLOUD_FOUNDRY: "https://api.us-south.cf.cloud.ibm.com",