Class: McpToolkit::Authority::Tools::ResourceSchema
- Inherits:
-
Base
- Object
- Base
- McpToolkit::Authority::Tools::ResourceSchema
- Defined in:
- lib/mcp_toolkit/authority/tools/resource_schema.rb
Overview
Authority-path discovery tool: the detailed schema (attributes with types + filter operators, relationships, filters, note) of one registered resource.
Reveals shape, not tenant data, so it does NOT require a selected account — but it still gates a superuser-only resource (refuse) and the resource's required scope, so a caller can't discover the shape of something it can't read.
Instance Method Summary collapse
Instance Method Details
#call(context:, resource: nil, **_args) ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/mcp_toolkit/authority/tools/resource_schema.rb', line 37 def call(context:, resource: nil, **_args) descriptor = resolve_descriptor(resource) ensure_resource_accessible!(descriptor, context) ensure_scope!(descriptor, context) McpToolkit::ResourceSchema.call(descriptor, registry:) end |