# get_client_info

Look up account info for a 3tg.dev clientId WITHOUT consuming any credits. Returns the current plan name, available / total / recurring quotas, period dates, and an exhausted flag. Credit-consumption model (so you can explain the numbers to the user accurately): - 1 credit = 1 generated test case (a single test(...) / it(...) block in the emitted .test.ts / .test.tsx). - Credits are consumed ONLY by test generation — i.e. by the create_tests and create_tests_from_spec tools. Spec generation (create_spec, create_spec_for_function), mock generation (create_mock_for_function), this lookup tool, and create_agent_instructions / help are all FREE. - The available field below is the number of test cases the client can still produce in the current period. Use this for: - Verifying a freshly-entered clientId during /mcp__3tg__configure before saving it to .3tg/credentials.json. - Reporting current quota / plan to the user. - Pre-flight checks so the agent can warn early if quota is low. Errors: - INVALID_CLIENT_ID — license-api rejected the clientId (typo, suspended, wrong product). - LICENSE_API_UNAVAILABLE — transient network / DNS / TLS failure. Note: quota exhaustion is NOT an error here — the response carries exhausted: true and the QuotaInfo for the agent to surface.

Agent View of the PolicyLayer registry record for `get_client_info`. HTML page: https://policylayer.com/tools/dev-3tg-mcp/get-client-info

## Facts

- Tool: `get_client_info`
- Server: 3TG Test Generation (`https://mcp.3tg.dev/mcp`) — https://policylayer.com/tools/dev-3tg-mcp.md
- Homepage: https://github.com/https://mcp.3tg.dev/mcp
- Risk category: Read (Low risk)
- Registry record: grade D, identity unverified
- Server auth posture: open
- Server rate-limited: no
- Parameters: 1 (1 required)
- Recommended policy verdict: Allowed

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `clientId` | string | yes | The 3tg.dev clientId to inspect. |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_client_info",
    "arguments": {
      "clientId": "<clientId>"
    }
  }
}
```

## Why get_client_info is rated Low

This tool performs a read-only query of account metadata. It returns information about a 3tg.dev clientId without modifying any data, consuming resources, or triggering downstream operations. The explicit mention that it does not consume credits reinforces that it is a passive lookup operation.

From the tool's own definition: "Tool description explicitly states 'Look up account info' and 'WITHOUT consuming any credits.' It retrieves account information (plan name, quotas, dates, flags) with no side effects, modifications, or external operations triggered."

## Use case

AI agents call get_client_info to retrieve information from 3TG Test Generation without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

## Recommended policy (PolicyLayer)

Verdict: **Allowed**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches 3TG Test Generation:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "get_client_info": {}
  }
}
```

## Other tools on 3TG Test Generation (9)

- `help` — Read — https://policylayer.com/tools/dev-3tg-mcp/help.md
- `validate_config` — Read — https://policylayer.com/tools/dev-3tg-mcp/validate-config.md
- `validate_spec` — Read — https://policylayer.com/tools/dev-3tg-mcp/validate-spec.md
- `create_agent_instructions` — Write — https://policylayer.com/tools/dev-3tg-mcp/create-agent-instructions.md
- `create_mock_for_function` — Write — https://policylayer.com/tools/dev-3tg-mcp/create-mock-for-function.md
- `create_spec` — Write — https://policylayer.com/tools/dev-3tg-mcp/create-spec.md
- `create_spec_for_function` — Write — https://policylayer.com/tools/dev-3tg-mcp/create-spec-for-function.md
- `create_tests` — Write — https://policylayer.com/tools/dev-3tg-mcp/create-tests.md
- `create_tests_from_spec` — Write — https://policylayer.com/tools/dev-3tg-mcp/create-tests-from-spec.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=dev-3tg-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/dev-3tg-mcp
