Create run event token

veryfront__create_run_event_token

Access

No external-service connection is required. Use a Veryfront credential with access to the requested resources.

Call type: Can read or manage credentials.

Arguments

FieldTypeRequiredDescription and constraints
run_idstringYesNonterminal direct child of the credential-bound run. Requires a runtime credential allowed to delegate under the current execution generation or executor lease. Unrelated runs are hidden as not found (404); a terminal parent or child, stale generation, authentication-parked child, or detached child generation returns 409. The resulting event-writer token is bound to this child run. Modern tokens cannot mint event tokens. Tokens issued under an execution or worker generation retain that generation. For executor-lease-only parent credentials, the lease is checked at issuance; the child token does not retain executorLeaseOwner. Only the retained legacy route preserves nested delegation for delegating generation-bound credentials. It cannot read events, finalize, heartbeat or create children. Format: uuid.

Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.

request.json
{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "veryfront__create_run_event_token",    "arguments": {      "run_id": "00000000-0000-4000-8000-000000000000"    }  }}

Result

The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.

FieldTypeRequiredDescription and constraints
tokenstringYesThe token returned by the tool. Minimum length: 1.
token_typestringYesThe token type returned by the tool. Values: "Bearer".
expires_atstringYesThe expires at returned by the tool. Format: date-time.
run_idstringYesRun identifier associated with this result. Format: uuid.
permissionsstring[]YesList of permissions returned by the tool.

Full schemas

input-schema.json
{  "type": "object",  "properties": {    "run_id": {      "type": "string",      "format": "uuid",      "description": "Nonterminal direct child of the credential-bound run. Requires a runtime credential allowed to delegate under the current execution generation or executor lease. Unrelated runs are hidden as not found (404); a terminal parent or child, stale generation, authentication-parked child, or detached child generation returns 409. The resulting event-writer token is bound to this child run. Modern tokens cannot mint event tokens. Tokens issued under an execution or worker generation retain that generation. For executor-lease-only parent credentials, the lease is checked at issuance; the child token does not retain executorLeaseOwner. Only the retained legacy route preserves nested delegation for delegating generation-bound credentials. It cannot read events, finalize, heartbeat or create children."    }  },  "required": [    "run_id"  ],  "additionalProperties": false,  "$schema": "http://json-schema.org/draft-07/schema#",  "description": "Arguments for the create_run_event_token tool."}
output-schema.json
{  "type": "object",  "properties": {    "token": {      "type": "string",      "minLength": 1,      "description": "The token returned by the tool."    },    "token_type": {      "type": "string",      "enum": [        "Bearer"      ],      "description": "The token type returned by the tool."    },    "expires_at": {      "type": "string",      "format": "date-time",      "description": "The expires at returned by the tool."    },    "run_id": {      "type": "string",      "format": "uuid",      "description": "Run identifier associated with this result."    },    "permissions": {      "type": "array",      "items": {        "type": "string",        "enum": [          "run.events.append"        ],        "description": "One permission item returned by the tool."      },      "minItems": 1,      "maxItems": 1,      "description": "List of permissions returned by the tool."    }  },  "required": [    "token",    "token_type",    "expires_at",    "run_id",    "permissions"  ],  "additionalProperties": false,  "description": "A short-lived event-append credential for the target child run; never grants finalization, heartbeat, or child creation.",  "$schema": "http://json-schema.org/draft-07/schema#"}