Skip to main content
Glama

permutations

Calculate ordered arrangements of k items from a set of n items using the permutations tool in PyMCP. Ideal for solving combinatorial problems.

Instructions

Calculate the number of ways to choose k items from n items without repetition and with order. If k is not provided, it defaults to n.

Input Schema

NameRequiredDescriptionDefault
kNoThe optional number of items to choose.
nYesThe number of items to choose from.

Input Schema (JSON Schema)

{ "properties": { "k": { "anyOf": [ { "minimum": 1, "type": "integer" }, { "type": "null" } ], "default": null, "description": "The optional number of items to choose.", "title": "K" }, "n": { "description": "The number of items to choose from.", "minimum": 1, "title": "N", "type": "integer" } }, "required": [ "n" ], "type": "object" }
Install Server

Other Tools from PyMCP

Related Tools

    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/anirbanbasu/pymcp'

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