Skip to main content
Glama
Logto MCP Server

Logto MCP Server

by kdunin

create_resource

Create a Logto API resource and define its audience indicator so access tokens target the correct API. Set the resource name, URI indicator, and optional token lifetime.

Instructions

Create a Logto API resource. The indicator is the audience (aud) of its access tokens.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>",
      "indicator": "<indicator>"
    },
    "name": "create_resource"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesAPI resource name
indicatorYesResource indicator (an absolute URI, e.g. https://api.example.com)
accessTokenTtlNoAccess token lifetime in seconds

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.0

TDQS

B3.2/5.0
Behavior2/5

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

The description communicates a creation operation and adds useful context that `indicator` becomes the `aud` value of access tokens. With no annotations, however, it leaves behavioral details such as authorization requirements, uniqueness constraints, default token lifetime, and the creation result undisclosed.

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

Conciseness5/5

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

Two short sentences front-load the operation and then provide a directly relevant technical detail. There is no redundant or unnecessary wording.

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

Completeness3/5

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

For a simple, flat three-parameter creation tool, the purpose and fully documented inputs are adequate for basic invocation. The absence of annotations and an output schema makes the missing selection guidance, creation behavior, defaults, and result context more noticeable, so the definition remains only moderately complete.

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?

Schema coverage is 100%, so all three parameters already have basic documentation. The description adds meaningful semantics beyond that schema by connecting `indicator` to the JWT `aud` audience, although it adds nothing about `accessTokenTtl` defaults or `name` constraints.

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 clearly states the verb and resource: creating a Logto API resource. The explanation of `indicator` as the access-token audience clarifies the resource's purpose, though the description does not explicitly distinguish this tool from siblings such as create_resource_scope.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to create an API resource, what prerequisites apply, or when another tool should be used instead. An agent can infer the basic create use case, but must infer all selection boundaries from the tool and sibling names.

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