Skip to main content
Glama

Account and sites

onelence_get_account
Read-onlyIdempotent

The connected workspace, your role, the plan and what it unlocks, AI credit usage, the team and the registered sites (pass a site's domain as site to other tools).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "onelence_get_account"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
teamYes
linksYes
sitesYes
objectYes
workspaceYes
ai_creditsYes
connectionYes
subscriptionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "ai_credits": {
      +      "anyOf": [
      +        {
      +          "properties": {
      +            "allocated": {
      +              "anyOf": [
      +                {
      +                  "type": "number"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "remaining": {
      +              "anyOf": [
      +                {
      +                  "type": "number"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "used": {
      +              "anyOf": [
      +                {
      +                  "type": "number"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            }
      +          },
      +          "required": [
      +            "used",
      +            "remaining",
      +            "allocated"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "connection": {
      +      "properties": {
      +        "app": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "scopes": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "via": {
      +          "enum": [
      +            "oauth",
      +            "personal_access_token"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "app",
      +        "via",
      +        "scopes"
      +      ],
      +      "type": "object"
      +    },
      +    "links": {
      +      "properties": {
      +        "billing": {
      +          "type": "string"
      +        },
      +        "connected_apps": {
      +          "type": "string"
      +        },
      +        "dashboard": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "dashboard",
      +        "billing",
      +        "connected_apps"
      +      ],
      +      "type": "object"
      +    },
      +    "object": {
      +      "const": "account",
      +      "type": "string"
      +    },
      +    "sites": {
      +      "items": {
      +        "properties": {
      +          "default": {
      +            "type": "boolean"
      +          },
      +          "domain": {
      +            "type": "string"
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "object": {
      +            "const": "site",
      +            "type": "string"
      +          },
      +          "status": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "object",
      +          "id",
      +          "domain",
      +          "status",
      +          "default"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "subscription": {
      +      "properties": {
      +        "active": {
      +          "type": "boolean"
      +        },
      +        "capabilities": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "locked_capabilities": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "plan": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "status": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "trial": {
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "active",
      +        "plan",
      +        "status",
      +        "trial",
      +        "capabilities",
      +        "locked_capabilities"
      +      ],
      +      "type": "object"
      +    },
      +    "team": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "properties": {
      +              "email": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "id": {
      +                "type": "string"
      +              },
      +              "joined_at": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "object": {
      +                "const": "team_member",
      +                "type": "string"
      +              },
      +              "role": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "object",
      +              "id",
      +              "email",
      +              "role",
      +              "joined_at"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "workspace": {
      +      "properties": {
      +        "id": {
      +          "type": "number"
      +        },
      +        "name": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "role": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "name",
      +        "role"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "object",
      +    "workspace",
      +    "connection",
      +    "subscription",
      +    "ai_credits",
      +    "links",
      +    "sites",
      +    "team"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=false, and destructiveHint=false, so the safety profile is fully covered without description help. The description adds the useful downstream hint that a returned site domain is reusable as the `site` argument elsewhere, which is genuine cross-tool context. It says nothing about authentication, scope of the connected workspace, or what happens if no site is registered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler; the identity of the resource leads and the actionable hint is parenthesized at the end. The comma-separated enumeration is slightly scannable-unfriendly but efficient. Nothing here is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With zero parameters, full annotation coverage, and an output schema that carries return-value detail, the description only needs to establish what the call is for and how its results feed other tools — both of which it does. The main omission is that it does not frame this as the natural first call for establishing workspace/site context before the many site-scoped siblings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, and the schema is fully described with additionalProperties=false, so there is nothing for the description to disambiguate. The mention of `site` correctly clarifies that it is an argument for other tools, not for this one, preventing a wrong invocation. Baseline 4 applies for a parameterless tool.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description enumerates concretely what the call returns: workspace, role, plan/entitlements, AI credit usage, team, and registered sites. That is far more specific than the title 'Account and sites'. It does not, however, distinguish this from overlapping siblings such as onelence_get_plans, onelence_get_setup, or onelence_get_business_context, so an agent cannot tell which of those to call from the description alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied — the phrasing suggests this is the place to look up workspace context and the site list. The one explicit instruction ('pass a site's domain as `site` to other tools') tells the agent what to do with the output, not when to select this tool over onelence_get_setup or onelence_get_plans. No prerequisites, ordering, or exclusions are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.