Skip to main content
Glama
djwmarcx

Better Mealie MCP

by djwmarcx

create_auth_oauth_native_token

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

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
Behavior3/5

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

Adds meaningful behavioral context (server-side exchange, no browser session cookie) but doesn't disclose token characteristics, failure modes, or permission requirements. With no annotations, the description carries the burden but reveals only partial transparency.

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 concise sentences pack purposeful detail without redundancy. Front-loaded with the primary action, then clarifies context.

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 4-parameter tool with no output schema and zero schema coverage, the description is insufficient. It explains the flow's rationale but omits parameter semantics, return values, error behavior, and token lifecycle. Need more to enable confident invocation.

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 coverage is 0%, so the description must compensate. It explains the role of code_verifier (PKCE) and code (authorization code) implicitly, but leaves redirect_uri and nonce undefined. Lacks explicit parameter mapping, leaving agents to infer.

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?

States a specific action ('Exchange a native client's authorization code for a Mealie token') with clear resource and context. Differentiates from the cookie-coupled web callback by explaining the server-side, cookie-free exchange, distinguishing 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 Guidelines5/5

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

Explicitly describes when to use (native client with PKCE, passkey-capable system-browser logins) and contrasts with the web callback that cannot support this scenario, effectively providing when/where-not guidance.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/djwmarcx/better-mealie-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server