Skip to main content
Glama
djwmarcx

Better Mealie MCP

by djwmarcx

Create Auth Oauth Native Token

create_auth_oauth_native_token

Exchange an OAuth authorization code and verifier for a Mealie token, enabling passkey-capable system-browser logins without a browser session cookie.

Instructions

Exchange a native client's authorization code for a Mealie token.

The native client owns PKCE and state, so the exchange happens server-side without a browser session cookie. This lets passkey-capable system-browser logins (e.g. Pocket ID) work, which the cookie-coupled web callback cannot support.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
nonceNo
redirect_uriYes
code_verifierYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.23.1

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden. It usefully discloses that the exchange is server-side, requires no browser session cookie, and is designed for passkey-capable logins. However, it does not mention side effects, token lifetime, failure behavior, or whether the authorization code is consumed, leaving notable gaps.

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?

The main action is front-loaded in the first sentence, and the second sentence provides valuable context rather than filler. It is slightly dense with jargon, but every sentence earns its place.

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

Completeness2/5

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

For a four-parameter OAuth exchange with no parameter descriptions, no annotations, and no output schema, the description is not complete enough for reliable invocation. It explains the motivation and flow but omits the meaning of redirect_uri, the role of nonce, and what a successful call returns.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must explain the parameters, and it largely fails to do so. It refers to an 'authorization code' and PKCE, which hints at code and code_verifier, but it never explains redirect_uri or nonce, and gives no value constraints or relationships.

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

Purpose5/5

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

The description opens with a specific verb and resource: 'Exchange a native client's authorization code for a Mealie token.' It also distinguishes the operation from the cookie-coupled web callback by explaining that this exchange happens server-side without a browser session cookie, which helps an agent separate it from sibling auth tools.

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

Usage Guidelines4/5

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

The description gives a concrete usage context: native clients that own PKCE/state and passkey-capable system-browser logins such as Pocket ID. It explicitly notes the cookie-coupled web callback cannot support this flow, which acts as an implicit exclusion, though it does not name the exact sibling tool to use instead.

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

Install Server

Other Tools