veryfront__write_cache_entry
ttl_seconds defaults to 300.
Requires project.cache.write.
Access
No external-service connection is required. Use a Veryfront credential with access to the requested resources.
Call type: Can change resources.
Arguments
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.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "veryfront__write_cache_entry",
"arguments": {
"key": "example",
"value": "example"
}
}
}Result
The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.
Full schemas
{
"type": "object",
"properties": {
"project_reference": {
"type": "string",
"description": "Project ID or slug; optional on a project-scoped connection"
},
"key": {
"type": "string",
"minLength": 1,
"maxLength": 512,
"pattern": "^[a-zA-Z0-9_:.\\-/]+$",
"description": "Cache key, 1 to 512 characters: letters, digits, underscore, colon, dot, hyphen and slash. No \".\" or \"..\" segments between slashes."
},
"value": {
"type": "string",
"description": "UTF-8 string value. Values over 1 KB are stored compressed."
},
"ttl_seconds": {
"type": "integer",
"minimum": 1,
"maximum": 86400,
"description": "Seconds until the entry expires, 1 to 86400. Defaults to 300 when omitted; the previous TTL is never kept."
}
},
"required": [
"key",
"value"
],
"additionalProperties": false,
"description": "Arguments for the write_cache_entry tool.",
"$schema": "http://json-schema.org/draft-07/schema#"
}{
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "Cache key."
},
"expires_at": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null",
"description": "The expires at returned by the tool."
}
],
"description": "RFC 3339 UTC time the entry expires, or null for a miss or for an entry written through the legacy no-expiry path (ttl=0)."
}
},
"required": [
"key",
"expires_at"
],
"additionalProperties": false,
"description": "A cache entry without its value.",
"$schema": "http://json-schema.org/draft-07/schema#"
}