persons.get
Retrieve specific person details from Ryft MCP using account and person identifiers to access financial resource information.
Instructions
Get a Ryft person by id.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | ||
| personId | Yes |
Implementation Reference
- src/tools/persons.ts:69-77 (handler)The handler for persons.get which performs a GET request to retrieve a person by their ID.
registerTool( 'persons.get', 'Get a Ryft person by id.', getPersonSchema.shape, async (args) => { const { accountId, personId } = getPersonSchema.parse(args); return client.get(`/accounts/${accountId}/persons/${personId}`); }, ); - src/tools/persons.ts:41-44 (schema)Schema definition for persons.get tool inputs.
const getPersonSchema = z.object({ accountId: z.string().min(1), personId: z.string().min(1), }); - src/tools/persons.ts:46-46 (registration)Registration function for person-related tools including persons.get.
export function registerPersonTools(registerTool: ToolRegistrar, client: RyftHttpClient) {