Tool Details: covia_read

Basic Information

Tool Name:covia_read
Asset Name:Read Lattice Data
Description:Read a value from any lattice path. Examples: w/vendor-records/acme (workspace data), v/ops/covia/write (operation metadata), did:key:<id>/w/shared (cross-user read). Returns {exists, value}. For large values use covia_list to check size first, covia_slice for pagination, or covia_inspect for a budget-controlled summary.
Adapter:covia
Asset Hash:0x8f43df1d52eaab740aa8735ae2b06dad92adb5d251661d271a63388b8fdeded8
Input
PropertyTypeDescription
path*anyAny resolvable lattice path (e.g. 'w/my-notes', 'o/my-op', 'v/ops/json/merge', '/a/<hash>', 'did:web:...', 'g/my-agent/state'). Deep paths walk into nested maps and vectors.
maxSizeintegerMaximum memory size in bytes for the returned value (default 1000000). If exceeded, returns truncated: true with the size.
Output
PropertyTypeDescription
valueanyThe value at the path, or null if not found or truncated
truncatedbooleanPresent and true only if the value exceeded maxSize and was not returned. Omitted otherwise.
existsbooleanTrue if data exists at this path
valueBytesintegerEncoding size in bytes of the value at the path. Always present (0 when the path does not exist).

MCP Tool Usage Examples

This tool can be called via the MCP (Model Context Protocol) endpoint. Here are examples of how to use it:

JSON-RPC Call Example:

POST to https://api.getmine.ai/mcp

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "covia_read",
    "arguments": {
      "input": "your input here"
    }
  }
}
cURL Example:
curl -X POST https://api.getmine.ai/mcp \\
  -H "Content-Type: application/json" \\
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "covia_read",
      "arguments": {
        "input": "your input here"
      }
    }
  }'
Python Example:
import requests
import json

url = "https://api.getmine.ai/mcp"
payload = {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
        "name": "covia_read",
        "arguments": {
            "input": "your input here"
        }
    }
}

response = requests.post(url, json=payload)
result = response.json()
print(result)
JavaScript/Node.js Example:
const fetch = require('node-fetch');

const url = 'https://api.getmine.ai/mcp';
const payload = {
    jsonrpc: '2.0',
    id: 1,
    method: 'tools/call',
    params: {
        name: 'covia_read',
        arguments: {
            input: 'your input here'
        }
    }
};

fetch(url, {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify(payload)
})
.then(response => response.json())
.then(data => console.log(data));

Asset Metadata

{
	"name": "Read Lattice Data",
	"description": "Read a value from any lattice path. Examples: w/vendor-records/acme (workspace data), v/ops/covia/write (operation metadata), did:key:<id>/w/shared (cross-user read). Returns {exists, value}. For large values use covia_list to check size first, covia_slice for pagination, or covia_inspect for a budget-controlled summary.",
	"dateCreated": "2026-03-07T00:00:00Z",
	"operation": {
		"adapter": "covia:read",
		"toolName": "covia_read",
		"input": {
			"type": "object",
			"properties": {
				"path": {
					"description": "Any resolvable lattice path (e.g. 'w/my-notes', 'o/my-op', 'v/ops/json/merge', '/a/<hash>', 'did:web:...', 'g/my-agent/state'). Deep paths walk into nested maps and vectors."
				},
				"maxSize": {
					"type": "integer",
					"description": "Maximum memory size in bytes for the returned value (default 1000000). If exceeded, returns truncated: true with the size."
				}
			},
			"required": ["path"]
		},
		"output": {
			"type": "object",
			"properties": {
				"exists": { "type": "boolean", "description": "True if data exists at this path" },
				"value": { "description": "The value at the path, or null if not found or truncated" },
				"truncated": { "type": "boolean", "description": "Present and true only if the value exceeded maxSize and was not returned. Omitted otherwise." },
				"valueBytes": { "type": "integer", "description": "Encoding size in bytes of the value at the path. Always present (0 when the path does not exist)." }
			}
		}
	}
}

Navigation

Back to adapter details

Back to all adapters

Back to index