Skip to content

Reference

lg_api: Call the REST API

Markdown version

Call any Restolayer REST route (the spec is /v1/openapi.json) with your credentials. DELETE and merges need confirm: true.

  • Changes data: yes, and it can't be undone from here: it needs confirm: true
  • Credential scope: any signed-in key
  • Assistant level: any connected assistant (Read only and up)

Inputs

FieldTypeRequiredNotes
method"GET" | "POST" | "PATCH" | "PUT" | "DELETE"yes
pathstringyes
queryobjectno
bodyanyno
confirmbooleanno

Example MCP call

A tools/call request to https://manage.restolayer.com/mcp:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "lg_api",
    "arguments": {
      "method": "GET",
      "path": "/v1/workspaces"
    }
  }
}

All tools: MCP tools. Connecting: connect your assistant.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.